skysight-inc/HackerNews huggingface dataset:
Haskell's great contributions to its users are quite often advantages conferred by the type system. A number of the libraries mentioned (e.g. ad, lens, mtl, QuickCheck, MTL, among others) are made either possible or efficient by Haskell's ability to work with static types in a sophisticated and nuanced way.

Users of dynamically typed languages talk about "fighting" the type system—and yes, there can be a bit of that, espencially early on—but once you become a proficient Haskell user, you learn to use the type system and the guarantees provided you by the language to enforce properties you want to be true, and thereby effectively use the compiler as a pre-emptive, exhaustive testing mechanism for the correctness of your code. A good Haskell programmer will set up types in such a way that the logic errors of their program will be translated into type errors, so an incorrect program cannot even be compiled.

So, I suppose, the target audience of Haskell is people for whom program correctness is a stronger motivation than, say, the speed gains of C/C++ or the development time increases of dynamic languages[1] or the like. (EDIT: To avoid the charge of excessive language zealotry, I should clarify that I don't think program correctness is the overriding factor in all cases, and consequently I don't think Haskell is the correct tool in all situations, as well.)

[1]: I personally don't find Haskell particularly slow to develop in—in fact, I find it much faster and easier to develop in than the dynamic languages I know—but I do use it literally daily, and, to be frank, a new programmer will likely find it tricky and confusing until familiarity sets in. Similarly, Haskell can—used correctly—have spectacular performance, sometimes matching C and beating out C++, but again, it takes experience and understanding to milk the best performance out of Haskell.
It's not just a vague futuristic concept, it's 'a vague futuristic concept of a genius engineer'. There are so many other concepts that don't generate publicity like this.
This is well good. There is just one thing that can be an issue with people who care. Are they caring about the right things at the right time? Suppose that's the manager's role to help focus the team.
Yes, we figured the page scrolls slow if there are too many photos in the DOM at the same time so the lazy-load-function also removes them when out of scope.
I know what you mean. Perhaps HN agrees. I submitted an article describing what this is and it got no where. Weird though, because any criticism of Musk usually gets karma slaughtered.
Justice Department moves to end the war on drugs
Page title directly contradicts the HN title: "I drew a camera in HTML and CSS".
Ask HN: Is this common among python devs?
I have a friend who is a wacko python developer…he got drunk and puked in a club…is this common among python devs?
Lenses begin with getting and setting. Since Haskell is immutable, setting is a little different—it's a method of quickly generating a mutation function for a type. Lenses keep getting and setting bound together as a first-class value which creates the idea of it being a value representing a "focus" on a particular field in a complex, nested value.

Then you can compose these lenses together and retain these properties. You can also pick lenses which operate with different multiplicities from 0 to infinity. Finally, you can use their seemless connection to object isomorphisms to create a very general interface for working with various kinds of "similar" objects in Haskell.

At the end of the day you can write a first-class lens which represents getting and setting over a set of parameterized Map keys deeply inside of a stateful computation, mapping over anything that looks like a string, and viewing/modifying it as decoded JSON.

obj . ix "aKey" . each . _Object . ix "3" . _Number .~ 4

might modify a record in a type like this

IsString s => SomeState { obj :: Map s s }

where the string values of the Map have a JSON schema like

{"1" ..., "2" ..., "3": <aNumber> }
Yeah, the first time I saw something like that I was pretty surprised.

You can actually display:block script elements, too. Kinda cool if you need to put a code example on a page and also have that same code actually execute.
Even better grab a random Linus response to Linux kernel commits and add it as a comment. Example:
[GitUser], SHUT THE FUCK UP!

It's a bug alright - in the [GitRepo]. How long have you been a maintainer? And you still haven't learnt the first rule of [GitRepo] maintenance?

