skysight-inc/HackerNews huggingface dataset:
Look at the second example in https://docs.python.org/3/tutorial/datastructures.html#list-...

Once you know how it translates to regular for loops, this syntax is pretty natural. I always put each for loop on its own line, which makes things more readable.
How the demonization of emulation devalues gaming's heritage
RoaringBitmap: A better compressed bitset in Java
I think the biggest reason python map/filter aren't natural is the building outwards (though I do realize it's lispy and some people might prefer it).

Languages that support it directly on a list are much more intuitive in my head: list.filter().map()...

Alternatively, pull in syntax like elixir (and other languages) have to make chaining a breeze:

list |> map() |> filter()
"We know, for example, that “relative risks” can be used to look impressive."

This is, sadly, extremely true and even more sadly, very often used. 5 times more likely to die from x, sounds impressive, risk increase from 0.001 to 0.005 percent does not. Newspapers want to ... sell newspapers, and sounding dramatic is part of it. If every person capable of reading "Bad Science" by Ben Goldacre did so, this would be a better world. It's by the way the best I've seen to give the amateur an understanding of statistics, studies, being critical, manipulation by media, et cetera... (while being entertaining and an easy read, a frequent present of mine to other people).

"Depends on what you mean by rational. I don’t like that word. You could use other words like “value-congruent,” which fit in with what people feel is the appropriate value. Those are the decisions they will make and not regret in the future."

"Value-congruent", nice one. "Rational" is indeed one of those empty words that is thrown around.

One thing I also find incredibly important: People have to understand science is a METHOD, not an AUTHORITY. Because people don't listen to authority, but in many cases they can't argue much with reason. This is incredibly important, a lot of the anti-science sentiment stems from viewing science as an authority, and this is extremely stupid.
> This is called from within a threads execution, right? I think the question is about being able to kill a thread externally.

Yes the GP has the wrong arity, exit/1 terminates the current process but exit/2[0] will send an exit signal to an other process and possibly cause them to terminate (depending on the provided Reason and whether they trap exits).

This is a normal behaviour of Erlang which enables things like seamless supervision trees, where exit signals propagate through the supervision trees reaping all of the processes until they encounter a process trapping exits and a supervisor can freely terminate its children[1]

This can work because erlang doesn't have shared state[2][3], and BEAM implements termination signaling (so processes can be made aware by the VM of the termination of other processes)

[0] http://erlang.org/doc/man/erlang.html#exit-2

[1] http://erlang.org/doc/design_principles/sup_princ.html#id740...

[2] between processes, state is always owned by specific processes and queried/copied out across the process boundary

[3] and thus a process being terminated can't leave inconsistent state behind for others to corrupt themselves (or the VM itself) with
The European Union Is Not a Security Union (economics)
The term nested list comprehension is used differently here: https://docs.python.org/3/tutorial/datastructures.html#neste...

Don't know what a better term might be, but it's good to be aware of the distinction.
I think it depends on what values raise something from merely something to the level of something to show. One person might feel that knowledge from an unsuccessful project makes the cut while another may consider anything short of a passive revenue stream a failure and a third may seek a portfolio project demonstrating experience with Go-lang for landing Go-lang work.

All those are different from projects like Open-Street map which mark success by large world-wide communities addressing global needs.

Good luck.
Numbers are not different mathematically. Written representations of numbers are different psychologically.
Pretty sure it was a bug that they kept for backwards compat, not intentional, though I may be wrong. Py3 let them shed it off though.
Papert's approach was, AFAIK, wildly different compared to recent spread of "just teach people to code".

Papert was going more about actual thinking and exploration using new tools, rather than "teaching everyone to code".
I was once part of a full-department layoff. Sadly they didn't play pomp and circumstance for us as they marched us out the door.
> I suggest that you spend time examining math and physics, since the traditional holy books are written by people who were supposedly divinely influenced, but math books and physics books are works describing the world as it is, and in that case, are the closest glimpse of the divine that you're likely to get in this life.

