skysight-inc/HackerNews huggingface dataset:
I will quote from the linked article:

Other sorting techniques may be faster. For example, using radix sorting, you can sort n word-sized integers by scanning the data a few bits at a time. Each scan can be done in linear time, and the number of scans depends on the word length w. Hence, the time for radix sorting is proportional to nw. Here, it’s easy to make a mistake. On most computers, w is a small number (typically 32 or 64), and you might be tempted to state that radix sorting is a linear time sorting algorithm. Not so. The algorithm will only work if w ≥ log n. If not, you wouldn’t even be able to store the numbers. Since each memory address is a word consisting of w bits, the address space won’t accommodate n numbers if w < log n. Hence, in the unit-cost RAM model, radix sort also runs in time proportional to n log n.
I'm afraid I don't see it that way at all. This sort of thing is dealt with all the time in the rural US, but in the relative absence of big government public transportation systems, the school district will get the one girl to school by negotiating a year of discounted rides (bulk purchase) from a car or van service with some reimbursement from the state. No more parties need to be involved, making it fairly efficient.

Japan should be doing it that way, too. Train companies in Japan aren't small businesses with kindly old proprietors; they are VERY complex businesses enormously tangled in cross-company ownership (our system owns 40% of yours, yours owns 40% of ours), government ownership, heavy government regulation with negotiated compromises (you have to serve these needs or we won't let you share that track), heavy union obligations, negotiated right-of-way through communities (if you won't service this line, we won't let you stop at the main station), etc., etc.

After living in Japan for many years, I'm afraid this sounds to more like a situation where keeping the train running for one person, though extravagantly wasteful, probably solved multiple practical problems simultaneously (fulfilling union employment agreements, rural service agreements, etc.) along with perhaps the greatest benefit: getting things done in Japanese bureaucracies requires so much negotiation among so many parties that just continuing to do what you have been doing (just keep running the train) is just SO much easier than changing the system--the system has so much inertia--that just letting it go on a couple of years longer was probably the easy way. The fact that it wasn't close to the cheapest way wouldn't necessarily matter to governments, unions, corporate managers and others spending Other People's Money.

I'm not implying anything about Japanese kindness. The Japanese do very kind things all the time, but this doesn't seem like one of them. I don't think kindness has much to do with it, because a private car service would be just as kind as making her stand alone twice a day on a freezing Hokkaido train platform and dramatically cheaper.
Is Rust available on consoles? (AFAIK, no)
Is it going to be around? (Who can tell?)
Way less than the cost to the environment of her parents driving her to school in a car
I believe we should not. Children are not yet able emotionally to handle `adults' problems and situations all of a sudden. It doesn't leave them any space to experience good and bad things and grow up. Getting that label at an early age could prevent them of reaping the benefits of growing up and developing as a child, in the emotional and physical space that is usually reserved to children. That's what should make them into `adults'.

