skysight-inc/HackerNews huggingface dataset:
> I've found swagger codegen to be really, really inconsistent between different implementations. A few of them - I recall we had a team using Qt - didn't even generate compilable code. When I looked into the infrastructure of the codegen project, I found... mustache.

Yup, some generators (e.g. ActionScript, Qt5 C++) are less mature than the others (e.g. Ruby, PHP, C#). For the issues with Qt5 C++ generator, please open an issue via http://github.com/swagger-api/swagger-codegen/issues/new so that the community can help work on it.

> Mustache is fine for doing a little view rendering, but for language generation... it's really obnoxious to use. Say you want to customize the output. Well, now you're basically replacing one of those magic .mustache files. And what's the model you use to generate those mustache files? Well, you got to look through the codebase for that.

Instead looking through the codebase, you may also want to try the debug flag (e.g. debugOperations, debugModels) to get a list of tags available in the mustache templates: https://github.com/swagger-api/swagger-codegen/wiki/FAQ#how-...

I agree that mustache may not be the best template system in the world but it's easy to learn and developers seem pretty comfortable using it.

> Especially if you do not use the JVM as part of your existing toolchain.

One can also use docker (https://github.com/swagger-api/swagger-codegen#docker) or https://generator.swagger.io (https://github.com/swagger-api/swagger-codegen#online-genera...) to leverage Swagger Codegen without installing JVM.

Thanks for the feedback and I hope the above helps.

(Disclosure: I'm a top contributor to the project)
Immutable Graphs with Neo4j
Icon UK, the UK IBM Notes User Group conference has been cancelled for 2017. Is this another sign for the future of IBM Notes?
Muni isn't much better. It's about $6.45 per boarding, which has got to be at least $8-9 per trip, accounting for people who transfer. [1] Average trip distance is 3.4 miles [2], so $2.50 per passenger mile. This is more expensive than UberPOOL. The problem is that if you subsidized Uber like transit is subsidized, ridership would skyrocket since it's so much faster and more comfortable, and the budget would be blown. This could be solved with a big subsidy for lower income people and a small subsidy for higher income people. You could also run pools with bigger vehicles, say 8 passenger van/suvs that would make more stops and take longer but be significantly cheaper. I'm not even sure it would make congestion worse since busses are themselves significant sources of congestion with their large size and slow speeds. The biggest issue would be congestion caused by Ubers constantly stopping on the street. This might be fixable by turning street parking into loading/unloading zones, since you wouldn't need as much parking with everyone taking the cheap Uber to work instead of driving. Obviously when the cars are self-driving, the economics get dramatically better yet.

[1] https://www.sfmta.com/sites/default/files/agendaitems/2016/4...

[2] https://www.sfmta.com/sites/default/files/pdfs/2015/San%20Fr...
I didn't have insights. Everything I said is pretty standard fare in optimizing compiler design. You can't turn the optimizer crank without assumptions that the type system lets the programmer express and that the compiler can mechanically verify.

Information for optimization passes doesn't come for free and as terminating programs compilers can only fill-in so many holes before the programmer must fill-in the rest or barring that pay a performance penalty which is what happens in dynamic languages even with a JIT.
That seems to just be a regulatory operation they didn't fulfill. They were supposed to register the swaps and they didn't.

Is that accurate or was there something nefarious going on?
If a system has probability 1/n to fail, then it has probability 1 - 1/n to not fail. The probability it will not fail after n trials is (1 - 1/n) ^ n. The limit of this quantity when n->+inf is 1/e.

If you want to know the probability it will fail, just take 1 - probability_success = 1 - 1/e.
That's assuming you want external access.

Often the user just needs to find the device on their own internal network: in which case a DNS entry of myserialnumber.myIoT.com returning 192.168.1.104 is fine.

Or if you need need to initiate communication from outside the local network: establish a tunnel (in same style as e.g. ngrok).
Marshrutkas are just privately operated buses with fixed routes ("marshrut" = "route" in Russian, marshrutka is short for "marshrutnoe taxi" = "fixed route taxi"). They used to be loosely regulated, which resulted in various safety concerns, as the vehicles they drove were barely street legal. They're pretty much phased out right now, and replaced with regular buses.
> ... What else would you expect?

Exactly the same things you already wrote:

> that authors should be very sure before making aggressive/clickbaity/bold claims

> The blog would've been much better if it had been written in a less confrontational style

Both are totally possible regardless of how sure you are. If you take a risk and are proven wrong, get less aggressive/bold/clickbaity in the next post, instead of trying to justify the same claim with a different argument. That's what I'd expect.
Sadly unless you normalize the cars we may never see true racing as you say.

Or put a dynamic rev limiter in the cars that's bound to how well you're doing in the race, so the car in the lead literally can't go as fast as the car in last place. Then we'd get 'rubber banding' like computer game AI[1]. That'd be brilliant to watch.

I don't imagine manufacturers would be very happy about it though.

[1] https://www.giantbomb.com/rubber-band-ai/3015-35/
> Another thing that seemed really implausible not long ago: that Javascript could be used to build an application. At all.

DHTML was introduced in 1997. Do you define this as "not long ago"?
It was a fair request. If you're CEO you try to rally your people. It wasn't a demand. The author had no reason to be stubborn about it. There were obviously other areas to be concerned about as I sided with the author on, but this wasn't one of them and it derails from the other arguments.
Rust uses LLVM, which is a backend developed with C and C++ in mind that has been under development for a bit over a decade now. As long as you basically pretend to be C++ at a low level (which Rust does), then the two remaining factors to consider are optimizations that happen in the front end and language-level semantics that enable language-dependent optimizations. (We should also consider that LLVM isn't as venerable as GCC, but it seems that (for C and C++ code) there's no longer any clearly superior choice between the two wrt general-purpose code generation (would be happy to hear arguments to the contrary)).
You're absolutely right. Far away travel in Australia is measured in days, where as it is measured is hours in Germany. The extremely Australian population density does not help at all.
> I'm glad he admits this, but then what exactly makes him qualified to opine on the language?

The fact that he has been using the language for a decade.

> Look, Javascript is not great, and I'm perfectly open to the thesis that Node.js in particular is a Bad Thing -- I'm C# junkie, for crying out loud -- but supporting that thesis with a series of assertions from someone with little relevant knowledge is not terribly convincing.

Why are you so worried about the person who states the argument? If he would claim that he is an expert who knows everything, would you just automatically believe him?

I personally would verify his claims regardless of who he is. If you just watch the referenced video, you might get an idea of where he is coming from.
It was more of a sadly-but-true statement than a joke, as I completely agree with you that there is a market there.

Around the same time my friends and I started having families, most of us stopped gaming online because it was hard to coordinate all of us having time to play together, and playing with random people online was (often) a bad experience as we could not play 'on their level'.

A game with an actual good AI that feels like real players (without the annoyance of them) would be something I could see myself spend some time on.
Yeah to be honest US transit systems are generally appalling on these sort of metrics. They manage to hit everything that makes them super expensive:

1) Often very heavily unionised, driving prices for staff up to eye watering levels, especially if you include retirement benefits

2) Low population density meaning it's hard to get enough fares

3) Paradoxically, often underfunded badly and lurch from one crisis to a next, which is actually really expensive as you have capital assets under-utilised and maintenance costs soar as simple repairs don't get done, resulting in much more expensive repairs later down the line.

