skysight-inc/HackerNews huggingface dataset:
Put further, Rich Hickey had a talk about this, I don't remember which one. Most languages (unfortunately those we usually start with) conflate _identity_ and _value_, even though they're completely different notions. It was ok with mutable structures, but immutability puts the problem on the front.

A map is a value; it never changes. When you add something to a map, the old map doesn't change, only the new one does (in that it is created). We have as many values as there are transformations. Of course libraries and GCs will make sure that we use physical resources as efficiently as possible.

An identity, on the other hand, links a _label_ to a _value_ at a certain point in _time_:

- the label 'mymap' is first associated with the value '{"a":true}', then with the value '{"a":false}'

- the label 'Tim's Birthday' is associated with the value '1970/01/13' forever (people's birthday rarely change)

- the label 'President of the US' is associated with the value 'Barack Obama' for the moment, it was different a few years ago, and will be different in a few years.

Going back to the example, we have a single identity, with label 'map', that takes 2 different values over time.
Maybe it's like Fortran: Proglanforgam.
I am quite unsure about the entire concept, but I went to Facebook and a lot of people who are/were not getting investor funding was sharing this :).
Sorry to be pedantic, but if you are pretty sure, then how come you end your sentence with a question mark?
> He is not a messiah, it's already happening

That's a lot of negativity towards a guy who's said from the beginning he's just building a language that he wants to use himself. I don't think he's presented himself as "a messiah" in any way. He laid out some things that irk him in C/C++, and then he set out do make something that suits him better. These may not be the same things that are important to you (as demonstrated by your parallelism and concurrency criticism), but that's absolutely fine. People use different languages for different purposes and different tastes.

It worries me how makers are attacked here. "oh, we don't need that, X did the same thing ages ago" "why even bother if it doesn't do X" "oh dear, please not yet another X, people should just stop" "nobody needs X when we have Y1, Y2, Y3..."

That's some seriously bad attitude.
Eureka? Node-webkit + bittorent == censorship resistant web-app platform
While in bed late last night, pondering the impact and next logical step in the cat-and-mouse of the ever more common takedowns on github and domain names that are used to distribute applications like Popcorn Time, I believe I've had a massive brainwave that I'd like some input on.

> The Net interprets censorship as damage and routes around it

With that in mind, what if somebody were to create a simple cross-platform application shell based on node-webkit with a Javascript Torrent Client integrated, and just one input box that a user would paste a magnet link / Torrent Hash into?

The application would then resolve the info hash back into a magnet link, connect to the Torrent Network and download the new application payload.

After the download is done, reload the shell application with the newly downloaded payload as init target, and voila, you're running the application. As long as there are seeds in the network, anybody would have access to the application and it can never be taken down.

A simple extension to the package.json format already used in node-webkit based applications could include screenshots and stuff directly embedded inside the torrent and show the user a preview of what they're downloading (these would be downloaded first by the shell)

No domains to block, no repositories to block, and all the power of the BitTorrent network for peer to peer distribution.

Tell me what you think, I'll prototype it if i'm not completely missing something very important.
It is a shame this mission has not gotten more press, but I hope it will be covered more once the landing happens on the 12th. Landing _on_ a comet is awesome, and getting to that point and orbiting a comet is an impressive feat.
Technical measures to prevent account theft are always welcomed but they stop there; at prevention.
As most of us know through experience though, poop happens.

In our era, for many people an account at an online social network is part of their identity. Losing it can be devastating. An account at Google is even more; it is one's documents, emails, contacts, calendar, photos, various data and digital purchases.
So it is very important that there is support when you need it. Is it really so costly? I don't know. How many cases of account theft are there every day if the technical (prevention) measures are good? Maybe affected users are willing to cover some of them?
Om is an amazing and inspiring project! thanks for writing it.
This is my second incidence in a span of one month. Just search and you can find a large number of such incidences in digitalocean. When this happens, the options to resolve are very minimal. I can see that some strange files are being created inside the /boot/directory of that droplet. DigitalOcean support says, only option is to just create another droplet and migrate. I thought in this situation i could install a malware scanner and remove the threat or is this the standard state of addressing security?
One big problem with "expanded background checks" is the gaping distance from that seemingly innocent phrase and what's actually proposed, and in the recent case of Colorado, imposed.

