skysight-inc/HackerNews huggingface dataset:
I've been using Nimrod to replace Python on a Bitcoin project.

elliptic.nim: https://github.com/def-/bigints/blob/master/examples/ellipti...

elliptic.py: https://github.com/wobine/blackboard101/blob/master/Elliptic...

Nimrod looks and feels like python, but it compiles to C. It's like C except with Pythonic syntax and with Boehm GC optional. In addition, Nimrod has a burgeoning NPM-like module ecosystem developing, albeit in the early stages.

import rdstdin, strutils

let
time24 = readLineFromStdin("Enter a 24-hour time: ").split(':').map(parseInt)
hours24 = time24[0]
minutes24 = time24[1]
flights: array[8, tuple[since: int,
depart: string,
arrive: string]] = [(480, "8:00 a.m.", "10:16 a.m."),
(583, "9:43 a.m.", "11:52 a.m."),
(679, "11:19 a.m.", "1:31 p.m."),
(767, "12:47 p.m.", "3:00 p.m."),
(840, "2:00 p.m.", "4:08 p.m."),
(945, "3:45 p.m.", "5:55 p.m."),
(1140, "7:00 p.m.", "9:20 p.m."),
(1305, "9:45 p.m.", "11:58 p.m.")]

proc minutesSinceMidnight(hours: int = hours24, minutes: int = minutes24): int =
hours * 60 + minutes

proc cmpFlights(m = minutesSinceMidnight()): seq[int] =
result = newSeq[int](flights.len)
for i in 0 .. <flights.len:
result[i] = abs(m - flights[i].since)

proc getClosest(): int =
for k,v in cmpFlights():
if v == cmpFlights().min: return k

echo "Closest departure time is ", flights[getClosest()].depart,
", arriving at ", flights[getClosest()].arrive
You're perhaps thinking of TypeScript.
from their blog: http://blog.tsa.gov/2014/01/tsa-travel-tips-tuesday-travelin...

