skysight-inc/HackerNews huggingface dataset:
I found some bugs and commented on the original pull request for the pthread support.
https://github.com/kripken/emscripten/pull/3266.

In my opinion, the pthread support itself works well now. But the biggest problem of the implementation is that SharedArrayBuffer, the pthread support calls for, is implemented only in Firefox currently.

One of the purpose to use emscripten is made an application cross-platform web application. You can get a "non-webbish" code runs only in Firefox with pthread-supported emscripten as of now.

I'm looking forward to other browsers with SharedArrayBuffer support, especially Mobile Safari.
AWS Config: A Configuration Manager To Save The Day
I like PG; but I think YC may not be the best place for everyone. (We never considered it for our startup, for example.)

And he is quick with the banhammer for those who disagree, which I think is unfortunate.
Yes I've noticed this. Some days I find mental arithmetic to be very difficult indeed. But not only that - it also corresponds with a reduced ability to plan tasks, difficulties in finding the correct words when writing or speaking, and social blundering in that conversations don't flow as well as normal.

I'm not really sure what it's all about but it seems to come and go. This is also on a background of a constant headache that I've had for almost twenty years; it increases in severity when I'm stressed, and I get stressed when I can't think properly (or perhaps, vice versa), so maybe that's related too.

I hope you can figure out your problem. I'll be reading other replies to this question with interest.
Tell your debugger to open the core dump and print the two pointers. ;-)
I think it's a Bad Idea in C/C++, but it may not be a Bad Idea in some untyped interpreted languages, or in a special "checked build / debug" C++ environment.
There is no reason why printf has to be the sacrificial function that blows up on null.

Of course not. Every function which has undefined behaviour upon being passed NULL should blow up on NULL.

In general, anything which can crash should crash, because that's the fastest way to make sure that bugs get found.
It's a fidelity problem. If you restrict yourself to very simple interactions and behaviors, you can make a Twine game and get the effect you're looking for without touching code. But then your scope gets more ambitious and you want characters to be fully realized, a mobile camera, voice acting, combat simulation, and so on... and then the asset pipeline blows up into something way bigger, every interaction requires additional scripting steps, you start needing to customize the rendering code...

No one of those features stops you, but you get a "death by paper cuts" effect, because you eventually hit a mine that requires original technology to be written - most commonly, something to do with collision code. A good team led by a competent producer is able to figure out how to get the right effect within the budget, but it's never an easy process, and game productions have a habit of "pitching the moon and shipping with swiss cheese".
I read that and realized I had a few tmux session that were running for like 4 months on two servers
Important yes but BIND can also afford having crashed nodes without the internet coming down to its knees. I'd be surprised if such a node came down and caused damages in the hundred of millions of dollars in the process. This is the distinction I wanted to make.

I can't remember the last time my DNS didn't work. The internet can afford to be 'good enough', life critical software can't.
I can't emphasize how wrong you are about the whole "you can only get 15 minutes of radio off a car battery".