These are "flypaper laws", clearly designed to zap innocent gun owners as well as what they're ostensibly supposed to do, which in practice turns out to be nearly zilch, preventing temporary transfers, AKA lending your gun, at gun ranges, while hunting, etc. It's telling that back when there Colorado has some serious flooding, the authorities felt compelled to promise that they wouldn't prosecute people who temporary placed their guns with friends or relatives on higher ground.

It's a major, in your face issue, never mind those of us who know our 20th Century history and are therefore rather allergic to "the government knowing about it". Or the implication that the Right to Keep and Bear Arms (RKBA) is not a fundamental civil right.
No thats not really true, everything is sold for less than it is "truly" worth. Price discrimination works both ways, no reason to assume the seller will capture it all.
Happened with me for some of the projects I have worked on.
Estonian Citizen Extradited to NYC in Cyber Case
Good point. One solution to this is loud warnings in the IDE about "unused return value". But since this is javascript it could in many cases be hard for the IDE to know what type you are calling the method on. (And technically all functions in javascript return something, undefined, which by some people might be considered a feature)

Depending on other API designs these warnings could also drown in false positives because some functions BOTH mutate the object and return it and you very rarely store the return value somewhere else, it's just there "for convenience" when chaining calls, such as foobar.add(123).multiply(456).subtract(789). Worse offenders are those that just randomly return something for the sake of it, take memcpy/memmove/etc in C for example, it accepts destination as a parameter and it also returns the very same destination for no good reason, i have never found a reason to use that return value.

An api should be designed so that unused return values in the majority of cases can be considered an error, unless explicitly ignored by casting it to (void) or something, most cases of unused return values you find are just people that are too lazy to check return codes which is about as smart as wrapping every statement in try/catch with an empty catch block.
Show HN: Square Chainz Frantic Action Puzzling on Android
Over the past year 3 of us have built our first game together. We are proud to get something released to the world and would appreciate any feedback.
We have 10 vibrant and unique backgrounds, and 15 bespoke songs in our soundtrack.
It was made with monogame.
We hope it is a fun and unique game and that you will enjoy it.

P.S. This is my first time posting on HN but paying attention to this community and what people have achieved has motivated and inspired us to keep going!
I agree that the criminalization of drug trafficking is largely a hidden subsidy for law enforcement. Keeping an entire police force busy with controlling borders and neighborhoods creates huge spillover effects in the economy - whether it's for the local donut shop, national firearms and communications industry, prisons or even the car industry.

But as the previous comment mentioned, this can hardly be a global maximum. Right now the local governments are mostly funding a vast array of blue collar workers (prisoner guards, police officers, fast food worker) rather than a smaller set of white collar workers (chemists and physicians) which would manufacture and administer herion/cocaine/etc to those trapped in a severe addiction.

From that point of view the current support for a strong stance against the decriminalization of drugs is neither surprising nor unreasonable for a large portion of society. Although the reasons might be more economical than moral in nature.
Slack's lack of a native Windows app sunk it for our org - then the rest adopted Hipchat and I think it is too late for us. I would love to use Slack, alas.
I remember a HN thread, Singapore was described as being described as sterile and without a lot of culture. Probably a good place to work, but to live? Not so much.
"Portugal decriminalised drugs. Results? Use by teens doubled in a decade with nearly a fifth of 15 and 16-year-olds using drugs."