If a change results in user programs breaking, it's a bug in the [GitRepo]. We never EVER blame the user programs. How hard can this be to understand?
I wouldn't be surprised if part of the condition of the grant was that any inventions should be commercialised, and some of the ownership of the invention transferred back to the funding body. If a charitable body like the Leverhulme Trust can recoup some of its investment, that enables it go on and fund even more research.

If the commercialisation involves extracting money from people who will gladly pay it to get better crop yields or lower fertiliser costs - like industrialised farmers in the first world - then it seems like a perfectly reasonable thing to do.

What would be a real shame is if the prices were set so that people in the third world could not use this advance to keep themselves and each other from falling into food poverty. However, food shortage is rarely about production capacity, and more often about allocation. Amartya Sen's work and all that.
There's a wide gulf between Ruby concurrency and Haskell concurrency.
Nope, but I started NoFlo. Among some other open source things :-)
Remember how the Segway was going to be bigger than the internet?

That said, I think the hype bubble for the HLoop has a small radius. Very much concentrated in tech circles. None of my non-tech friends (we fondly refer to them as normies) have heard about the Hyperloop.
It's actually possible to do away with the HTML altogether (or rather have a 0-byte HTML file) by using the Link HTTP header to specify the stylesheet - http://www.w3.org/TR/html401/present/styles.html#h-14.6

There was a fun demo that showed exactly this, but I can't seem to find it now. This page - http://annevankesteren.nl/test/html-element/style-header.php - uses Link header but also uses some HTML.

[edit - fixed second link]
I say it is generally a sign to leave because at that point things have got so bad that there is a critical mass of people that don't think the company will succeed. Usually at these speeches no one actually leaves, things proceed as usual for a few months and then the thing fails and there is a huge strategy shift.

It's not really motivational or inspiring when someone tells you "my way or the highway". When "my way" has been a failure thus far.

Although rare, the sign of a good leader is to accept and acknowledge failure and correct the issues.
It's a first-person source. You can gain more value from it than a third-person one, but it requires more work to get those advantages.
20 years of patent protection seems fair, considering the potential good that would come out of it. Maybe it would have taken another 20 years without the patent incentive.
As pointed out over at http://www.mikrocontroller.net/topic/303547

the most simple way of starting the fun:

Create a file called autorun.sh on the card, put

telnetd -l /bin/sh &

in that file and boom. telnet 192.168.11.254 and enjoy.
Rdio's app (rdio.com) also nails this.
> ... Bush may have been right.

I saw the attitude had two parts - "We will soon invent a technical solution" and "so, we don't need to alter our behaviour"

The first part seems to be true -surprisingly.

The second part, might also be true. That worries me. If the whole planet altered its behaviour slightly to become vegan, most energy, water and agricultural crises will vanish. Instead we invent lab-grown beef.

Economics seems to be the science of individual behaviour and crowd behaviour. Every long lived and successful person or company seems to recognise moderating ones own behaviour leads to more sensible restrained wants and needs. Franklin might be a good example.

I guess I am saying I worry that technology is enabling in the co-dependence sense of the word, humanities worst excesses - and that it is feasible for politicians to support that.
I'm quite the introverted person as well, but I keep reminding myself to develop that part.

I don't know you at all, but I bet it will be fine... Just keep trying and see how you can improve and represent yourself! :)
Yes, that is a common trade of a Python developer. It depends only of preferred programming language. Damn troll ruining Hacker News!
Indeed, but it's not "perform well by sacrificing memory" rather, "sometimes use a lot of memory unnecessarily".
Actually, you're right! It's the same picture, scaled down to around 500x500 and with a heavy gaussian blur applied to it. The trick is to have a subtle grain effect over it to eliminate gradient artifacts.
This guide is specifically about the internals of and "hacking" the Ruby MRI -- it's not about hacking Ruby in general.

Unless there is something specific about the MRI implementation and class variables?
> Any other language I've used

Have you tried Lisp? I've always found that to be a really friendly environment when it comes to working out why something doesn't work. :)
Firefox OS: Mozilla's Faustian Pact with Mobile Carriers
!!!