I agree with you but I don't think physics and math can replace what most people actually get out of religion. That's without taking into consideration its cultural importance in most societies.
A lot of folks are pointing out that malloc can fail, which is true, but the important part is that there are situations where your application will just abort randomly in the middle of nowhere (i.e. not during malloc) and there's nothing you can do about it. There are also situations where malloc fails and returns a null, but given the existence of situations with no errors on a malloc, handling the error in these cases isn't close to a solution. No language or stdlib can solve this problem 100%.

At a baremetal level, it helps having this, but you're probably better off not using the stdlib anyway.
It was largely an implementation detail. This mentions it some:

http://python-history.blogspot.com/2010/06/from-list-compreh...

The PEP is silent on the issue:

https://www.python.org/dev/peps/pep-0202/

I guess mail list spelunking would probably reveal some conversations about how to handle it.
This is the physical experiment that finally made me accept that quantum mechanics was a better description of reality than classical physics. There is basically no way an intelligent experimentalist can look at this simple experiment and not conclude that QM is a more reasonable theory of reality.
Oddly specific, but refreshing to see something like this without any third party code and ads. In fact, the source is delightfully minimal, clean, and human readable.
So instead you have a company that gathers up contracts with owners of IP from a bunch of places to get a "finder's fee" from anybody they negotiate a patent license with. It's no different at all.

About the only thing you could even hope for is that the original inventor will have more of a conscience about how the patent is being licensed than the troll entity. But if that happens on a regular basis then then the troll entity will just start putting liquidated damages clauses in their license finding contracts with inventors that penalizes the inventor for pulling out after the troll entity has done work to find a license victim.
Found a big honkin' list of patients, with names, dates of birth and addresses: http://i.imgur.com/VYRgP20.jpg (image has information redacted).

If we want to raise awareness of this issue, this might be an appropriate use of "won't somebody please think of the children".
It could work. I just want to emphasize this is really an incomplete DFT. It's missing the upper bands and it's also sparsely sampling the ones it does show (the full DFT would have 512 non-aliased bands). I also think in the general case, what you describe only works for the CFT. Making it work with the DFT means you have to lie a little bit, because your "dirac delta" is really a sinc function sampled at the knots to come out [… 0, 0, 1, 0, 0 …].

In the case of the final visualization, it was produced on short notice, so my bands aren't actually perfectly aligned with the true DFT bands either. On the plus side, taking one frequency band and making the full-size one only took me an hour and that's because it was a lazy copy/paste job:

https://gitgud.io/unconed/toolsforthought/blob/master/iframe...

It could be made more compact with a for loop too, but I like the pedagogical value of just having the full JS DOM spelled out like that.

The entire point of MathBox2 was to be able to produce visualizations like this without breaking my head or taking weeks. People seem to assume it's still a crazy amount of work, it's really not. e.g. The twisting transformation is just an affine skewing matrix in polar/cylindrical coordinates (.polar() + .transform()). The fades and other transitions are composable operators. Figuring out how to shove it into the GPU is now ShaderGraph's job, not mine, and the emitter API ensures the JS VM will inline and optimize it close to native, asm.js style. It all comes built-in and you can keyframe the parameters or specify them with live expressions.

The fact that people keep bringing up "beauty" is mystifying to me, it's really not what I'm aiming for. This is just what the math looks like when you remove all the extraneous visual noise and let motion and space do the talking instead. I use the same bog-standard colors, curves and surfaces every time. Why that translates into "beauty", I really don't know, except that maybe beauty is simply what we call it when our brain recognizes symmetries and patterns we don't have conscious words for.