Laws might not work but there has to be some kind of strict control mechanism in place.
botton line: Thinking in premature optimization stagnate your desing.
Mr. Burns the best science teacher ever. I remember he introduced the concept of Hertz to a half a sleep class by introducing the Avis and proceeding to casually talk about frequencies of Avis. After about 30 seconds he could tell which of us had read the chapter assigned the night before and which hadn't based on the laughter... His classes were the best.
That's not how Series A rounds work. The lead very likely took at least $5m of the $10m round.
Thanks for the links, that's not a search phrase I would instinctively write. I don't understand why you couldn't include examples to illustrate your point in the blog post, you're addressing coders after all. I can't find anything negative about doing that. As is, your post reads like a paygate to your book.

Try linking some code that does reach a solution you deem best, and good luck with your sales!
My right to free speech allows me to say whatever I want about anybody. There is absolutely no guarantee that I be nice or understanding or that I take into account their personal wishes.

When the government tells me that people have a right to remove embarrassing content, it's actually telling me that people have a right to restrict the speech of others.

The right to be forgotten and the right to free speech cannot coexist, because the implementation of one requires the override of another. You must choose one, but choosing both undermines the legal foundations of the modern democratic republic.
You effectively use Tor 95% of the time? This surprises me, actually. I think if I used it that much I would unavoidably lose my anonymity.

Here is my worry -- Tor looks easy to use, but requires habit changes to actually be effective for anonymity. The habit changes that I am led to believe are required for any effective anonymity through Tor scream "NO NO NO NO NO!!!" at the idea of logging into javascript requiring, cookie placing, Facebook.

This seems to me like a situation where the illusion of anonymity might be worse than the reality of non-anonymity. Granted, it lets you bypass censorship. Granted, if you are very careful and, say, only use your Tor Browser to connect to Facebook and nothing else whatsoever... maybe. I just don't think I could trust myself to do it properly. And while I'm no Edward Snowden, I'm also not dumb.
So this guy is single-handedly taking credit for establishing LA's tech scene aka Silicon Beach? I wonder what others in LA think.

We work with a lot of economic dev groups and a hashtag has never come up in the top 100 things of importance. Not sure how access to capital isn't part of the equation?

Nice simple and seemingly incomplete formula for building startup hubs. Prob does sell a lot of consulting however as frameworks like this make hard problems sound easy to solve which is always alluring.
An important factor may also be: It's smaller in download size (15kB vs. 38kB for .min.gz).
Show HN: Otra-vez, a magic REPL for Node.js
> ignores attempts to enforce the law

This means that the government is not operating in accordance with its obligation to enforce the law.

This is neither an issue with the law, nor an issue with the concept behind it - posting libelous content causes financial and personal harm, and this harm must be corrected in the civil court of law.
Where "advertisers" can be replaced by "NSA" for a more lucrative business model... :-/
Author here. I was definitely going for a neutral tone with phrases like those to make it less mundane/more human.

This feedback is great, and it reminds me how delicate phrasing can be and how differently things might be interpreted.

I'm going to polish it up and lighten the tone quite a bit. Thanks!
Some states, like Washington, control liquor. It may have changed since I left, but you had to buy liquor in a state-run store from a state employee.
Even that is a small amount of memory. I have that much RAM on my computer. See, its an obsolete conversation, yet folks raised in an ecology of scarcity can't get past it.
...Is 0.8 Kafka any better?
Even though the hardware is very simple by today's standards, new techniques are still being invented.

Also, people are still figuring out why certain hardware 'glitches' happen and how to prevent them. For instance: http://www.linusakesson.net/scene/safevsp/
Open School Curriculum in Egypt Using Wikipedia/Wikisource
No matter if he's right or not: it can't hurt to set up an additional firewall. TR-069 is scary enough.
Last time i checked Object.freeze actually made things slower, alot slower. Sounds counter intuitive and it might eventually change but that's the current state in most popular browsers.
I use offlineimap. It does incremental syncing, and bidirectional syncing. You can pull email from one server and then later upload it all to another if you switch.