That's the first time I noticed that mtl was a DI library. Transformer classes are just such a nice concept in and of themselves that I never found value in mapping the concept back to something like DI. I'm definitely using that going forward.
Top 47 Google Chrome productivity extensions by rating
Are you a terrorist?
I'm kind of the same. I still use OSX on my 2007 MBP for portable, and I'm using Awesome WM with Ubuntu on my desktop. What other kind of tiling WMs exist and/or what do you use?

I still switch to Windows occasionally for gaming (although I try to limit my gaming habit). Another reason for using Windows for me would be screen capture software (Webcammax [best], Manycam, more...) which is completely absent from Linux (hint hint, elementary. I think this could be revolutionary).
Most of the bells and whistles aren't required for the product to be successful.

Also this is version one.

You're just bullying the new kid. One day he might grow up to kick your ass.
Eternal piece
You want your economy to shrink? Illegal immigration is all that has kept the US economy growing since the 1970s, and probably the UK economy too.
Haskell doesn't need to provide a nice environment for working out why something didn't work—the compiler tends to just tell you precisely why your program isn't working. It's a bit cryptic to learn its language to start, but I seriously executed a 10 module refactoring yesterday by just going in, changing the core code, and then letting the compiler spit out a categorical list of each place that broke and the exact fix needed.

Edit: that said, it still has one. GHCi is a nice Repl.
Netrenderer shows that IE9 hangs after loading this page... IE10 however seems to work fine.
> [...] when they post everything on Facebook and use Google/Apple/Microsoft?

I can only speak for myself, but my only sin is to still have an iPhone (soon to be replaced by an Ubuntu phone).

Apart from this, I have left all of the NSA partner companies' products/services in favor of open-source products (or else nothing). It's really not that difficult, much more of psychological "hurdle".

For those who missed it: https://prism-break.org/ is a good start.
Well, there is little to demo before the UI is ready, and that is what we're doing the Kickstarter for :-)

A little bit more in this video: https://vimeo.com/cbase/noflo

(also, see http://bergie.iki.fi/blog/noflo-two-years/)
Many people are introverted and do just fine in all kinds of jobs. "Introvert" is merely an orientation of personality that a large fraction (~50%) of the population has. Most likely the interviewer said you were "too introverted" as a polite way to say that something _else_ like demeanor or communication skill was lacking.

I don't know what your situation is, but you probably won't have success trying to find a job that fits your personality like a glove. There are too many factors and anyway the environment could change instantly the minute another new hire walks in.
What's stopping someone making a 'Python linker' that packages all the dependencies a Python program needs into a single file? Wouldn't that solve the dependency problem just as well? Is it simply that someone has done this for Go, but not for Python? That seems like a hell of a big switch to make just for the sake of one tool.
This game, and Steam, actually work perfectly in Wine. Go nuts!
I agree that may be the case in general, but the Leverhulme trust explicitly doesn't fund research whose purpose is commercialisation (http://www.leverhulme.ac.uk/funding/RPG/RPG.cfm).

Your second and third points are very good ones; it all depends on the implementation. I join you in hoping for a licensing strategy that maximises the social benefit of the technology.
Yeah, or he could, you know, study some more science.
I think it's a genuine weakness of static types that they inhibit prototyping when you first begin. HM type systems tend to be liberal and powerful enough that once you learn them well they're easier to prototype in—but that comes with time.

In particular, type-driven-development is wonderful. You can write light, compiler-checked specifications of code you haven't bothered to write yet and see if your logic all typechecks even without implementation. I can run through lots of ideas that way very quickly since the only thing I have to produce is the high-level type skeleton of my program.

Then I just go through and implement it all.

It's a lot like test driven development except that your executable tests are much more lightweight and carry a strong sense of the logic of your program. If your tests don't hang together, you'll find out eventually. If your types don't hang together, your compiler tells you immediately.
Excellent video - Introduction to encryption and HUGE numbers
The writeup is pretty good, but I read an much older writeup which diverged in some ways:

1) The assumptions from the article I read long ago were you'd ideally have a topical UV sunscreen that magically gradually "infected" the skin, which wipes out both the UV problem and the application problem, and it would be cheap enough to distribute to war refugees, starving famine farmers, hurricane areas, that kind of thing. Temporary emergency rather than lifetime green glow. So depending on your math, laying around in the sun would only generate a couple apples worth of energy for a person. Not impressive for a hungry dude in Wisconsin in 2013, but a handful of apples is actually a pretty good day for someone in (insert every war torn drought famine area throughout the ages)