Yep. You can bring two 1.7 oz glass bottles with you to the airport (in case you have a specific shape or kind of glass you'd like).
A fight occurring in a plane is more dangerous than on the ground, specially if people are firing guns.
Raw Footage: Larry Tesler on Steve Jobs's Visit to Xerox PARC
Well taking it down does not seem to be a good idea. You should atleast wait a little more and try to sell it. Its worth trying than taking it down right away. You can put banner on your website, letting people know that you are selling the product. Or you can pitch existing similar but low features websites and show them your more powerful feature rich product.
I'm curious how this compares to something like GuardRail by ScriptRock.
Of all Armin's articles to date, this one I agree the most with.

> Python is a language that suffers from not having a language specification ... There are so many quirks and odd little behaviors that the only thing a language specification would ever produce, is a textual description of the CPython interpreter... Keeping a language lean and well defined seems to be very much worth the troubles. Future language designers definitely should not make the mistake that PHP, Python and Ruby did, where the language's behavior ends up being "whatever the interpreter does".

This is an incredibly important point. The rise of PyPy is just one compelling illustration of how Python is at a point where a language specification is needed, and these crazy CPython-specific bugs need to be purged.

> I think for Python this is very unlikely to ever change at this point, because the time and work required to clean up language and interpreter outweighs the benefits.

I would disagree - I think it's possible for Python to change this. Any such bizarre behaviors need to be treated as a bug, and eliminated in the next release.
But there's no way to reliably get information to all people within ten seconds. Even if a text message alert was sent out as soon as the system was triggered, that time, plus the time for even the most phone-ready people to pull out their phone and do the necessary steps to read a message leads to basically no warning at all.
Each time I've attempted to use Linux as my main OS it's always X11 that scares me off. Booting into console to edit xorg.conf gets tiring after a while, spending hundreds of dollars for graphics card that has more stable drivers, the general ancient 90's feel. I've tried it multiple times, but gave up each time.
HTTP "Prefer:Safe" – Making Online Safety Simpler in Firefox
This comment is correct. People do avoid flying in particular because it is so annoying and humiliating. I know this anecdotally from talking to both frequent and infrequent flyers, and I believe several statistics and studies bear it out, though I haven't carefully analyzed the methodology.

Additionally, the economic costs of slowing and discouraging plane flight are staggering. The loss of people's time spent waiting in the airport is a tangible economic price. Thousands of human hours wasted daily. The security procedures make what should be very short trips (for example, New York to DC) inconvenient enough that it becomes a toss up between plane, train, and car. In my opinion, this is a significant step backwards for our effective infrastructure.
Thank, you. I didn't know neither the formula, nor the website.
Speaking of Solaris, I'd love if dbx was available on linux.

I haven't used it in years, and don't even remember what was so great about it, I just remember it seemed a lot better than gdb at the time.
Yeah, all of this scrap-the-TSA talk makes me wonder how much people have flown internationally: in places I've been, security has been very similar to the TSA with minor variations. It seems like for every policy that had something a little less strict about it there was also something else it was a little more strict about: some care about liquids, some treat iPads as laptops, some make you remove your shoes.

I've also been frisked by the TSA and at the Brussels airport and they were significantly more invasive in the latter.

My experiences include flying in the following places in the past 5 years as a single male US citizen: USA (2x-4x year), Brussels, Budapest, Denpasar Bali, Jakarta, Singapore, Tokyo, UK.
Could another approach be to allow applications to flag a graphical element as secure and it will be excluded from any attempt by another process to read the screen? Don't even allow the superuser to take screenshots of passwords, credit cards, etc. They'll just show up as a black box.
Even if you know what you're doing, do you know what your computer is doing? In detail?

I have only the most general of ideas of what my computer is doing at any one time. I know that the software I was using one year ago was riddled with vulnerabilities that were undetected at the time. It seems foolish to assume that the software I'm using now doesn't have similar issues.

I personally welcome anything that lowers my security risk. Sandboxing applications seems a fantastic idea, if it can be done without unduly affecting my workflow.
Relevant xkcd: http://xkcd.com/723/
In Iceland (as of 2006) my recall was no security screening point for the airports besides Keflavik (the airfield for large international flights). Totally liberating and strange to walk right to the gate, then out the door and across the tarmac onto a small airplane. Am curious if this is still so. I took it as a sign of mutual trust in a small nation.

I should also say that I remember even in the 1970s being able to walk to the gate without a ticket (albeit after passing through a metal detector). Both that and the Iceland experience had the romance of air travel which is lost during the humiliation of large airport screening procedures in the U.S.
Of course, we never hear about all the times the system has given false positives.
By 'a single implementation' you mean Python 2 or Python 3, right? ;>

In seriousness, what sort of portability issues do you see with Racket code? Racket has 32 and 64 bit flavors for *nix, OSX, and Windows. It offers backward/sideways/forward compatibility with R5RS and R6RS.

Locked away in the cellar like a crazy aunt, it even includes mutable lists.

http://docs.racket-lang.org/compatibility/mlists.html
I have no problem with the "calories in = calories out" statement. Thermodynamics says it must be true.

If calories in <> calories out it doesn't mean the law of thermodynamics is wrong, it means you have a leak somewhere in the lab you must plug before you can test hypothesis such as "eat less and you will lose weight".
I'm usually the first to defend developers who want to charge for their apps, but in this case it seems quite ridiculous
Is searching for cash the classic example or a one time example involving Ron Paul's cash courier, which then led to a rule change instructing TSA to ignore cash?
I've used Shapeless. It doesn't affect my actually writing code on a daily basis. Reified generics do.
The article is worth reading, for anyone who was going to skip it. It's especially interesting to read about the aerogel method and techniques used to discount many of the particles captured.

"seven dust particles caught by the Stardust spacecraft likely came from the [interstellar medium]"

Must be a fascinating project to work on given the attention to detail required and the rarity of subject material.
W3C Mobile Apps State and Roadmap
Make your Website Dance
I'm curious how this compares to Ruby's uber REPL, pry. https://github.com/pry/pry

I only started with racket yesterday, enjoying it so far...
Catch: A modern, C++-native, header-only, framework for unit tests
Just get rid of it. What currently exists is like something from a police state. It's evil, tyrannical, and will fail stop a future attack against the traveling public inside the United States.

If this gross violation of liberty and due process must continue for legitimate reasons of public safety, because the consequence of projecting power abroad is being targeted for reprisal, then at least grant immunity for offenses unrelated to aviation safety.

But that will not happen, because the people who enable and profit from these checkpoints aren't subjected to them at all.
In Japan, all phones (even the iPhone) are setup to emit a loud alarm sound when an earthquake warning is sent, whether your phone is on manner mode or not. The alarm sound is very distinctive and the same for all phones as well as all TV channels.
> designed to simplify and strengthen the online trust and safety model.

Is this intended for the publisher to implement filtering, or for the publisher to declare semantic labels which can be filtered by 3rd-party sites with consistent editoral viewpoints?
All it says is the most fragile point was 11 km down. The vertical load could be stabilizing whatever originated the quake.

There is a comment about it at http://gizmodo.com/californias-drought-is-so-bad-the-mountai...

Compared to the other loads at the faults, water is relatively minor.
Given the design of this system (it's an early warning system, not a prediction system), the false positive rate could easily be zero so far.
Sure, and the warning signal doesn't travel at the full vacuum speed of light, either: part or all of its path goes through electronics, and electrical signals travel only something like 0.5c.

But this is a really short article aiming to give readers the gist of how the system works. Referring to "the speed of sound" without specifying the material is still probably within an order of magnitude or so of being accurate, and I don't know how valuable greater precision would be in this context.

(In any case, I'll wager that the number of people who 1) have a solid, intuitive understanding of the 350m/s speed of sound in air, but also 2) don't understand that earthquake wave speeds in rock are also essentially sound waves but travel significantly faster, is pretty low.)
It's easier than interacting people who are stressed or under duress - which is usually the case with service jobs. In any case it seems that you didn't read the piece, since it says absolutely nothing about these situations.
Python 3 Patterns, Recipes and Idioms
I agree. Although ABET does not score, you are either accredited or not.
Unfortunately, the chapter(s) on Deep Learning haven't even been written yet.
I used to work for Accenture as a technical consultant.

Having read both complaints, I'm on Oracles side more than the Oregons.

On so many big IT projects I would see the client constantly change requirements, be very vague, change stakeholders who then completely move the goal posts and effectively hold the project back for large periods of time.

It's not surprise that large projects fail when you see the state of most large clients.

This highlights a much larger problem. Our processes for delivering large IT projects need a radical change in order to stop toxic stakeholders tanking whole projects.

However, Some of Oracle's products are shit and do fuck all out of the box despite what the sales people say.
"Strengthen the online trust and safety model" is a weird way to say "no porn."
Another interview about streaming media from 1999
Yep - kind of like active hard-drive protection [0].

I could imagine stop-lights turning red at major intersections, elevators stopping and opening at the nearest floor, BART trains coming to a stop, etc.

[0] - http://en.wikipedia.org/wiki/Active_hard-drive_protection
Kangax's ES6 Compatibility Table tracks the implementation status for many browsers, though Chrome's ES6 support is hidden behind a pref: chrome://flags/#enable-javascript-harmony

http://kangax.github.io/compat-table/es6
Downvoted for asking a question. Geez, tough crowd.

I found the Wikipedia page on the twin paradox[0]. It explains the matter very clearly.

[0] http://en.wikipedia.org/wiki/Twin_paradox
True enough, and if privacy is a must have, my implementation is a non-starter.

I tend towards the (somewhat unpopular and certain arguable) opinion that need for privacy via a runtime-enforced mechanism is overrated... give us developers using an API/library effective/well-documented methods that do what we need and warn us when we shouldn't touch something with a convention (like an underscore), and usually we're happy to leave the black box closed.

It's usually when abstractions leak or implementations aren't complete that we're tempted to tinker across boundaries, and when that happens, the lack of a privacy enforcement mechanism may not be the real problem.

(OTOH, they can indeed help keep some bad situations from getting worse, and when trusted code is mingling with untrusted in situations like web mashups, privacy-enforcement can be really helpful for security...)
This is what I could find:
The sound: https://www.youtube.com/watch?v=lPDvAYF8Q-I
Wikipedia article in bad need of proof-reading: http://en.wikipedia.org/wiki/Earthquake_Early_Warning_(Japan...
People in Tokyo had a 60 second warning for the 2011 quake. Here's a good translation of the TV alerts from that day: https://www.youtube.com/watch?v=24KfBwkMw_M Phone alert: https://www.youtube.com/watch?v=bAAIcqI_0Jk Warning countdown: https://www.youtube.com/watch?v=n-FMpNBfna8
Which might mean getting to a safe place 20 seconds into the earthquake instead of 30 seconds into it. I wouldn't downplay this.
They could try blocking the leak somehow although it might be pretty difficult. But I think this could lead to earthquakes if they figure out a way to cap it.
There's a curse that comes with watching a movie adaptation of a book before reading it, in that you can't not picture the faces of the actors that portray the characters.

I'd attempted to read The Fellowship of the Ring a few times as a kid, but never got into it. I watched the movie before I started it in earnest, and I feel I was kind of cheated by all of the visuals I wasn't able to conjure up myself. For that reason, some of my favourite parts of the book were those that were cut from the movie, such as Tom Bombadil and the Barrow-downs.

Thankfully, I went on to read The Two Towers and The Return of the King well before the movies were released, and enjoyed them much more because I got to inject a lot more of my imagination into them.
Those are all great points and things to consider. For me, it's simply a matter of principle. Fundamentally, I don't believe it's the governments job to stop people from engaging in risky behavior or even hurting themselves. The role of government is to protect us from being hurt by other people.

When you look at US laws that attempt to regulate carnal living, they're all over the place. Cigarettes are legal, but not marijuana. Alcohol is okay, but not shromes. We make people wear seat-belts, but don't limit their McDonalds intake. Our age restrictions are crazy too. You can die for your country, but you're too young to have a beer.

Our laws are a mess because they are written based on money, popular opinion & emotion instead of figuring out how to protect without depriving others of their personal liberty. Just like freedom of speech, I might not agree with what you say/do, but I'll fight for your right to say/do it, as long as it doesn't deprive others of their rights. Much like I support Westboro Baptist Church's right to free speech, I support the legalization of prostitution out of principle, even if it's not something I approve of personally. The strength of your principles are usually measured at the extremes.
In the US, amber alerts hijack phones and emit an alarm. Had it happen in the middle of a college lecture.. although some phones received it 5 minutes later than others. I'm guessing this functionality could be used for earthquakes.
It isn't just that. Private companies pay a lot of bribes, I mean lobbying dollars, to keep the corporate welfare rolling in, and there are many, many citizen groups who gnash their teeth anytime the government "wastes" money by not paying private companies to do its work. There is a lot of motivation to keep shoveling good money after bad toward private companies, and little to change it.
Would love some more comments!
In times when the power has gone out and all the running appliances turned off...deep freeze, refrigerator, computers, TV...it is a degree of silence that surprised me. I don't normally realize how much noise there is.
Personally, I don't fly if I don't have to. The cost of flights has nothing to do with it.

The way things are now, I feel threatened in an airport. Especially a US airport, though Canadian ones aren't much better. I feel a heightened possibility that my valuables be stolen from me. That it's done under the color of law makes it even worse than being in a rough neighborhood.

Some may say this is unreasonable, but I know two people who've been stolen from by TSA.

I'd rather drive 8 hours than be subjected to a warrantless search.
I worked at a large web portal that decided to go with Fatwire.

In the end, they dumped it after spending about US$ 10 million (licenses, fees, our time) and wrote a new CMS.
What are the use cases for this format ? I am guessing the image responsively resizes or something, but it's hard to tell without any examples.
I am switching to that 30$ plan as a result of this post. Just saved me half the cost of my monthly bill. Thanks!
> But that will not happen, because the people who enable and profit from these checkpoints aren't subjected to them at all.

Don't worry - you can pay ~$100 to have the privilege of being "randomly" selected for "reduced" screening (ie, pre-9/11, with a metal detector).

Of course, this is certainly not random at all. I don't have a random sample, but based on what I can see, it's very unlikely that they actually select people randomly and fairly[0].

The existence of this program means that we're separating travelers into two groups - those who can afford the $100[1] to be exempt from these draconian checkpoints, and those who can't (or who can, but are still forced to go through them anyway).

[0] https://twitter.com/nickgrossman/status/476745477430734848

[1] Not just the fee, but also the time (you have to go for an in-person "interview", which is really just so that they can fingerprint you... I don't remember them asking any real questions)
> I know what I'm doing when I'm working on the computer and I haven't gotten malware in years.

And how do you know you have not got malware in years? Not all malware are of the flashy "pop up ads in front of you" nature. Running as root 24/7 is a ridiculously stupid idea, especially for a desktop, no matter how careful you are.
Which was discussed here: https://news.ycombinator.com/item?id=6667592.
Surprising to see a svn repository listed. Is that common in the OCaml community?
I don't think you researched well enough, 5$ saving is nothing. tell us which plans you were deciding between.

For example Straight Talk, is 45$ / month, everything unlimited. And you can use either AT&T's coverage, either T-Mobile's or Verizon's (and their phone too).

And that's for everything unlimited, you can find cheaper if you don't need unlimited.
How is that relevant? I don't want to suffer through TSA shenanigans on domestic US flights. What they do in Brussels has nothing to do with that.
As for your point about noises which do not generate a conscious thought...are you saying that an unconscious thought cannot be a 'distraction' in the sense that it is wasting precious resources in the mind?
Beautiful idea. I can see this can be a great front end for wget/curl.
Haha yeah I had the same exact reaction but if he/she can people to pay then good for them. They've found a pain point someone's willing to pay for :-)
I don't know why, because I haven't thought through it enough yet but I really like the idea of freezing or protection in the case of a reactive data model like Backbone models. I'm thinking of maybe writing up some quick implementation where you provide a schema and you get a reactive object that is frozen and has a catch all. Just want to see where that goes.
The various types of seismic waves travel at different speeds. Luckily the most damaging are slowest, which travel at about half the speed of the fastest (~5 km/s). You can detect the fast waves and trigger warnings immediately, without having to wait for the damage to start.

California is a little bit of a special case, in that quake damage falls off rapidly with distance (the rock is kind of broken up here and doesn't transmit energy well). Earthquakes east of the rockies, while rarer, also have a much bigger radius of damage. In areas like the New Madrid Seismic Zone you could get useful warning times on the order of minutes.

Any early warning system is worth its weight in gold if it's automatically linked to infrastucture like gas mains and train signals (or data centers!). Even a few seconds warning can save lives. Unfortunately, like any other kind of public infrastructure besides roads, getting a decent warning system in place is politically impossibe in the US.
I don't think C++ interface is easily feasible, as far as I know no language managed to do that yet, probably because of the wildly different ABI between C++ compilers.

Anyway, I would add to your list Go concurrency constructs (channels, "go"-like statements), polymorphic types, and, personally, significant whitespace for indentation, like Python.

Rust is a big step in the right direction, although it's a bit too complex|heavy for scripts.
That system is really poorly implemented in the US. I've received alerts for things happening in different states and haven't received alerts for things I know are happening in the county.

I would expect if they used it for earthquakes as it is I would get the alert on the East Coast and someone in California wouldn't.
Type-directed search with dependent types