offlineimap.org.
What about Google's right to free speech? Censoring search results is a violation of Google's right to express itself, which is just as important and legally defensible as a newspaper's right to do the same.
personal plug: I've also been working on a programming language in my spare time, called "OWL"; My language is, coincidentally, also meant to be a cleaned up C++ for game development. It is an object-oriented systems language, without a garbage collector where it's most notable features are:

* classes are reference types to avoid slicing (but may still be stack allocated)

* classes are reference counted

* arrays are sized

* semicolons are optional

* tuples are first class types. (essentially acting as anonymous structs)

* basic one-way compatibility for importing C headers

The compiler can be found here:
https://github.com/bsurmanski/wlc

currently it compiles for both Linux and Windows, requiring LLVM as a dependency.

a game written in OWL for Ludum Dare 30 can be found here:
https://github.com/bsurmanski/ld30
Email markup – Unlock the power of your emails with schema.org
Does the search engine not have a right to freedom of speech? Who is the government to tell Google what they can or cannot say?
They had slide rules in addition to the most sophisticated digital computers of the time. Both, in the spacecraft and on the ground.
Looking for C++17 – Proposals from Core, Modules, Networking, Reflection and UB
Thank you so much. I will check it out, I have a feeling these are not going to be 7.99 each with all the above. I also hope they are giving away domain privacy, as charging for that in this day and age is insane.
Thanks! This was the other name I was trying to remember, as I know a lot of people like them. Thanks again.
Me. I rarely run out of battery.
How Ayn Rand Helped Make the U.S. Into a Selfish, Greedy Nation
Fantastic video. I think it nails what DI is good for, and furthermore, what a DI framework is good for. Not only that, but it's a faaaaar more elegant solution than what's been in Angular so far.
Funny Girl – Ultimate Funny Girls [ Girl Lost Home Key ]
Fanboy is what I wanted in a way, someone who knows a system in and out, and like me has run mail systems in the past.

If you know this well, and it is working for you, and you used it to dev clients, then that says a lot, as if you are dev'ing a client, you need a defined corpus and easy way to roll in and out of certain things you have done.

I wish I had this when I was trying to make a webmail based IMAP reader in php.
> Your professional ethics should be guiding you to manage expectations.

Of course. But if someone hires me and then they decide that we need to transfer information faster than at the speed of light there's only so much my professional ethics can do.
An infinite multiverse: a bad idea or inescapable?
Learned something today: "load shedding" and "feeder rotation" are synonymous with "rolling blackouts".

This map shows where in Cape Town the power will be off at any given time. Cool. Nice use of the tools and data available.
Officials decided this spring to modify the space plane’s rocket motor to use a different type of fuel. Instead of burning a rubber-based fuel mix known as HTPB used on SpaceShipOne and SpaceShipTwo’s initial test flights, Virgin Galactic selected a new propellant grain known as polyamide which officials said offered improved performance.

“This was a new fuel formulation that had been proven and tested on the ground many times,” Mickey said in a press conference.

http://spaceflightnow.com/2014/10/31/virgin-galactics-spaces...
About that, I had the absolutely issue, but I was hosting WordPress.

The first thing I was doing after setting a droplet was changing the password to something that was easier for me to remember, something along the line of 'qweasdzxc' but a bit harder combination. This was huge mistake on my part.

