skysight-inc/HackerNews huggingface dataset:
> Why compose classes, abstract base classes, etc. when you can compose simple functions

For some kind of projects (video games, applied math, anything else that is sufficiently performance or latency sensitive), data structures are just as important as code. And they need to be composed, too.

For example, in C++ I can put small structures into couple megabyte-sized vectors, because memory controllers love sequential RAM access. Then I put these vectors in another vector, because address space might be fragmented and memory manager might not be able to give me continuous 1GB buffer, also to save CPU time + RAM bandwidth when growing my dataset to gigabytes. Then I wrap these vectors into another container that creates and maintains an index over the whole dataset using a hash map, because besides sequential access, other times I want to lookup my values by some key, and I want the lookups to run fast. And so on.

FP paradigm is just fine for composing functions. AFAIK, FP offers little for composing data structures. And those sophisticated specialized data structures are often the key for writing high-performance code.
Given the amount of media attention it garnered in the last 48 hours it's very likely the website is under significant load.
http://www.braveclojure.com/

For me at least, this site made programming fun again! It's colorfully written and mostly easy to follow, though some of the concepts are a bit mind blowing if you are only familiar with OOP like I was (passing a collection of functions to map really made me stop and think). Oh and it's a pretty neat way to learn emacs if you haven't already.
Right but now imagine someone with the same unit economics but that has completely wiped away the driver cost side. That's a much cheaper service right there, no?
Netflix Bolt: AWS Instance Diagnostic and Remediation Platform
What's interesting it it is heavy use of FRP: both 'reactive-banana' and 'wires' libraries.
I also disagree.

There is nothing even sorta objectionable about Google software on Google servers requesting you use a Google browser to access them because it uses Google-developed browser features that aren't even part of web standards, and wouldn't be for years even if that was the goal.

The alternative would be a moral stance that "no non-RFC stuff on port 80", and that makes zero sense to me. What, they're not allowed to innovate unless they run through the bureaucracy first?

I'd love it if you clarified what you're asking for here, because as stated, it seems alien to me.
I'd say dataflow is older, but yes, it's great. And it also tends to be better implemented on FP languages (what is in them that attracts those concepts?).

Now that you talked about constraints, there's constrained search that never got mainstream but is also great. This one does not mix well with other glues. Now I'm wondering what kind of polymorphism could make FP/imperative mix well with it.
http://slatestarcodex.com/2016/09/07/reverse-voxsplaining-br...
In fact, it may not be upsetting, but merely another in a long line of brief experiences that inform the audience — male and female — that women have no place in technical documentation, technical stories, programming, technology, prosperity, agency, or power.

These are the minute bricks of social construction, and we can either choose to ignore them (and replicate existing oppressive social structures) or fix them (and make conscious choices about the society we construct).

If, indeed, you are opposed to women programming, I can think of no better long-term solution than persistently emphasizing the maleness of technology or exclusively using male pronouns.

To come out and blankly state that "women should not be in programming" would be met with the Backfire Effect, so subtlety is necessary, here. Keep up the good work.
A slightly different debate, but as a digital nomad (who also happens to be a programmer) I can totally relate.

Most of the meetings/conferences I went to ended with too much boozing and laughing about silly stuff and not nearly enough networking/exchanging ideas/helping each other to my liking. This was funny when I was in my late 20s, but I have different goals now.

Particularly, about the 'helping each other' part - I have the feeling that everyone is pushing their own agenda most of the time, and there is very little sincere interest in works of others - let alone helping/advising each other. More like 'let's get the compulsory presentation part down, do some quick networking... done? Let's get drunk'.

Maybe I'm visiting the wrong kind of meetings though. I'm guessing there's also a big difference between meetups in the US (never been to one, hence guessing) and in Europe (or elsewhere).
Pretty sure this is a submarine marketing piece, but I'm not entirely sure who would be paying for it. Is there a cartel of companies that sell barbecue food in America???
> If a company hires software engineers, there’s a good chance that critical parts of their business exist in the form of computer code. Therefore the growth of that business is closely linked to the maintainability of that code. Businesses adapt and grow constantly, they perpetually change. New features and new offerings to customers are added every day. Existing features are revisited, strategies are revised, whole business models are pivoted.

There are advantages to functional programs, but I wouldn't say they're any easier to change than imperative programs. In fact, it's often more work to change a program where all functions depend purely on their arguments. Instead of adding a single imperative state update, you have to add a new argument to a whole group of functions and thread state through them appropriately.