https://acko.net/blog/mathbox2
I just found a PracticeFusion machine at a pediatrics' office, with patient names, addresses and dates of birth. Not quite the same scale as taking down a dam, but I would surely be unhappy if my daughter's credit score tanked before her age hit single digits.
Looks interesting. Curious if there has been a security audit.
It is categorically different. OS threads are orders of magnitude more expensive, which makes them a nonstarter for most problems that are a good fit for lightweight conceptual concurrency.
I wonder how many upvotes it would have if folks knew it had little to do with advice on getting out of bed.
Because four times now you've said "I know more than you" and have provided nothing of substance to back your claims. I know this is HN and "what you say" means more than "what you do", but hipster bravado will only get you so far.
I'm curious as to why there was no prosecution. Given the heavy hand wielded by the Feds in this region for other cases, you'd think extortion and hacking would be a slam dunk?
See also Howl 2.0:

http://www.howl2.com/
For old farts like me gopher is a protocol.
Yup. Even smaller than an old fashioned, toaster, even - although this is assuming perfect packing density, which wouldn't be the case, and would add about 10% to the needed volume.

https://www.wolframalpha.com/input/?i=the+volume+of+a+cylind...
Please take down the image - it links to real addresses and full names.
I don't think the author realizes how appropriate the Jedi tone for this article is. Comprehensions are the gateway drug to the dark side, away from imperative programming and toward languages that treat everything as expressions which snap together more freely. It hints at an idea of making a `for` loop and an `if` statement return a value (see CoffeeScript). But it also hints at the idea that useful idioms like the List Comprehension can merge/simplify existing constructs into a new, easier syntax-- and that there are languages that allow you to do this freely (see Lisp).

Python showed me the Force, but I'm with the Dark Side now.
Market Research Tips
Yes. I am not aware of any recent desktop computers that can idle at 3W and provide close to the same peak performance as a used laptop does. Obviously Intel has been making good progress on this, I have heard that Sky Lake chips can idle at <10W, but those are still quite expensive.

Also by buying a used laptop you get something which is already designed for low power use (e.g. 35W CPUs are pretty much the maximum) and has a built in UPS. Even if the battery is worn out, you're still likely to get 30-60 minutes of run time.
It's really not so surprising that you couldn't reproduce Dataminr, a ~$200M company, in your spare time.
If something hashes to 31, it will be

1 (mod 2)
1 (mod 3)
1 (mod 5)
3 (mod 7)
9 (mod 11)
5 (mod 13)
14 (mod 17)
12 (mod 19)
8 (mod 23)
2 (mod 31)

This would then dictate the location in the hash tree (depending on how deep it is) of any entry to hashes to 31 or to those values modulo those primes.
They have an excellent tutorial [0] that shows using Accord.NET to implement a well known paper called "A tutorial on Principal Components Analysis" [1]. I highly recommend reading them both for anyone who doesn't know much about that field because they give a very good idea of how stuff like facial recognition, image compression, ...etc work.

[0]: http://arxiv.org/abs/1210.7463
[1]: http://www.cs.otago.ac.nz/cosc453/student_tutorials/principa...
Linux 4.6-rc1 was released on Saturday:

http://www.phoronix.com/scan.php?page=article&item=linux-46-...
https://lkml.org/lkml/2016/3/26/132
Some kind of banking system?

http://vncroulette.com/images/186.103.207.230.jpg
On top of "garbage in, garbage out" I don't see how AI was destroyed. It functioned as intended; learned from Twitter and responded as intelligently as it could with the provided garbage. If it spewed Politically Correct garbage, would it have been a success?
I know that the image is available on VNCRoulette, but I still wish you'd redacted that information.
Yes, it does.

Source and build instructions: https://github.com/accord-net/framework
You don't represent primes, the primes are used to split the keys up and decide where in the tree it goes.

e.g. to represent 31, you take 31%2=1, so you use child 1 of the root node. If the root node already has child 1, you take 31%3=1 and use child 1 of that node. And so on.
Go, Ruby, and React.
I used to work as a deep sea saturation diver with various companies in South East Asia. Mostly based out of Singapore and jobs in the South China Sea but also Japan, Indonesia, etc.