Apparantly my password was being bruteforced and once they get root access the DDOS attacks were being performed. What I did was delete the first droplet, starting a new one and just adding a few numbers after the randomly generated password that is sent to you by email. Then I went ahead and installed fail2ban(https://www.digitalocean.com/community/tutorials/how-to-prot...) + some iptables configurations thats are shown in that link. It practicly makes bruteforcing your droplet close to impossible(at least I think so).

If you need any assistence you can contact me through my profile e-mail and I would gladly help you. Remember though you will need a clean droplet, because your system was already compromised and there are holes in it, that simply installing fail2ban will not be enough.

P.S I have no idea why this post is 'dead' and I can't see your e-mail in your profile to shoot you an email with this information.
"a) sound energy falls off as 1/r^2"

No, it doesn't. That's how it falls off when being transmitted perfectly spherically in an environment that won't reflect or refract anything. Consequently, this turns out to be a not-very-useful equation in practice. In particular ultrasound can be beamed just like light, making the "perfectly spherical transmission" not even a close approximation, just as it is not a good approximation for focused lasers. Our intuition doesn't support this because our hearing tops out at frequencies still low enough to do some significant bending around obstacles (though at the higher end if you pay attention you can tell they don't do it as well), so we don't have an intuition of sound acting like a beam, but it can.

There's more to sound than "basic physics", and what you learn in Physics 101 about sound is simplified to the point of total uselessness as in real-life you will never encounter a situation where the prerequisites are met for inverse square falloff.

Mind you, I'm still pretty skeptical, but not about the ability to beam sound. That's established engineering, not wild-eyed craziness.
For general programs, i.e. programs not meant to be run a exact particular machine, it is better to focus on better algorithms rather than better code.

In this case it is useful to look at "Cache-oblivious algorithms": Cache oblivious algorithms allow you to write code that performs well regardless of the architecture and processor model they are run on. From Wikipedia: «a cache-oblivious algorithm (or cache-transcendent algorithm) is an algorithm designed to take advantage of a CPU cache without having the size of the cache (or the length of the cache lines, etc.) as an explicit parameter.» http://en.wikipedia.org/wiki/Cache-oblivious_algorithm

Sadly the field is new and there are not many such algorithms around, but you can already find algorithms for many common tasks such as traversing linked lists and calculating FFTs.
Ask HN: Who is hiring? (November 2014)
Please lead with the location of the position and include the keywords INTERN, REMOTE, or VISA if the corresponding sort of candidate is welcome. Feel free to post any job that may interest HN readers from executive assistant to machine learning expert to CTO.

Please do not post recruiting firms or job boards.
> It might be true they don't work but do we really want the likes of Big Heroin, Big Cocaine and Big Marijuana like we have Big Tobacco?

That would certainly be better than what we have now. Big Tobacco does not kill people in turf wars over who gets to sell where, so I think Big Heroin would be an improvement over cartels and gangs. Maybe it is not the perfect solution, but Big Cocaine is likely going to be better than warring black market factions.

An issue with the government running it or taxing it like crazy is that behavior can still support a black market due to artificially high prices. There's a black market for cigarettes in NYC[0], driven by the high taxes. The government running things is not a silver bullet.

[0] http://www.huffingtonpost.com/2014/04/03/cigarette-smuggling...
nope, 1) Google is offered a safe harbor for a lot of crap under the premise that it is not editing what it displays in the search result, hence what it displays is not the expression of a "speech" 2) the free speech is not absolute in Europe, article 10 gives some restrictions that could be imposed to free speech.
Nano pitch – startup pitches in 6 seconds
Yes. Not everyone using a Mac has an iOS device.
My Live with Flu (radio fact/drama)
Ask HN: Who wants to be hired? (November 2014)
Share your information if you are looking for work.

Please use this format

Location:
Remote:
Willing to relocate:
Technologies:
Résumé/CV:
Email:
In functional languages you often see functions like with_file that use a closure to denote the file lifetime:

with_file(fun file ->
use_file(file)
)

I wonder if there is a way to code something similar that works with "defer". This would free you from needing to "remember" to add the defer and would have the advantage of allowing you to use `return` and `break` statements which don't work if you wrap them inside an inner function.

The only thing I can think of is Python's with statement. Since its language syntax it allows for `return` and `break` but I wonder if there is a way to play nice with defer instead of requiring you to use another "block level" syntax construct for every file you use.