Patterns like monads and monad transformers can make this easier, but massive stacks of monad transformers have their own issues (http://blog.ezyang.com/2013/09/if-youre-using-lift-youre-doi...).

(And besides, most functional programming languages apart from Haskell support mutable state (e.g. ML ref cells, Scheme set!) -- pure functions aren't fundamental to the functional paradigm.)
drove recently from LA to SF via the dust bowl. it looks like a foreign country.
This is such an oblique position for legitimately grassroots activism to take. I mean, it's not like people are dropping dead en masse in Canada, out of all places, from taking supposedly sketchy, industrially-produced medication. Meanwhile, importing copycat generics from India is fine [1] (taken from an article with an obvious slant against Walmart, one major importer of such medications).

On the regulatory front, the difference is that India lets the US FDA work there and inspect plants that export to the US [2], while Canada doesn't, and although the US and Canada have been slowly easing into formally trusting the other's regulatory frameworks [3] by working up from food safety [4], they are not quite there on the medical front. How much of this is legitimately grounded in science, logistics, diplomacy, and protectionism are up for debate.

This is good investigative journalism. It certainly raises some additional questions that would have been difficult for an average person to learn on their own -- including questions about this nonprofit, about whether both parties' past attempts to allow Canadian drug imports have been comparable or different, about whether an organic movement concerned about drug safety exists at all, about the author's motivations for writing this piece; all good questions worthy of more research and conversation.

[1] http://www.huffingtonpost.com/al-norman/india-wal-marts-drug...
[2] https://www.fda.gov/forconsumers/consumerupdates/ucm333944.h...
[3] http://trade.gov/RCC/
[4] https://www.fda.gov/food/newsevents/constituentupdates/ucm49...
No.

The site has probably configured themselves as "I'm under attack" as that will challenge almost everyone and ease load from their servers of bots (and those hitting F5 from the outset).

They're clearly on fire whilst they scale up, and I would expect that once they've got past the first week they'll ease up on the Cloudflare security level and challenges.
> The wholesale cost in the developing world is between 0.01 and 0.06 USD per dose. In the United States, however, it is very expensive as of 2015 at about 201 USD per dose.

Source: https://en.wikipedia.org/wiki/Albendazole
The Great Book of BASE - BASE Jumping, written by Matt Gerdes
One AI extracts faces of the suspect from camera footage

Another AI sifts through meta data to collect evidence about suspect

A third AI assists in building the case for the prosector, digging through hundreds of years of documented precedence to establish positions.

Now a fourth AI is assisting in sentencing... and all of a sudden, heels are getting dug in on some "How could this have happened!? We must stop it!" nonsense.

The AI justice cow left the barn a long time ago, folks.

EDIT: I authorize anyone to engage in creative derivations of "AI Justice Cow" free of charge, license, restraint, and responsibility.
Does this browser version of Google Earth also support the 3D mice that 3Dconnexion produces? I prefer using them in Google Earth for flying/zooming/rotating so much over using a regular mouse.
This veers into the realm of personal attacks—please don't do this here.

We detached this flagged subthread from https://news.ycombinator.com/item?id=14135706.
I'd rather live in a world where 'poaching' agreements between employers didn't exist and factory jobs were better but we had to use a phone with buttons. I think if we had to choose, the corrupt baby boomer CEO stuff Jobs represented would be eliminated even if that meant a slightly less optimal computing experience. I won't even go into how Apple is less a computer company than a media consumption machine company, but that's an argument for another day.

I also will argue that Jobs gets credited for a non-sensical 'he's the liberal arts genius who showed us usability' argument, when in reality usability is an ancient field and, arguably, the most usable desktop was unsexy Microsoft's NT desktop which is still very usable and refined today. You can put a random grandparent in front of an NT4 machine today and have then be productive near instantly. Meanwhile, the very same grandparent is overwhelmed with apps, pop-ups, swipes, privacy agreements, notifications, etc on the more 'usable' mobile device.

Jobs deserves credit for his achievements, but if you let me trade Jobs for a better world for the actual working stiffs who bust their ass 50-70 hours a week in this industry, absolutely, I would make that trade in a heartbeat. I don't care about the cost to quarterly projections or other CEO chest-thumping. Jobs, regardless of his intentions, represents the classic heartless CEO in many respects and made almost no effort to fix these things. I hope today's SV leaders have more progressive views about work/life balance. I'd love to bury the baby boomer workaholic nonsense and factories full of suicidal people with Jobs. I hope society can progress past the 'worship our CEOs' stage.
You mean people are more likely to die in census years? I mean, it could be true, but I'm not willing to bet on it.

[edit] So I went and put "why is death rate higher in census years?" into the google search bar, and the first result is "Causes of Death - Census". I didn't actually click on the link to find out, but that title certainly sounds like the census kills people. So maybe you're right. :)
I never thought to look but you're totally right. The quality of the 3D renderings is way better than Google's.
Ask HN: Readers of HN what is your biggest complaint about goodreads?
> These days, when most people talk about AI they’re talking about machine learning. There’s not any of that in SF2.

Actually, AI for games is pretty much never equivalent to AI for non-games. The end goal is different - games want to provide a non-optimal set of instructions, so that it's challenging but not impossible to win. The goals are entirely different.

If you're making a game, this is probably at least a useful example to look at, even if I don't agree with some of the decisions they made (uninterruptible moves, for instance)
Pure speculation, but I wonder whether they're doing something clever with their image data to generate the elevation data?

Id guess the details of the process are tricky, but it's possible then you only need to concentrate on getting high quality images vs. getting high quality images and high quality elevation data at the same time.
Sign Language and Social Justice in Linguistics
If the offenders have better outcomes. Time spent in jail. Re-arrest rate after release. Job performance after release, etc.
I mean the page performance is poor after everything has loaded which shouldn't be affected by the amount of traffic.
I like meetups as well. The Bay Area meetups covering data management tend to be pretty worthwhile--both the content as well as the opportunity to geek out with fellow nerds. Open source projects in general have a good sharing ethos that works well with the meetup format.

Plus it's pretty important to keep up contacts just in things go sideways at your current gig.
That is my #1 wish for us for the next 20 years.
Wikipedia on I2C: https://en.wikipedia.org/wiki/I%C2%B2C
I'm not sure if my English is good enough, but that's not what I said.

I said that Brexit and Trump removed the taboo about fascism and fascists are raising their voices.

Why would you think I called Brexit, Tories or Trump voters fascists? It would be over-simplifying demographics and politics.
It's funny that it says 'four missions', but I only count 2 in the quote of the constitution... wow, it's still beta indeed.
If I were interested enough to create a Twitter account, I would start by following a bunch of people I'm interested in, RSS style. I most likely wouldn't post very much, if at all.

How many potential new users fit this pattern, are caught by the 'bot' filter, and are shut out of the platform, I wonder?
Awesome photos. I'll be visiting the US and be driving from SF to Las Vegas this weekend. Would you recommend making the detour to Carrizo to see the bloom, or am I too late to the party?
Show HN: Saka Key – a configurable, extensible, keybinding chrome extension
> This medicine is out of patent; the R&D costs have been recovered. There's no reason for it to cost as much as is does in the US, apart from greed.

So apparently this medicine is used for treating parasitic worm infections, which I imagine is a vanishingly small market in the United States. That means that the costs of tooling up to produce the drug (and producing it to the standards of safety and purity demanded of any medicine produced in the U.S.) must be amortized over a tiny population of customers.

To make a comparison: a commercial Common Lisp IDE runs nearly $1,000 for a hobbyist edition, while you can get professional versions Clion or Jetbrains for $100-400. But there's no patent or other protections limiting competition in the development tools industry. It's simply the economics of making a product that caters to a tiny niche of potential customers.
I'm intrigued by the way they broke down the top-level categories for Federal spending: they used Constitutional phrases, which I haven't seen used this way before (at least not exact quotes, which look so antiquated): https://usafacts.org/the-big-picture?return_to=%2Fgovernment...

I know a lot of people would argue (reasonably) that all government spending should be clearly categorizable under such things, but not that they are.

It reminds me of the "ends policy monitoring" used by a non-profit I'm involved in. The staff pulls out each clause in our end goal ("Ends") policy and breaks down our activities based on those categories.

I'm wondering if this is something Ballmer got from corporate governance. It was new to me when we first started doing it. At any rate, I like it.
hahahaha I really thought to mention that Sally could wait!
To be clear I'm claiming that the individual sports themselves are socially constructed, not that "betterness" is. Women's bodies have advantages in flexibility and stamina. Had women been socially dominant for centuries I would expect us to have come up with sports which demonstrate their strengths.
Well sometimes organizers do put a price on the event to minimize no-shows and fund pizza or event space so they aren't beholding to a sponsor.

And I sometimes pay for those meetups. But I'm usually price-sensitive enough and there's enough other meetups doing similar things for free that I don't pay.

I want to say that the meetups that do charge money are consistently higher value, but that's not the case. You just have to test them for yourself.
Seconding this. On a higher level also, what really helped things click for me was his "Domain Driven Design" slides...

Slides: https://speakerdeck.com/swlaschin/domain-driven-design-with-...

Video of talk: https://vimeo.com/97507575
>Functional programming has nothing to do with declarative/imperative programming styles.

nothing!?

>The "functional" part determines the architecture by which the code is structured opposed to the style (vanity) by which the structure comes together.

No idea what this means.
I don't get the constant "we're screwed" rhetoric. Why do you think this?
That sounds very handy, will check that out. Great that folks at MongoDB seem to listen what customers need.
I think you've got to try different meetups and find ones that work for you, especially if you are more interested in learning things than in networking. The few Ruby meetups I've been to, for instance, were well attended, but they seemed more industry/newcomer focussed and talks were not particularly engaging for me. In contrast, the Boston Haskell and Vim meetups were super vibrant and full of energy and interesting talks. One presentation by John Wiegley changed my whole development workflow. In Minneapolis I'm struggling a bit more to find vibrant programmer meetups, it seems to be a much more quiet, conservative tech scene here.
We've banned this account and detached this subthread from https://news.ycombinator.com/item?id=14135290.
i would try creating a minimum test case that reproduces the problem. you are probably not going to be able to get much help with your issue if others aren't able to reproduce it.

to me it doesn't look like a memory corruption issue because you are seeing zero data as the corruption instead of trash data. but it could just be that whatever is corrupting the data is writing zeros :/

i'm not familiar with android but if its possible to turn on any runtime memory protections i would try that. if something is doing use-after-free or overflowing a buffer it might be able to catch where it is happening.

https://source.android.com/devices/tech/debug/asan
Will this be possible to purchase in the US?
What's stopping generics from being "nearly free" in the U.S.? Why do we need to import them from India?
Privacy, freedom, protection from the tyranny of the majority, equality, fraternity, respect for minorities, socialised and universal healthcare, feminism, ecologism (firefox says this is not a word?)...

Those are the ones I care about and I think are at danger.
Marathons aren't a stamina sport?
Apple must have deals with some vendors of very detailed 3D imagery for specific areas – in the Virgin Islands e.g. you can zoom in to see that individual vehicles and boats are bump-mapped and draped.
I get the joke, but in all seriousness we probably need both types of people in the world. Some who take immediate action and others who prepare the way for more informed action.
Vectors haven't been used that much this century.

What you describe is not a leak. A leak would be when you loose all references to your Vector and memory is not reclaimed by the GC.
Through collective bargaining Insurance companies tells big pharma what they will pay for a particuliar drug. They tell all aspects of medicine what they will pay.

I once had a blood test, and a newer antibiotic (forget the name). I got a $1200 bill in the mail.

I knew I had good insurance, so I called my Insurance company. They told me they paid the bill. It was $90 for the blood work, and $20 for the antibiotic. The kind lady told me how the system works.

I paid 10% of that--$11.00

I thought about all the people who don't have collective bargaining rights, and think about that bill every time this is brought up.

So insurance doesn't just pay. They pay as little as they can get away with, and make those huge profits.

It's the guy who has lousy insurance, high deductibles, and no insurance; that gets reamed.

I find it all sickening.
Show HN: SQL language for Screen Scraping
Wife: These kids in rural Alabama could really use some food

Steve: Did you know school teachers are one of the largest groups of federal employees?
Plenty of people use functional languages in the wild, though sometimes, like Jane Street, they don't do it for the same reasons that are normally stated as being the reasons functional programming is better.

This is a good video, from Jane Street, on why they use OCaml:

https://www.youtube.com/watch?v=kZ1P8cHN3pY&t=109s
The problem with that is that criminality has it's own positive feedback loop.

More crime in an area -> more cops -> more convictions for little stuff -> more big sentences handed out -> more lives ruined -> more crime -> goto start.
A Look at Docker for Mac 17.04 Performance
How Google eats a business whole
The new Mollie
Returning to alma mater and being an expert in a niche is an extreme exception, on the orders of magnitude down level.
As policy, I don't think anything like immigration status should be a consideration when deciding on charges. There's a reason our ideal of justice is depicted as blind. Perhaps it could be considered as mitigating/aggravating circumstance at sentencing.
Kansas City BBQ is the most overrated food in America.
Devil's advocate, but the system in the article sounds similar to an insurance company calculating risk.

Perhaps the real objection is the lack of transparency behind the calculations?
can you provide empirical evidence to support your theory?
I can't access USAfacts right now but the census shouldn't matter for this if it's just crude deaths since those are reported through a different system and are a precise count. I can't think of any reason why there would be a 10 year spike in the data, it's definitely an error of some kind.
The kids had decades to disassociate. They chose the money. Let them rot.
USA Fact: We're #1

?
That's a really neat idea. Good job!
And of course, USAFacts' interpretation of the responsibilities of government are right out of the liberal progressive manifesto... but I think that is the way the data need to be reported, because there is no Constitutional anchor-point for 2/3rds of what the US Federal Gov't actually does.
The vultures that trade in small-volume generics do innovation now? Turing and Valeant do R&D?!

The bigger issue is the financing model that causes innovation to happen in all the wrong fields, but that is a different question and very complex.
That's... not what this article is about.