Your battery is broken or you have a near-short somewhere. I sit in my cheap-ass Jeep for 45 minutes a week listening to the radio for 5 times a week and have for years. Replace it, if it doesn't work seek professional repair.
Programming sucks
Quip has ~16 elite employees (Co-founder is ex-CTO of Facebook) (October 2014) (http://www.quora.com/How-many-engineers-work-at-Quip) and a great product used by many.
The phrase "considered harmful" is considered harmful, remember?

http://www.catb.org/jargon/html/C/considered-harmful.html
They used to have exactly that. You could list everything available as basic text and sort by whatever criteria you wanted, click the link for a description, and use the back button to return to the text list.

Their star system isn't always perfect, but it was great to be able to sort by what they thought I would like most and scan through the list for something good. Worked nearly perfectly, and I found a lot of great material that way. Then they removed the option to use the rating system they spent so much time and money they spent developing in favor of a visual carousel. It is a lot more visually appealing and a lot less efficient.
printf doesn't have undefined behavior on being passed null.

printf("%p\n", (void *) 0); // not undefined

It's the specific conversion specifier %s which doesn't have defined behavior.

> anything which can crash should crash

__asm__ __volatile__ can crash. It's undefined behavior.
"This is an example of an anti-pattern known sometimes as "defensive programming": If something goes wrong, pretend you didn't notice and try to keep going anyway."

That's why SQL NULL is also a bad idea.
Not for multi-threaded or networked code where breaking in the debugger changes the program's behaviour and causes timeouts. I still prefer printf in these cases.
fprintf(stderr, "test %s\n", s != NULL ? s : "NULL");
if(s == NULL) abort();
What's the situation like for HTTPS in the embedded world?
The primary advantage of Hilbert curves relative to Morton (Z) curves is that they are marginally more efficient at linearizing multidimensional point indexes e.g. storing on spinning disk.

However, the reason that Hilbert curves are relatively rare in real systems these days is that (1) the optimality of Hilbert curves is largely based on the assumption of indexing on sequential storage media, and (2) for the many other applications of structures describable by space-filling curves, a Hilbert description is often inferior in practice. For example, it is a suboptimal curve to use if you are implementing spatial analysis operators in a distributed system.

If you were designing a spatial indexing system from scratch today for modern applications, you would use neither Hilbert nor Morton/Z curves but they are adequate shortcuts for sufficiently narrow applications. Substantially more optimal curves also have a much more complex description.
I like the phrase "creative solution" here, as a way to introduce what the alternatives are - as in: "I think we'll need a creative solution for ______, or else a revisit to the schedule".
Working on a car also means sitting in front of a computer nowadays.
And in situations where it's applicable, I'm perfectly happy to use a debugger.

Unfortunately it doesn't work so well for things like intermittent wrong behavior in long-running programs. Better in that case to use pervasive logging (aka, printf debugging to a file).
Programmer time is better spent learning almost any language other than bash. My god, the centuries wasted on minutiae like the stupid "[ is a program, that's why you have to put spaces around it."

And system administrators should use Ruby if given a choice.
Awsome speach!
When Apple dumped Objective-C in WebObject we at OOPS printed a TShirt that we showed the crouds at WWDC. I can only repeat now what it read.
[objC retain]
Kerusan, OOPS, Sweden
How else would you represent missing data in SQL than using nulls?
At least you are renting and can pick up and leave
Books That Shaped America
Ask HN: How to manage focus in a stop and go workflow
I work with data, and my typical workflow involves cycles of high focus(e.g. writing data extract SQL code)for ~15 minutes and low focus (e.g. waiting the extract to return data) for ~5 minutes. I repeat the cycle continuously. Lately, it takes more mental overhead to come back to high focus mode because my mind wonders too far during low focus mode. Does anyone share this situation and was able to overcome? Kindly share your experience. I am open to workflow adjustment as well.
SQL NULLs propagate; you can't get an answer from a NULL unless you explicitly plan for it.
Ask HN: Simulating an Availability Zone Outage in AWS
I'm looking to simulate a full outage of an Availability Zone in AWS and wondering if anyone has a suggestion on the best way to do this.

Netflix has a tool called Chaos Gorilla that sounds perfect, but they never released it (only the Monkeys).

The other option I thought might work would be to adjust the routing table, so that all of the subnets in the target AZ are black holed. Any other suggestions?
No kidding. I basically quit working and just consult part-time (in Boston, itself not exactly cheap) because I can live comfortably as a single guy for part-time rates. I'm as guilty of chasing the "high score" at times in my career, but to pretend that it's necessary is just...gross.
Checkout http://offsite.careers -- a professional networking site for remote workers.
Godly Dream number 20 please Tune in hand subscribe Thanks
IDM+6.21+Crack+and+Serial+Number+Free+Download
Ugh, homeopathy and people who hate modern medicine.
Crashing can interefere with the debugging session. You have the program stopped at a breakpoint and tell gdb to run some function inside the program which prints something with printf. Oops, that function blows up! The whole thing is foobared now; you've injected a fatal signal into the program that wasn't there.
A bit ironic given Zuckerberg's own actions at his University.
"A GA isn't enough to do high level planning"

It's quite surprising how much can be done by a GA, especially on a computer where more alternatives can be considered per unit time.

One of my brothers learned to fix cars via GAs. I remember the first time he tried: armed with only a screwdriver and his statement "There are only 3 screws on this damn carburetor; there must be some way to tune the thing!" The other brothers, taught by our father the intricacies of mechanics, laughed derisively.

Nowadays he's not afraid to replace struts or overhaul the top-end of an engine. I stand in awe, both of my brother and the effectiveness of GAs (otherwise know as "trial and error"). While perhaps not the fastest path to a solution, they usually get the job done.
I wonder what your thought might be on this...

The angle I forgot to add is that Apple has, in my opinion, destroyed the ecosystem. The race-to-the-bottom they promoted created a situation where a game development team could very well spend a million or more developing and game and have to give it away on a hope and a prayer.

And "hope and prayer" it is because you have to dump even more money into marketing and hope it catches on so that your freemium or in-app-purchases model generates enough cash to recoup your investment and make money.

Not everyone is going to get a hit at the level of "Clash of Clans", yet everyone is now expected to produce stunning graphics, animations and game-play, give it away, create a back-end infrastructure to support hordes of free players and hope the game engages enough to generate revenue thorough IAP or ads.

My guess is one could do better gambling with a million dollars in Vegas than creating a game with that money.
> You’re telling me that because I don’t simply accept the results of a clearly biased study at face value, I am biased.

No. I am telling you your reasons are illogical.

> and stop thinking about why you are pushing your point in multiple places in this thread

It's not complicated. I happen to know something, so I am telling people.

If you are starting to think I have other motives then that's clearly a pattern in your mind and you will have to decide for yourself why you do that.
I recall it being far more balanced prior to the Bush administration. They had a viewpoint: pro-free trade, and generally pro-civil-rights. You could reasonably disagree with the pro-free trade stance.

Then, in the mid-naughts, I recall begin shocked as they started to run epic essays begging Karl Rove to attempt to rise above politics as usual, and about how Texas represented the future of the world. Completely off the rails.
The issue I've always run into is that while 140 characters for a message is largely fine, it's horrible when it includes URLs and usernames.
Decomplecting Clojure
More often than not, organizers don't care enough about doing right and instead do what is expedient because "they don't have the time to investigate or take sides." It's real evil and wrong, but it's fairly common.

If organizers don't step up, crucifying them and perps in the media is another way to go. IANAL but in this instance, the victim may persue criminal sexual harassment charges if statue of limitations have not all expired and a permanent restraining order should be sought to end unwanted attention.
She fooled herself into believing that the world was magical just because she was.
I suppose so. Nix allows me to run N services on M machines arbitrarily with no virtualization and no overhead.

My team builds a distributed application. We have nix expressions that define packages for all the parts of the application, and systemd services to run them on NixOS. Using those packages:

• Our production deployment is defined by some Nix expressions that assign the services to different machines in the cluster.
• Our staging deployment is a Nix expression that runs all the services on a single machine.
• Our development deployment is a Nix expression that creates an environment where all dependencies are available and the application can be executed by hand.

Nix lets you do what Docker does, but at the package level, with no virtualization.
Categorical Variable Encoding and Feature Importance Bias with Random Forests
I have always been surprised how cheap osmium is given how rare it is ($400 an oz). I have wanted to buy some, but it is not the nicest metal to play with [1].

1.https://en.wikipedia.org/wiki/Osmium
"Put up or shut up"

I think we should give him some respect. He's developed a novel processor, and started a funded company before he turned 18.

Even if he fails to sell this particular design, we need more people like him.
Ouch. I wish I could go back and edit that. I need to post a little more slowly on HN.
agreed. that was the worst case of vapor ware... well not because they delivered... old hackers would call it "spiffy"... but i think the better term now is it was the worst case of Hollywood OS ever.
I am not aware of any led headlights. Not in the US anyway. All the ones I know about have LED only for daytime running lamps and high beams.

If there were led headlights (or fluorescent for that matter) you should expect the draw to be about 1/5 that number.

That number includes marker and tail lights and those can be LED, so the number would be lower in that case.
I second this. The new UI lacks a massive amount of whitespace. Everything is so clumped together making the affordance for reach individual movie (or series) much higher than a user would expect. I can imagine a lot of users will get frustrated with this and leave the app.
Zesty (YC W14) is hiring Ember.js engineers
My favourite bug is where adding a printf makes the bug go away. Lots of fun tracking these down in multithreaded code where the bug only shows up after running for a 100 hours.
As a Ruby and C developer, I wish there were more tools like Java's jvisualvm for realtime visualization of running systems without the overhead and forced synchronization of a debugger.

The next best thing IMO is detecting crashes and printing a stack trace, which reminds me I've been meaning to release some code I wrote that does so for C/glibc programs.
For people looking for an apartment, padmapper[1] has a similar option where you can give it an address and it will draw a polygonal boundary around it showing the limits for an x-minute commuting distance for walking, cycling, or driving. I imagine the car commute could be inaccurate if there's bad rush hour traffic in that area, but the others should be relatively consistent.

I'm not affiliated with the site at all, I just thought it's a really cool feature.

[1]: http://www.padmapper.com

You need to click on "More Filters", then "Super-Secret Advanced Features"
>Maybe some structure has a "char * " name field, and null indicates "anonymous/has no name". It's an ISO C conformance bug to try to print that with %s, but that's a portability issue. If that's the only problem in the program (everywhere else it checks for null), there is no real issue.

I'll take 'uses of Option/Maybe' for 200 Alex

Some might say it's overkill, but if you can have a char* be null, then for most intents and purposes you have two states to deal with on any usage of that value.

Just because such a design can exist doesn't mean we should hobble our tools to support it.
This brings me back to a nice little marketing book I read about ten years ago:

http://www.amazon.com/Positioning-The-Battle-Your-Mind/dp/00...

One of the interesting ideas the author postulates is, to put it in CS terms, that people's minds work like a dictionary. Each key associates with one and only one value. And, in this case, the key is a concept, need, category, etc.

If you ask someone in the US to name a plumber they'll probably answer "RotoRooter" without hesitation. Fast food? "McDonalds". Rental car? "Enterprise". Fast car? "Corvette".

The values side of the relationship isn't necessarily uniform across a population but some keys have more uniformity than others (Fast Food).

Once a person makes that key:value association it is really, really hard to break it, if not impossible. Politics tends to work that way too.

In the case of the web, the vast majority of people make the following key:value pair association:

"internet":".com"

And that's the end of the story.
Just try that when debugging an app on an embedded system, mobile, or a console, where you have access to the console but no core dump.

Sorry, but I agree with all the folks who say printf (and similar) is categorically more useful when it prints "(null)". I've had many obscure crashes on systems that were precisely because a logging printf in a seldom-tested piece of code had a parameter that sometimes was correctly null would crash it out. If the debugger isn't attached and we just have a crash dump we can't read (happens even on platforms where you're SUPPOSED to be able to read them), then we have to attach the debugger and hope that we can reproduce the obscure state that caused the crash.