This wikipedia article has a good table where you can see some farebox recovery ratios (not really the same stat, but quite interesting): https://en.wikipedia.org/wiki/Farebox_recovery_ratio
Just the other day I discovered that there exist a kernel (SOS kernel) that allows to use Python and R simultaneously in the same notebook (on a per-cell basis) and even has primitives for data exchange between the two.

I'm definitely using this for my next project.
> I also tried out the "codegen" and a few other projects that generate boilerplate from a spec (for Python) - the code it generated was frustrating, lengthy, and much more complex than the simple endpoints that I quickly wrote from scratch.

For Swagger Codegen, you can also customize the mustache templates in whatever way you want (e.g. replacing 4-space with tab in C# client templates). The auto-generated code may sometimes look lengthy but we usually do it with reasons based on feedback from developers. Please share with us more via https://github.com/swagger-api/swagger-codegen/issues/new so that we can further improve the output.

You may find Swagger Codegen a huge time saver in use cases in which the endpoints are growing (e.g. from 20 endpoints in v1 to 40 endpoints in v2) and you will need to provide API clients in multiple langauges (e.g. Python, Ruby, PHP, C#, etc)

Disclosure: I'm a top contributor to Swagger Codegen
If you want to make money from your side project (or startup, or whatever) figure out how you're going to get customers before you do anything else. If you can't do that then you won't make a dime.
I'm pretty sure Banks said that he'd like Consider Phlebas to be made into a movie - he even offered to rewrite the ending to make it more upbeat.

I do think Use of Weapons could make a splendid movie - but it might be tricky hiding the basis for the twist at the end?
The weightage mobile holds for e-commerce business
What I mean is that they do not run their links to saturation in the same way as an ordinary ISP. And because their traffic patterns are very different than an ordinary ISP, and much, much more geographically distributed, they can do all sorts of fun software tricks. The end result is the same: Low/no jitter and no packet loss.

As contrasted with what would happen if you had a theoretical hosting operation behind 2 x 10 Gbps transit connections to two upstreams, and tried to run both circuits at 8 to 9 Gbps outbound 24x7.
Microsoft Flow users can now trigger flows using physical buttons
yes, the practice of using IATA airport codes or similar for reverse DNS is a practice that long pre-dates google. They just adopted industry best practices when they started building consistent rDNS.
You can replace string|null with string|number in this example.
Finacle Online Banking Solution – Truly Digital Banking Model for SME Banks
Nuclear plants in normal use release less radionuclides into the environment than coal. But is this still the case with malfunction?

It is fairly common that huge amounts get released. E.g. https://en.wikipedia.org/wiki/Ascó_Nuclear_Power_Plant

How about Fukushima and Chernobyl. Do you have numbers to back up your claim?
Finacle Core Banking Solution – Real Time Account Processing Platform
And this is the generalization: https://en.m.wikipedia.org/wiki/Poisson_limit_theorem
What would a venn diagram look like between people like your mother and people that want home automation? My mother is still firmly in the "why would I want an automatic garage door?" category.
> I take a slightly perverse pleasure in cutting wild claims down to size

I want you to know how much I appreciate this, Huon. :)
Please drop the ?m=1 from the URL such that the correct page version is resolved on Desktop.
The scientific notation one is a bug. Scientific notation isn't part of the CSS spec[1], and its not supported in all browsers.

I learned this one the hard way a few months ago. We ran into a flexbox bug in one browser which we worked around by adding some-rule: 0.0000001px instead of 0px. However, our minifier collapsed that using scientific notation, which triggered a rendering issue in a different browser due to the out-of-spec CSS. The whole adventure left me feeling like I'd travelled back in time.

[1] https://www.w3.org/TR/CSS21/syndata.html#numbers
The Lunar Reconnaissance Orbiter already has imaged multiple Apollo sites. Lunar Rover tracks are easily seen.
This also requires that you can secure the home network and server, which is something many techies (myself included) would struggle with.
MIT 6.005: Software Construction
running your own internal links to near saturation (such as a theoretical 100 Gbps DWDM or MPLS circuit between two google datacenters in two different states) is a very different thing than running a BGP edge connection to saturation, such as a theoretical 100 Gbps, short reach intra building crossconnect from a huge CDN such as Limelight to a content-sink ISP such as Charter/TWTC or Comcast.
Dune has been butchered too often for another rewind. There's even a horrendous mini-series with very silly hats and extremely poor acting.
Apple changed to macOS to follow watchOS, iOS.
Happy feet: why a 61m-year-old penguin foot has researchers dancing for joy
An Index to Creationist Claims
Fair enough. The way I read the story you ordered an Uber, your phone died, and you don't remember anything else until you woke up the next morning. I assumed it was likely that you weren't where you ordered the car when it arrived.

Since you were in the right place, you shouldn't have been charged, and I agree Uber is wrong how they treat this. The phone dying case is an interesting twist because the driver couldn't call you, but s/he shouldn't have needed to.
> We used to have languages, like fortran, that were incredibly explicit, and people didn't like that either :)

I like to think that language design is oscillating around the sweet spot, with a general trend towards convergence. :P First too strict, then too loose, then too-strict-again-but-a-bit-less-strict-than-the-first-time, and so on and so on. Eventually we'll get there... I hope!
Author here.

Wow. #1 on HN. Wow.

I'd usually hang around a bit more, but I'm really tired. I posted this past my midnight. 00:51 now, and I'm fading fast.

Thanks for all the love, everyone. I'll come over tomorrow (12 hours from now, or so) to answer any questions or to pick up any corrections.
You need five channels to get the equivalent of what BT and Sky provide with the Premier League, and you are absolutely bombarded with advertising. European football isn't really suitable to the same business model, so we have to pay for our sports.
Sandwich spread dampens neural activity
Storage devices regularly go berserk in really novel and interesting ways when you have a large enough pool. Most projects I've worked on, I've known enough to fix the bugs, had a working theory of what the issues were and could fix if I really needed to after higher priorities, or could somehow work around. With storage devices, I'm frequently bewildered and stuck maybe to the last category at best. There are times when I sit back and just think, wow, how amazing is it that computers work at all knowing the things that do go wrong.
Oversight on my part, my bad. Currently it requires an SSH key to work. A quick fix if you want to try it out is run "ssh-keygen -t rsa" to generate a key pair and try again. I'll look into allowing keyless access this week. If you follow the twitter account you'll see a tweet when it's fixed.
I love PGO and think it's basically magic, but I'd be very surprised if PGO alone would let you ever elide runtime aliasing checks!
Shitty drivers kill.
She had already transcended in Lucy. Once is enough...
You can also use R inside 'normal' Python notebooks via rpy2:

from rpy2 import robjects

my_dictionary_results = some_method()

names_dict = robjects.ListVector(my_dictionary_results)

%load_ext rpy2.ipython

%R library(some_lib)

%R -i my_dictionary_results doStuff(my_dictionary_results)

Image display etc. works fine
That's true if the public transit vehicle is "wasteful" enough to have a seat for you. That's transformative: it's just as good as your living room. Unfortunately, that's not at all the consensus about what transit should be like. Shoulder to shoulder standing room only is the norm at commute time, even on systems regarded as role models.

I find such environments miserable, and certainly not amenable to relaxing or focusing on anything. It's stressful enough to find something to stare at and keep from falling over.
A compilation of free and must read data science books
Wrong about what? (Actually the year 2014 was wrong). But releasing a HD version with 3 expansions (they are named expansions on the wiki) in 2013, 2015 and as late as Dec 2016 (less than 6 months ago) definitely sounds to me like a game which is not dead.

Might be buggy but recent releases + active community isn't really dead at all.
Bricked == rendered non-functional. When you brick a phone it isn't necessarily dead of natural causes, there could be a hardware lockout, like a moisture detector.
I thought about it, but I'm way too shy for that.

Not like it would lead to anywhere either, you know. :P

Two years of teaching university, MSc in computing, love of automation, combinatiorial optimization without any significant amount of deep math skill, circuit design, gate array stuff, low-level CPU optimization stuff, hardware counters, microcontrollers, SQLite, Julia language, C, shell, a bunch more programming languages, basic CSS and HTML, Mustache templates, Linux. No JavaScript. The whole of luisant.ca is done by hand and from scratch, so you can see what I can do with that. Also statistics.

I'm uncommonly silly and not at all serious, while still standing up for what I believe is right, even if everyone disagrees with me. I do integrity though and while I can stand my ground, I will yield to good evidence any day.

I wear goofy clothes to work, usually very colourful stuff. Don't expect conformity.

And I have no love greater than the one for the cause of nature conservation, and all research that goes with that.

That's about me in a nutshell.

Told you nothing will come of it. :P
Marel Food Processing Systems: Remotely Exploitable. No Mitigation from Vendor
The role of satire in news coverage
That's the point though, if you're Writing threading code specifically for Windows, you're not writing pthreads code. So all MS has to care about is that their custom threading abstraction is safe.

POSIX is more of a common denominator than a good choice in many usecases (you'll never get far if you're dealing with complicated file handling for example[1]), but it is an essential baseline for cross-platform development. If you're changing too much about it, you're burdening cross-platform devs to do system-specific implementations anyway, so there's not much point to it.

As a flipside, you'll also get devs who see a guarantee on one system, assume the standard guarantees it, and then make statements about their library that are untrue (i.e. "WTF::Lock is fair").

[1]: https://youtu.be/uhRWMGBjlO8
It's more than that. While I understand that technically it should be possible to write code in either language that creates the same machine code as the other, the common idioms of each language lead to, in most cases, the C++ generated code being faster. I think it is a classic tradeoff in the safety a language provides vs. its overall performance. For example, the Mozilla team has to use unsafe blocks in the Rust codebase to get the same performance as C++ for those areas where it is important. That is not idiomatic Rust. Mozilla resorts to unsafe blocks just to handle basic doubly-linked lists, as well as optimized hashtables, in order to get similar performance to C++ data structures. My point is that when you stick to the philosophy of Rust, you will in general have slower code that when you write normal idiomatic C++.
We still don't know how to handle spent fuel.

So nuclear apologists are simply offering a calculation, where the biggest risk/liability has been left out, because "what number should we put in?".

Also, I'm always fascinated of the "Chernobyl was unsafe, today reactors are safe" argument. The exact same line was fed to us when Chernobyl was state of the art.

There are good reasons to think that it may indeed be so this time. But the nuclear industry has lost all trust and all right to demand anyone ever trusted them again.
Solr with Scala: Basic Introduction to Embedded Solr
If morality is subjective is itself up for debate. I personally think morality is absolute. There is only one system of morality which isn't arbitrary and allowing morals to be arbitrary strips the word of any meaning.
Rust Optimizations That C++ Can't Do (Version 2)
Android Threading: All You Need to Know
Pretty remarkable growth in PV! I do remember that Germany already had quite a bit of wind generators in the early 2000s, yet they seemed to have generated around the same amount of energy as the PV capacity of today. And that's been mostly build during this decade.

What's missing from this graph, however, are imports. I believe Germany imports quite a bit of nuclear power from France and coal power from Poland.
I read the expanse to book 4 until it took a serious dive in quality, the dialogue and story just went awful and I got tired of the main guy constantly being on the spot, it felt contrived.

I really enjoyed the first 3 so was disappointed. Does it get better? Was it a temporary drop?
I don't know what detached means. If it is still visible it's kinda out of context now but I can't delete or edit so can it be detached further to not be visible at all?

Oh, nm. I can edit.
My reason for posting this is not so much the article (which is interesting in itself) but the inclusion of 3 references at the bottom. This is something I would love to see expanded in newspapers in general, regardless of whether or not the references are available without subscriptions etc. When I was writing english and history essays in university the requirement to footnote most - and in the case of history, basically all - references, facts and third party opinions, forced me to make my writing tight, my arguments clear, and my conclusions reasonable.

Of course references for everything are not possible, and often the paper is its own source, but where it isn't I think we can make improvements here.
It isn't so much latent demand as the cost/benefit of travelling in by car is better than alternative methods. The problem primarily is around the exclusion of other modes of travel from the system. Roads need to be built with space for walking, cycling and driving and should prioritise walking and cycling. This enables local journeys to be removed from the road network.
crass is doing some really wonderful stuff here -- I'm impressed!

It's very interesting, however, that no one minifier is a consistent winner in these test cases, and that running CSS through multiple minifiers is actually, potentially, not all that crazy. (The very debatable real value in doing that notwithstanding.)
Inventors of transistor, led by William Shockley, already won a Nobel prize in Pysics for their invention of transistor. All 3 of them.