Almost accurate description of what live is like as a deep sea diver. Though they don't live "down there" in tiny decompression chambers as the article claims. The chambers are on the surface (on-board a rig, a ship etc).
The problem ends up being that the extracurricular activities become mandatory.
All the code is open source, under a do-what-you-want license, including the slides, and the bulk of it is the MathBox library, designed to do exactly this sort of thing. You are free to build upon it. If this isn't considered "accessible/shareable/tweakeable" it's because the web has regressed into a bunch of walled gardens that only serve up text and media.

What isn't available is a nice visual editor or a hosting platform, but that gets us into the old code vs clicking dichotomy. I don't think I'm the right person to address that, I'm far too comfortable writing code. If I make an editor, it'll still end up a tool meant to save people like me time.
MIT Media Lab Changes Software Default to FLOSS
I agree with this entirely. As I said many times before, I like Go and I like its approach to concurrency.

All I'm trying to do is to make sure that people who make bold claims about abstracting away blocking code aren't misleading others: when calling other code you should always be aware of how it interacts with the flow control of your program.
That's fine. I think most of the HN community disagrees with him on that.

Given the way HN is designed (comments are ranked, low scores get grayed out, user karma scores are visible) if people downvote to express disagreement it would worsen the experience of reading comments, and, I suspect, the overall conversation.
[Cause I can't comment on my own post directly] I should give some some credit as Go is strictly better than Javascript.
> As someone who's spent a ton of time in research labs and has gone halfway through the patent process a couple times - no, no it isn't.

"Worthless" is an exaggeration. The fair point is that implementing the idea (and all of the supporting infrastructure necessary to do it) is generally much more work than coming up with it to begin with.

So you spend 250 hours to come up with an invention and somebody else spends the same 250 hours to come up with the same invention but also spends 5000 more hours to implement it and then the patent system says you can go to them and say "that's mine" and claim all the profits.

That result is clearly an injustice.
Sometimes I respond, "I'll give your opinion all the respect it deserves."

Amazingly the recipient rarely recognizes the insult, but other people in the thread do.
The next step is to generate the article itself.
Go is not a single threaded language.
When someone who is accomplished and respected says things I disagree with, the response I try to have is not to respect him less, but to reconsider my own viewpoint. Perhaps their opinion is from experience I don't have yet, or from a perspective I don't share.

In this particular case, I actually disagree with him about var/val- I think they're a great step forward. But that said, I value his differing opinion on the matter, and try hard to really see his point as to why he disagrees. Perhaps in time I'll realize he was right, or perhaps in time he'll realize he was wrong. Or maybe it will be like putting final on every variable declaration- my teammate and I will never see eye to eye on it (so much extra noise for so little gain, imho).
I wonder if there's some sort of "AI Godwin's Law" brewing here, where it's only a given amount of time before any AI, publicly released, becomes a Nazi due to human interaction.
Nice, thanks. Never even saw that.
Everywhere where social democracy took strong hold it was as a bulwark against Communism. It seems to me on reflection that the places it was strongest was the places that had a strong industrial working class but had the USSR as their immediate neighbour. Placating the trade unions and preventing the population from turning to the far left was seen as extremely important after WWII.

With the weakening of the USSR in the late 70s and 80s and its collapse in the early 90s, social democracy has gone into a tailspin crisis, with its strength and focus undermined (losses to Thatcherism, the turn to Blairism, etc.)
As someone closing in on 40, the depiction of this place does indeed seem like hell.

To all the ex-Hubspot people getting defensive: This article isn't about that specific company. Hubspot was the author's convenient example. It's about the ideas that companies like it exemplify: That work has to be "a cross between a kindergarten and a frat house" (I'd add "a cult"). That work should include partying and nerf guns and dodgeball outings. That you have to always pretend your company is about "leading a revolution" or changing the world. That you have to follow its culture and believe in its mission and values. That your work has to be more than an exchange of your labor for money. That's what this article is about, and that's what all the cynicism about tech startup culture is aimed at--not Hubspot in particular.
Good point. I fixed it.
AI is hard. But we're always here to help! Watching folks build trading neural networks powered by our data has been awesome.
Wiping and restoring doesn't work, but if you wipe and setup your phone as a new phone, then it mysteriously starts working again even on 9.3 . Super weird bug.
A prosecutor armed with the CFAA would probably disagree with you.