2) The article I read a long time ago was of a vintage where the jokes would revolve around Federation Starship Captain Kirk's paradise would be nude beach of skinny green skinned Orion women rather than Bruce Banner jokes.

3) There would be interesting sociological issues where if this was solely applied to poor people, their verdant green skin would be a nearly 100% effective way to discriminate for socioeconomic class based on skin color.
Sea life relocating fast in response to climate change
Wait, why did they offer you options instead of a raise? I just want to hear why that reason tempered your enthusiasm. (I don't get excited about options since I have to buy them, but they can be more incentivizing, at least for me, than salary in the rare case that they are given on fair terms.)
City of London calls halt to smartphone tracking bins
You can also set the dwrite library to Disabled in winecfg.
I see you've ordered it in the order of exponentially increasing difficulty.
If you prefer portaits: use columns instead of rows and scroll horizontally instead of vertically.

If you want to avoid the bias you have to try something else: e.g. reorder the images, overlap them, convert to square format…
>I wonder how many Americans know about the scheme to collect at airports the fingerprints of visitors to the US?

I wonder how many Americans know how subjective and error-prone that fingerprint analysis and other commonly used forensic techniques are?

" With few established scientific standards, no central oversight, and poor regulation of examiners, forensics in the U.S. is in a state of crisis. "

http://www.pbs.org/wgbh/nova/tech/forensics-on-trial.html
If we're musing on who might be "the most creative person working along those lines today", Paolo Pedercini merits a shout.
I'll just take the wise approach here of "wait and see". Way too much hype going on.
How would that help with illegal immigration?
Illegal immigrants typically arrive legally and are said to contribute a great deal to the economy (perhaps since they can't depend on support).
Maybe the fact that Instagram was aquired by FB?
You may want to check your computer for viruses/trojans, disable toolbars.
Yeah, browser must be assuming everything is body since there is no proper html, head, or body elements. This makes title an unknown tag since it is only defined in the head. Standard for unknown tags is to show the content. Thus why you can put something to show up for someone with no JavaScript in script tags.
Sound should work in this game, and works fine for me. Please feel free to file a bug at winehq.org. If you CC me on the bug (aeikum@codeweavers.com), I'll give it faster attention :)
To Stay Afloat, Bookstores Turn to Web Donors
Ahem. Remember this?
- http://www.hongkiat.com/blog/android-evolution/
Nokia Map Project Sheds Light on Belarus’s Roads
Germany Is a Both a Partner to and a Target of NSA Surveillance
You're right saying that it's the proper behavior for such a semantic. But the problem is, @@ notation can make you forget you're not manipulating something that might be shared and re-assigning an ancestor class variable accidentally, messing up its behavior. And while it's common to check for method overrides, class variable overrides is not something that is checked very frequently.

It is the kind of bug that can be very long to figure out, since when you make this mistake, it's very likely because you forgot to think about this behavior.
George Saunders's Advice to Graduates
Until someone challenges the law (and wins in court), then MA will certainly attempt to collect the money.
This is why I find it incredibly creepy and insulting when founders of small companies try the 'true sense of ownership' or 'we hope you are as excited to work on this as we are' lines. If you want me to be as excited as you are, give me the same stake in the outcome of my work that you have in the outcome of yours.
Surveillance may be immoral, but so is warfare, imprisonment, the death penalty, taxation, graft, cronyism, corruption, or pretty much anything else to do with the domination of the state over the subservient individual.
The fact that it's not using standard JVM threads? His blog post describes how everything works: http://blog.paralleluniverse.co/post/49445260575/quasar-puls...
Off topic, but what are the pros of going this route instead of bare metal or virtual machines?

Don't get me wrong, it's cool to see some innovation in this space..

These made me a little bot wiser :)
http://en.wikipedia.org/wiki/LXC
http://en.wikipedia.org/wiki/Docker_%28Linux_container_engin...
Agreed. I've studied the impact of fertilizers on natural gas consumption, and the figures are stunning. If we were able to reduce fertilizer use by just 1%, we would save meaningful amounts of energy. If we could eliminate it entirely, it would be as big of a breakthrough as the green revolution.

It is a shame about the for-profit commercialization, but I think it's worth remembering that such things do sometimes result in faster implementation because the people working on it have more skin in the game. But either way, it will be public domain in 17 years worst case. I don't think that amount of time will make or break agriculture, and if you need 100% less fertilizer it's a pretty easy economic case.
The law has nothing to do with ethics. That is just a smoke-screen. The law is an instrument of control. Nothing more, nothing less.
Thanks for this post. It's a really cool example of using NoFlo to refactor a project. I'm actually about to start using Jekyll on a project, but since I'm more into Node I might go with the NoFlo implementation.
>[Flash]

As if.
So you are "worried" about a possible world-changing breakthrough because you'd have to admit one of your political opponents was right?

Reminds me of people who still seem disappointed that Reagan didn't start a nuclear war like they kept claiming he would.
Very intuitive, slick and fast UI!
Firefox OS is not a small subset of Android and iOS, in the most part there are equivalent API's for the functionality, in a few places there is more available on iOS / Android, in some places there is more available on Firefox OS (quite a lot in the case of iOS), anywhere were there is missing functionality it is no doubt in the works.

(disclaimer, I work on Firefox OS)
More than 100,000 want to go to Mars and not return, project says
Isin't that true for statically typed languageS?
Alternatively, hsenv is very good too (it's closer to Python's virtualenv)
I would love to see this announcement today on a livestream. The fanboy in me is thinking of this like the steve jobs keynotes from a few years back. "Oh and one more thing, it can bend space time"
If you're young enough, the compensation that you are receiving in terms of experience can be quite valuable.

It is measurable in difference between the salary you would have received if you took a job before you worked for X startup and the salary you would have received if you leave and get a job after having worked for X startup.
It's not limited, it's actually pushing to standardize APIs to more phone features than anyone else. Right now, some phone features (like the dialer) aren't available to web apps at all.
Simpleflake - Distributed ID generation for the lazy
I agree. Unwarranted suspicionless surveillance is unconstitutional. End of discussion. To even entertain arguments about efficacy is an implied admission that it might be acceptable if it caught bad guys. Even worse, if all they need to do to sell it, is to show a positive result; you can bet that they will bag themselves some "terrorists" in pretty short order.
Yes but that was a very specific set of circumstances, such a specific set of circumstances that they built a wall around half a city. How often does that happen? It's why it's an iconic site that people travel to look at still today.

It isn't a hallmark of totalitarianism people not be allowed to leave it, although North Koreans aren't.
A Little Sunlight on Cloud Computing
I believe there's a nice book called Foundations of Object Oriented Languages which dissects the problem in depth.
AOL CEO fires employee in conference call for taking photo
Exploring the social implications would make a pretty interesting sci-fi novel.
I thought hackers were supposed to be curious and not giving up after the smallest possible annoyance.
Thanks, I spent a lot of time speeding up the search feature.

I still find it a bit difficult to visually scan the results list, particularly at full length, but I'm hoping the various filtering options help with that.