It's like the debate about praising children for their innate abilities (let's say: intelligence) and behaviour (let's say: trying many times to solve a math problem even if they fail at first): the first approach put them in a fixed mindset while the second ease them into the idea that they can try, blunder and try again and that's what makes them getting better (not an innate ability).
Lua is widely used as a scripting layer on top of a game engine. The intense calculations needed to generate a high-fidelity simulation like graphics and physics are usually implemented in the engine in C++, and then the game logic/item behavior/etc. is defined in Lua. I haven't heard of anyone using pure Lua for a whole game, including the engine. It'd be really interesting to see what it looked like if someone did so.
If you're going to write a TL;DR for others, you should at least read the article yourself, don't you think?
That sounds incredible -_-'
I like Rust, but sometimes it is pretty difficult to convince the compiler that one's code is safe. And this does not mean that the compiler is preventing unsafety; there are many safe programs that the compiler rejects.

Also, the OP said that compile time was a priority, and compiling Rust code is closer to C++ speed than C.
The author said that garbage collection and non-static-typing were problems. Last I checked Lua has both of those.
I like Jenkins, but I haven't used many others.
- Ada

- Spark

- Rust

- D

- Swift (it will eventually cover all use cases with 3.0)

- FreePascal

- Delphi

- ATS

If I would be in an hipster mood and revive old faded ones:

- Dylan

- Modula-2

- Modula-2+

- Modula-3

- Oberon

- Oberon-2

- Active Oberon

- Component Pascal

- Algol

- PL/I

- CPL

- Mesa

- Cedar

- Turbo Pascal

- Apple Pascal

- Quick Pascal

There are a few other others that I certainly forgot.
The thing I miss most in C when I don't cheat and use a couple C++ features is templates. Specifically, a dynamically sized List implementation that is type-generic.

If you do this in pure C, you have to pick your poison:

1. preprocessor abuse

2. void *

3. multiple redundant implementations of the data structure

Dynamically sized lists are used so often, that this tends to be a problem in almost every C project. I wonder what the author's solution is to this dilemma.
C is not a true subset of C++ so no, when he is writing C he is writing C.
Japan is exotic enough from a Western perspective that outsiders often have an exaggerated opinion of it, both positive and negative. The next time you see someone gushing about how wonderful Japan is or complaining about how the country never "paid" for WWII or how Japan is doomed because (old people, Fukushima, etc) please try to remember that it is a normal country with human beings living there that is pretty much like anywhere else in the world.
Sure, someone will probably be stuck in a traffic jam right next to the quarter at some point, but does that help anyone to win this challenge on purpose? :)
Presumi – Create trackable resumes and manage your job applications
تور ارزان کیش در هتل آرامش-ورود ۱۹ دی ۹۴
This is a good addition to the original Bitcoin paper (https://bitcoin.org/bitcoin.pdf [pdf]), which is already very concise and readable. The contribution of the post is going into the details of how the concepts actually play out in reality and how stuff just looks like.

It's interesting that there are so many other articles and talks that try to explain Bitcoin with a high effort of metaphors and examples while avoiding technical details. You can consume all of them and still have no idea.

But then again this is probably similar in other fields with high levels of internal complexity (i.e. where you'd have to read recursively all of the science behind it to get even superficial understanding).
We created a product to help applying for multiple jobs (spreadsheets and sticky notes are an outdated and broken system). We just wanted to get your thoughts if possible, and maybe you'll find it helpful / interesting. Thanks :)
> " the user isn't aware of that (and, therefore, can't log into the web interface to "confirm" the update)."

The website would be presented automatically to the user, similar to how a login page is displayed when you connect to some public WiFi networks.

> "On another note, if I had something with a hypervisor available, I'd run something other than OpenWRT on it. The primary use case of OpenWRT is these small embedded devices where such a hypervisor isn't available."

Yes, it'd almost certainly help with broadening the range of options. Until I realised I was too big I was drawn to the idea of using Xen as I'd like to see OpenMirage running on home router hardware, it seems like a natural fit. A minimal QubesOS image could also be good.
The article mixes up the virtues of a programming language with the quality of the environment. C might very well be the best language in our current environment, which says little about the language itself. One major point certainly is, that it is that good compilers are available everywhere and almost any library can be used from C. There are a lot of historic reasons for that.

If he wants strict typing, C is actually much worse than many languages of its time. But it is certainly stricter than Javascript.

GCs and gaming are of course a challenge, but with the new GC of Go1.5 and hopefully futher improvements, it might actually become a very good language for gaming, especially if there is a better support with libraries. But if one wants good type checking, a simple language model and fast compilation times, it checks all the boxes.
Incidentally, all of his reasons that don't misrepresent C are all the same reasons I write games in JavaScript. Mostly, it's about speed of development, understanding, and platform compatability. Performance is good enough and almost always my fault when it isn't.

I wish for a strictly typed language, but OP isn't using one, either. I've tried several of the transpilers and have generally found the workflow lacking in one way or another.
If by "strict typing" you mean strongly typed then you are factually incorrect. By virtue of casting C is weakly typed, as is Java, C++ et al.

If your understanding of strict typing is statically typed, i.e. that types are checked at compile time then C still has some flaws as you could write a whole slew of C that is "typeless" using void * although that would be terribly misguided.

I understand your intent, but I dislike the ambiguity of the phrasing.
I bet they're used for the tire pressure sensors.
There are some coding sites that detect algorithm time and space complexity. Its tough to automate measuring code architecture, like if the task if appropriately divided into functions that compute individual parts, whether its aptly named, comments where code is less clear etc. Thats where a good interviewer comes in.
YC Switches Up Its Management, as Altman Shifts Focus
there are plenty of games using pure Lua. www.love2d.org :)
Using the same language on Android and iOS will be a huge advantage, once the framework ready to production.
As mentioned, the ethernet interface is too slow for this. One could use one of the BananaPi variants for that, afaik there is one which has four independent ethernet ports for use as a router.

I use a standard BananaPi as NAS and are very satisfied with it. It comes with a SATA interface and 1Gb ethernet.
Given he is calling C a strictly typed language, I'm not sure the OP really knows C that well. Sure, it's strictee than, say, PHP. But in the pantheon of languages, it's not objectively strict.
Maybe in ten years. Great thing about old mature technology such as C is that all gotchas have been tripped over innumerable times and are all well known and codified. Meanwhile new exciting technology like Rust contains unknown number of bugs like http://www.wabbo.org/blog/2014/22aug_on_bananas.html, undiscovered antipatterns and subtleties.

My comment is not meant to bash Rust, on the contrary it is very promising and the fact that it is used to write Servo is likely to significantly speed up its maturation. But as author notes, if you are developing a project under a deadline you don't have time for bugs you didn't cause yourself. So old boring technology is the way to go.
Moving goal posts are we?

Should I list all the compiler specific features that everyday C programmer uses but aren't defined in ANSI C, e.g. inline assembly?

No professional Pascal compiler was a pure ISO Pascal, that error was left for schools teaching bad Pascal.

Professional Pascal compilers were way more powerful than C, safer and in the days of K&R C chaos, just as portable.
For the types of games he's making, it would indeed be a good fit combined with a framework like love2d.
And if you put a video camera in a strategic location you can capture every license plate that pass by...
The trade-off with templates is much slower compilation times. Often slow C++ compile times can be traced to enthusiastic use of templated types, particularly given that standard types like std::string are often defined as templates themselves.
Regardless of your friend's skill, it's possible he simply didn't have enough seniority-capital to dodge the axe. Juniors, as in newer-hires, are sometimes the first ones cut during a lay-off.
The sad fact is that the languages from the 60 and 70's happened to be safer than C.
I find Das Kapital extremely relevant today.
The work life balance thing seems to be a made up justification to not be in the valley by people who live outside of it.
No, Only the scripting is Lua. The engine is all in C++.[1]

[1] https://bitbucket.org/rude/love/src/tip/src/
I did develop some features for teachers and got a few of them using it with their classes. Despite a few shows of interest, no-one actually paid anything for it. On top of that, they wanted a bunch of features that would take my time in development and support, leading to a weaker product for individuals.

Creating a product for schools and businesses requires creating:

1. A great experience for the learners.

2. A great experience for the administrators and teachers.

I'm focussed on part 1, and building a business around it selling direct to individuals. I can always add part 2 later.
Have a look at https://travis-ci.org
Using eval is not accidental.
This makes me think of the Tribal Leadership book and talk (https://www.ted.com/talks/david_logan_on_tribal_leadership/t... ).

Their model has 5 stages. Stage 1 is 'life sucks' and stage 2 is 'my life sucks'. What you describe fits between those stages. Their ideas about stages beyond that are pretty interesting.
I mentioned this in another comment, as has many others.
HN comments aren't really the place for "me too" responses, but this story gave me some warm fuzzies. It was a nice story, despite the obvious inefficiencies that'll be ending very soon anyway.
Those aren't the types of games he's making, though.
How to Get Better at Storytelling
The question is: for what purpose will this technology be used? We may market this as a "crowd control" tech - and export it to Saudi Arabia, Bahrain or similar countries where it will be used to squash protests against dictators.

Just look what happened with all the stuff we Germans sold to said countries.
Thanks - I like it!

I'll do a split test and let you know how it goes.
https://twitter.com/rustlang/status/598945014824173569
Humanoid Robot: Surena III from Iran
>"The greatest risk of severe injury or death occurs from impacts to the head, face, or neck of the intended target or a bystander, " Widder says. "The use of more accurate weapons with disciplined fire can substantially reduce the likelihood of this unintended consequence."

giving that the weapon has great precision, adding a camera and a bit of software able to recognize when it is pointed to a face would allow to block the shot if it directed at a face. Though one can imagine a protester wearing several "V" masks everywhere over his/her body as the counter-measure...

On the other side, why all this new, and thus expensive, weapons when there are good old paintball guns easily and cheaply available? In the same way, based on laser rangefinder input, the firing controller can easily automatically adjust the firing pressure and timing so that to achieve the optimal velocity at the target.
Domain Driven Design on Rails
They were already paying it though. It wasn't an additional cost they had to make. It was a cost they chose not to cut for a period of 3 years. I agree with you, it is beautiful.
Beware, your bank will let the tax authorities know how much you have
yeah, for me the only consequence of that post is that I have lost a lot of respect for Mozilla.

Why the hell was that clown CTO ?
Thing about NNs is that they cannot encode structure, or, to be more precise, they cannot optimize over joint loss (except RNNs but training is a pain). For example, the color of the current pixel can depend on the inferenced color of upper neighbors and neighbors on the left (we would be coloring pixels from left to right, going row by row). NN in the article is coloring locally without any kind of reference of what the whole picture looks, NN can encode the information of what the pictures look since it has a lot of representation power but that requires large amounts of data, and parameter tweaking.

Optimizing over joint loss (maximizing the probability of the full image colorization) would work extremely well.

Tools like vowpal wabbit can easily be adapted to learn a chain classifier over colors and it should work insanely fast.
You really need to look on the security perspective to harden it. When it's marketed with security in mind.

And there's so many things wrong with the PHP syntax etc. as well as you have committed the entire Composer vendor/ folder. Put it in gitignore and remove it. You should not commit dependencies to your code base.
Looks like a good lib, but only Python2 with lots of C++ hooks =/

It would probably be fairly time consuming to port this to Python3.

However, shouldn't look a gift horse in the mouth.
There were no terrorism like there is now. arming violent rebels were done by both usa and ussr (I don't know who did it first, but both have done this) for doing their bidding/proxy war. Look where things are now. There wouldn't be any "terrorism" in the first place if usa didn't mess in every countries affairs. What about the normal lives/dreams lost as a result of invasions by u.s.a? That is what is fueling terrorism.

Take the case with what happened after 9/11. Iraq was attacked for false reasons and now the region is destabilized and there are more terrorists in the region than there ever was. Afghanistan is a mess. So is Syria. US is also responsible for the situation in Palestine too. They are humans and they don't deserve to be blockaded. People should stop going to war in the name of belief and learn to treat other humans with respect and dignity.
> I don't understand why the algorithm is so much faster

I hope this helps!

http://h2.jaguarpaw.co.uk/posts/why-is-naive-symbolic-differ...
Delphi compiles extremely fast, is strongly typed, no GC, has templates, objects. Too bad Embarcadero positioning towards Enterprise with its relatively high pricing effectively derailed it as a mainstream language and killed its community.
When you buy tires from e.g. TireRack they are automatically registered with the government.
As Dennis Ritchie once said "C is a strongly typed, weakly checked language."
It IS easy. You can just tell people to `pip install --user your_app` and use it (might need $PATH correction). All Linux distros ship with Python, and if pip is not available, it can be installed easily.

Or you can build and ship .rpm/.deb packages if you feel like it.
Working on similar product for my full-time job. Contact me and we can chat more.
No, Japan is unique in this regard. Yes, South Korea, China and much of Europe is following along the same trend lines, but Japan is good couple of decades ahead of everybody else and is thus the world's guinea pig for population decline:

http://www.ide.go.jp/English/Research/Region/Africa/images/1...

The lines are the country's % of working-age people. As you can see, Japan is already collapsing rapidly, while South Korea is just starting to plateau out and China is still climbing.
The Google Go team lives in a completely different environment. Their perspective of performance is not the same as a game dev. Go 1.5 stated their goal was 10ms GC latency. A game loop is 16ms for a 60fps game. 10ms is not close to acceptable. Fast for a web server backend, but not fast for a game.
> Calling calloc/free on a 1 MB buffer seems to take about 50 microseconds on my computer (with no optimizations), and I consider that an unusually large allocation.

Do you actually touch it and write to it? If you don't the allocation may be provisional and not actually happen until you try to write memory, in which case depending on the system you'll either get a COW fault (IIRC linux points the allocation to a zeroed COW page, first time you need to write it'll copy the page and let you write in) or a zero-fill fault (e.g. freebsd doesn't allocate the BSS by default, write access will cause a zero-fill fault and in response the VM will actually allocate the page — which it can do from a queue of pre-zeroed pages)
And doesn't have console support (AFAIK).
I keep getting a few seconds on the page, then a 404?
Japan Railways Hokkaido[0] is private corporation, not a government agency

Notionally. In practice, their operations are fairly minutely controlled -- sorry, "guided" -- by various levels of government, which explains, among many other things, why the JRs continue to operate tons of lines that are loss-making.
They aren't running a whole train just for her, they are just making two stops per day at a station, while otherwise they'd just skip it.
There are many valid programs that static typing rejects, too. Question is whether the trade off is worth it (and the answer isn't the same for everybody)
Auto-playing video ad with sound and a hijacked back button. Real classy, PopMech.

I wish HN's stylesheet worked in mobile Firefox so I could use it with ublock full time.

---

Regarding the article subject, are more non-lethal weapons really what we need? The lighter and less visible the consequences, the more potential for abuse.
2016 and using crypto as a lib is still so ludicrously difficult you still get advice to "get a crypto expert".

The failure of current crypto experts to create a usable crypto story is 100% why we can't have nice things.
Anyone can share his experiences using Dart for mobile?
Done by magicians!
My router is an asus rt-ac68u and I have tomato installed on it (I wonder if that's the problem..). The wifi adapter is netgear a6100. The testing was performed in an internal network. I will keep troubleshooting.
I did, it is so abstract to pretend you can do better that there is no way to discern. He didn't even mention "unity" in his post, thats just ridiculous in 2016, but yeah, keep down voting, your implementation of 2d graphics, sound, collision, physics, plugins, marketing, sprites, menus is gonna be so much better than hundreds of engineers at unity withing 10 years straight.
Node.js from 2009 until 2016
Just use queue.h, as do all the BSDs.

https://github.com/freebsd/freebsd/blob/master/sys/sys/queue...
And for any console other than PSX emulator you can place a SFF PC on a console and run Rust on it (as an added bonus you will get a better API than writing hex numbers into registers).
MOMBASA ATTRACTIONS – SOUTH COAST KENYA
Simplicity of a programming language, and simplicity of programs written in it are two very different beasts.

I understand funny things happening under the hood (garbage collection) might not look attractive ; However you can't require everything to be explicit and, at the same time, keep your programs simple/small.

The more you want your code to be small, the more you're gonna need a programming environment (language/API/runtime/framework) doing things for you under the hood. And there's nothing wrong about it!
Half-Life 1 and 2 writer retires