Anything that makes debugging statements more robust and less crash-prone is a good thing. End of story. As others have said, if you want something to verify that a pointer is non-null, use an assert().
You can program the ESP8266 yourself. For its TCP stack it uses lwip which you can also compile yourself. The 802.11 stack is more of a black box though, but not necessarily the TCP stack.
Yesterday we had 'Like Airbnb, but for algorithms?' (https://news.ycombinator.com/item?id=10044783) and now this. I see no reason for this namedropping but clickbait. It's getting kind of silly.
I think after superfish and now this anyone would be mad to buy Lenovo - I work for large companies - and I would never ever recommend them (luckily I havent worked somewhere recently that uses them).
It's been a pet peeve of mine, until i started looking at it as just another nag screen.
Creating humourous content and sharing to social media
I don't think it's a myth, but it definitely is self-fulfilling (since it puts off users who would otherwise use Linux, but don't because they don't want to exclusively use the CLI)

Personally I use a mac nowadays but still use and prefer the command line for this kind of thing. I tried using Github for Mac but quickly gave up the first time I had to do something vaguely complicated.

I guess I'm still a linux person at heart - you can tell if you prefer to 'brew install everything and have never actually used the App Store except to install Xcode :)
> so I wonder what it is about oils specifically that kills them

I think it's just the smoke, nothing special about oil or teflon. I wonder if smokers have a problem with bird health?