Browsing to an address with your browser is like checking to see whether a shop on main street is open right now. Attempting to connect to a an address with VNC is more akin to walking around the back of a house and checking if the rear door is locked or not.
Why would this be faster or more space-efficient than a good hash table?
> One interesting side-thing with list comprehensions

Just to clarify, this is the behavior of py2 for loops in general, whether in a comprehension or not.
There's a fun video he created with Cambridge University a few years ago, called "Professor Risk". Worth a watch (6 minutes) https://www.youtube.com/watch?v=a1PtQ67urG4

Takeaway from the video "I've come to the conclusion that one of the biggest risks is being too cautious."
The comment system on HN discourages discussion of the article, because threads cannot be collapsed and so there is only space for 2 or 3 top-level comments to get much attention.

The top comment is often a poor quality one, expressing some controversial view that gets replies, starving the lower top-level comments of upvotes, and cementing its place at the top.

It would be better to collapse replies to all top-level comments, and allow people to expand the replies to the comments they find interesting.
I'm not sure why this comment is being downvoted (perhaps because HN is [thankfully] less and less tolerant of anything it perceives as factional) but I think I agree with all of it.

The kinds of conferences we're talking about here are private events. Conferences are free to make decisions about speakers any way they'd like, just like a magazine can choose to run or not run a story about any given author.

A lot of people talk about things like StrangeLoop and Lambdaconf as if they were academic venues, like USENIX. They are not; they are as different from academic conferences as The National Review is from IEEE Transactions on Networking.
I was gifted a combo bedside lamp/alarm clock that lights up gradually a little before and starts chiming (in a variety of "natural" sounds) at the set time.

Thought it was pretty useless until I actually tried it for a week and realized it was a lot less jarring and stressful than an ordinary alarm clock.

I still tend to hit snooze and only get up on the second round, but by then I'm usually awake enough to enjoy real sunshine and looking forward to it.

Light tends to have a very positive effect on me in the mornings, so taking as much advantage of it as possible would be my advice.
It is not categorically different.

As I said above, green threading has advantages over OS threading, but they behave exactly the same in terms of design patterns and potential bugs.

This is what I was getting at when I said "not that different": compared to the difference between event-loop concurrency and threaded concurrency, M:N green threading is basically just a subcategory of threading.
But to answer the question, languages with (at least) type parameters and no data races (without using escape hatches). (Hint: that includes, but is not limited to, Rust).
Dataminr specializes in 'event detection' which is different than deep (semantic) processing.
I saw patient data for a some healthcare provider (including patient date of birth, phone # and addresses) and corporate emails that are obviously not intended to be public. Wow

EDIT: It looks like a pediatrician's practice too - so all those patients are children. And all their information is just out there in the open....this doctor needs to be contacted asap and secure their system.
Two answers:

1. Cheap.

2. After two devastating World Wars, people wanted to discard the past. Clean functionality inspired by aircraft represented a modern, better future.
I'm 46, and yes I remember those days. In fact I live in Canada, and in my neighbourhood it is not uncommon for people to leave their doors unlocked. But if I lived in a different neighbourhood with a high crime rate, my doors would not only be locked, but probably bolted and an alarm system would be set every time I left the building.

The burden and responsibility to protect my home is mine. This isn't an either/or as to who to blame, it's a both/and. So back to the link. If you have a high-value service like an electrical grid, or dam, or nuclear plant that is open to the Internet (the most crime-ridden neighbourhood on the planet), do you really honesty think the media's typical response of "hackers broke in to..." is the correct narrative?