Cast iron has oil on it when seasoned. I suspect the study used "clean" cast iron.
If they're tattling on her to him and haven't done anything to hold him accountable, they're not going to make it right except as a token PR play under pressure later. She's got to engage a lawyer and the legal system to protect her.
SourceForge in 2015 (All default settings)
Great tool! It shows the difference a service like Cloudflare can do for you!
Design for Action
It could simplify things elsewhere.

In Lisp, CAR and CDR accessors take a cons cell or NIL, which isn't a cons cell, and has no such fields.

It wasn't always like that; according to the HOPL paper on evolution of Lisp, InterLisp introduced this nicety and it was copied by others.

These functions are complicated with that extra state, but programs are simplified.

A null "char *" indicating "this object has no name" is better than some special string value doing the same, because it's different from every possible string value.
This is exactly what I was thinking is the best use case.

The full lithium batteries are too expensive, and or don't provide enough starting amps.
Ferrolic
It can be a bit counterintuitive that "([NULL] < x)" and "NOT ([NULL] < x)" both return NULL in SQL.

MariaDB [(none)]> select null as a union all
select 1 as a;
+------+
| a |
+------+
| NULL |
| 1 |
+------+
2 rows in set (0.01 sec)

MariaDB [(none)]> select * from (select null as a
union all select 1 as a) T where a >= 1;
+------+
| a |
+------+
| 1 |
+------+
1 row in set (0.00 sec)

MariaDB [(none)]> select * from (select null as a
union all select 1 as a) T where NOT a >= 1;
Empty set (0.00 sec)
looks interesting, I wonder if it can be ported to Windows, where I have to spend my working life :-(.
For something even more sophisticated and Mathcad-like take a look at SMath Studio: http://en.smath.info/, unfortunately only free as in beer.
Thanks for posting, nauman! If any of you are using Node.js and relational databases, you might have tried ORMs such as Sequelize, Bookshelf or Waterline. In my experience, these ORMs do not produce efficient queries required for production applications.

JoinJS gives you direct control over database interactions and maps query results easily to JavaScript objects. Would love to hear your thoughts and am happy to answer any questions here.
Mathematica is not free and iPython is not as straightforward to use.
Operationalization
As an Australian I have always been amazed with that in the USA you have to use a buyers agent. Here you visit the properties yourself and deal directly with the selling agent. Only the buyer pays the agent.

We do have very high stamp duty (basically a sales tax on real estate) which is 5% of the property price which the buyer has to pay.
Men and women both make up crazy stories all the time to attack other people. It's incontraverible evidence that makes it clear one side isn't lying. It seems like she has good evidence so it's not s/he said situation anyhow.
The driver's not much good on its own.

Traditional dependency systems force you to track the version of the server itself outside the project's configuration.
Cutting boards of plastic and wood contaminated experimentally with bacteria
A note for those encountering difficulty: most people will have to type ulimit -c unlimited to get core dumps.

$ echo 'int main(void){ return *(int*)0; }' > crash.c
$ gcc -Wall -Wextra -std=c1x crash.c -o crash
$ ./crash
Segmentation fault
$ ulimit -c unlimited
$ ./crash
Segmentation fault (core dumped)
> pdf.js was quite slow when it was first released. But have you tried it lately?

Not really. Even though I also do web development from time to time, I tend to favour native applications.

And as you acknowledge, it is still slower.
Organizers that aren't money-hungry, amoral/weak/lazy aholes. They don't care about protocol.