skysight-inc/HackerNews huggingface dataset:
I tried to use nom for one of my projects, but I found that it had two major problems. First, the macro syntax was hard to use, hard to learn, and hard to debug. Sometimes you had to put an expression in parentheses, even if it seems that it should be unnecessary, so that the macros would be able to parse your code. I also found the macros hard to compose, which is ironic for a parser combinator library.

My other problem was with error handling. I wanted to have my own `Error` enum to represent errors in my program. Nom supports a custom error type, but I now had to write out type annotations in many places with the fish syntax (e.g. foo::<&[u8], Ast, Error>()) and they are quite long annotations. In addition, some of the macros would not work—or at least, I couldn't get them to work—with my custom error type, and I had to revert to using functions in a way that was absolutely not compositional.

In the end, since the format I was parsing was simple and regular (Erlang's External Term Format), I wrote a parser by hand and removed the dependency on nom. The result is as just as fast and produces meaningful error messages. It's actually less tedious, because I am using simple functions that have the syntax and semantics that I already know; maybe if I had a more complex format to parse I would sing a different tune, but for the moment I prefer to avoid using nom.
Americans Love Ordering Pizza on Facebook
Nazi's have a bit of a history, which you would do well to familiarize yourself with. See, as soon as people like that start talking about 'taking their country back' and feel that they now have their man in charge it is time to get really worried about where your country is headed. Lest you end up arguing the equivalent of 'I didn't know' a couple of years down the line, which to many 'moderate Germans' must have been quite a hard time.

A couple of crazy religious people we can deal with, they are nowhere near to overtaking any Western country. But the largest Western country just got taken over by the ultra-right, according to their own statements. Whether or not that is factually true remains to be seen but for now Bannon, Miller, Gorka and Trump seem to be pretty secure in their positions.
> Thanks for your downvote; it substantially aids your argument.

How do you know who downvoted you?
Understanding Diffraction Grating
I'd be curious if anyone else has had the same experience re: Data Science.

From what I've seen so far it seems like the super big tech companies pay _all the money_ for ML/DS people; outside of that the pickings seem to get slim quick.
Let's try it this way:

This is not about some general vague problem with "extremism" of which supposedly all sides are guilty. This is about the emergence of an Islamic terrorist movement which has already committed several attacks. When your first reaction to this is to to bring in some unspecified crimes of the US, then this calls into question whether you understand the seriousness of the situation. There is a real chance that real, actual radical Islamists kill many more people and perhaps even gain more political power. We can talk about this without engaging in some false equivalence.

"Trump has not denounced white supremacist terrorism" is the equivalent to "Obama has not denounced radical Islamic terrorism".

It's a media trick used to derail any conversation about whatever the president is trying to get done and make everybody talk about something incendiary for a while.

There is no useful policy anybody is going to put in place against fascism that hasn't already been there since World War II. Terrorism is already the most illegal of things. Do we really need to encourage Republicans to pass another law against terrorism? One Patriot Act is already too many.
TODO Comments Don't Work; Add Stories Instead
The amount of things to do on this project is incredible. When I embarked I thought we'd shoot 'making of' stuff all the way, but the reality is that even filming the film is hard enough work - to film the filming of the film would just be too much. I'd like to go back at the end and cover how we do some things - we really learned a lot. The other reason it's hard to do a 'making of' is that I actually don't know how to do this stuff, so we'd waste a lot of time explaining how to do it, only to discover a better way two weeks later.
I disagree. :) I have experience in low level programming and several MLs (and lots of misc other languages), so I don't think my opinions are shaped solely by familiarity.

There is a lot to like about Rust, but here are some things that I think make rust hard (and I think the difficulty of these features outweigh any productivity granted by the safety features).

First, the affine type system--I don't understand the use case for pushing ownership deeper into the stack by default, and it seems crazy that I have to know how all instances of a given type will be passed at definition time. It doesn't seem to facilitate safety, or at least it seems like the most flat-footed approach to preventing double-frees (never let two functions access the same memory, even those that can be trivially proven to run sequentially). I literally never want to move--I always want to shallow copy (or reference). Further, you can't call most pass-by-value functions from inside a pass by reference function because the former usually wants to destroy the value. Copy works around this in the simplest cases, but for the most part you end up with two categories of classes that can't be mixed. This is especially bad for open traits, where the trait definition has to decide how all implementations will pass and receive their arguments.

Beyond that, when defining a struct type that holds a reference, you have to know at definition time the lifetime of that reference, even it may vary from instance to instance (sometimes I want the struct to own the reference, but sometimes I don't). Maybe there's a way to express this in Rust, but it seems like the default is to assume that lifetimes are part of the type. This creates another dichotomy in types: those that own their data and references to data (String vs STR, vec vs slice, etc).

I like Rust. I love that it's an ML with a sane syntax, or a C-family language with decent functional features and sum types. I just can't justify these impediments. :(
More information from a professor of law at GW (cross-posted from the other submission about this topic):

> What makes this tricky, I think, is that Dreamhost is only involved in the initial search stage of a two-stage warrant. Computer warrants are ordinarily executed in two stages. First, the government gets access to all the electronic records. Next, the government searches through the records for the particularly described evidence. Courts have broadly allowed the government to follow this two-step procedure, in which they get all the stuff in the initial stage of electronic evidence warrants so that they can search it for the relevant evidence. Given that, Dreamhost’s objection is slightly off. As I read it, Dreamhost is essentially challenging the widely accepted two-stage warrant practice. Some federal magistrate judges in the “magistrate’s revolt” have made that argument, but they generally have been overruled at the district court level.

https://www.washingtonpost.com/news/volokh-conspiracy/wp/201...
Only the headless support is mainlined. The open source code is already working in the amd-staging branch: http://www.phoronix.com/scan.php?page=article&item=radeon-ve...
I moved from "everyone deserves to be heard out" to "this guy is a bully and a bad person in many other ways". It was clear when he made fun of a man's disability and just grew from there.

To be fair to the GOP, Trump basically did a hostile takeover with a plurality of the vote on the right against a very fractured field.

I'm not advocating for a pissing contest over who is more violent. I'm advocating for people to treat each other decently even if they disagree. I'm advocating for rational dialogue.

I think this isn't the moment to win points for the left. Partly because I think the case isn't strong, but also because I don't see it solving the real problem of divisive American politics. The left can't "win" enough to forever banish Trumps from power. It only causes escalation, at least so far.
For express.js have a look at https://www.npmjs.com/package/helmet
Always the snowflake right. Boo-hoo... its everyone else's fault one of our young racist fascists could not restrain his emotions and plowed in to a crowd of people. boo hoo.. poor us, us racists get so much abuse.. boo hoo.

The fact of the matter is someone died and many many got injured, because some young guy hopped up on fervent radical white nationalism (that you seem to subscribe to pathetically) decided to make a dumb decision that hes going to pay for, for the rest of his life.

Your excuses are pathetically weak (how fascist) and thus null and void. Go back to stormfront.
Discussed previously:

https://news.ycombinator.com/item?id=15011636
No, they are just attempting to forum slide.
We use photogrammetry for the block, head, dashboard and transmission. It's invaluable for these organic parts. Then retopologized.

BLENDER IS AWESOME.
Creative Artificial Intelligence for Computer Graphics
Yes.

The leftist thugs deserve criticism, and they should be prosecuted when they cause property damage or harm people.

But they weren't the problem at Charlottesville.

There, Nazis, the KKK and other White Supremacists marched to prove that their race was better than others.

That deserves to be condemned in itself. They also ended up killing someone in what appears to be a deliberate act.
Well, they support him.
Having used ANTLR recently I would tend to not only agree, but say most cases of disagreement are circle jerking instead of getting to a quick solution and shipping. I just updated our grammar 2 weeks ago. Effort? Update the *.g4 grammar file and run a build target in ANT. Done. Next problem. Performance wise it's parsing deeply nested SQL queries in sub millisecond time which meets our need. If someone requires better performance than that I'd be curious what they're doing.
What I found surprising about the video was that it made an engine seem, somehow, less complex and daunting. I'm sure that's a bit of an illusion created by the way the engine is taken apart (and the fact that it's not in a car and therefore you can rotate it as you need it, etc), but amazing work.
Your own error condition
I suppose one silver lining here is that groups with agendas that don't align with the administration will think harder about where to host their sites.

Dreamhost is trying to do the right thing, but hosting it outside the US would be a better idea.
> But surely no one is arguing "Nazis aren't bad" on HN?

Not so openly. Plenty of dog whistles, though.
Thanks for reading!

The idea behind this article is that somebody who asks the question is probably confused about a lot of the core concepts in Haskell. So I write the same code in 20 different ways so that they can use their understanding of earlier concepts to understand later ones. Which hopefully makes them less confused.

That's a different goal than selling people on Haskell, or giving them the best solution and moving on. There is definitely a learning curve before you can hack out code without thinking too much about it.
ASCE grades American infrastructure a D+
What does the typical circuit for a city street light pole look like, i.e., what voltage is it, what wire gauge, etc.?
C is a well-known exception to this. The grammar depends on typedef name resolution. `foo * bar` and `(foo)-1` parse as different things depending on whether `foo` is a typedef or a variable.
Yeah, with friends who are parents the designated driver of the two also usually is the one who has to take care of the kid (especially when it's a very young kid).

But even when I'm out in town non-drinkers aren't bullied into drinking. If it's a party and they're not drinking (especially if they're men and thus pregnancy is off the table) someone will likely push them on it because it's uncommon but no more than vegetarians or anyone else with dietary restrictions.

However in that case "I don't drink because I don't like being drunk" or "I don't drink because I don't take it well" is a perfectly acceptable answer. Then again, a lot of the people I'm talking about are goths so straight edge / clean living isn't too uncommon.
You could've cut filming time in half or doubled it if you had chosen a different engine.
but energy waves is also within the law of physics.. they just work.

My $5 coke can RC car works on the same idea as a tesla.
Galera Cluster for MySQL and MariaDB
Or just move to pasteurized hay, which is much more lenient
> customers MASSIVELY prefer paying with Paypal to Stripe

That's interesting. Do you have a theory about why that is?
Wow. That was superb.
It depends on the task, of course, but I generally think Haskell is a very productive language for getting simple things done. Let me explain why.

There is indeed a side of the language and culture focused on elegance and there's also a side focused on pragmatism. Elegance and pragmatism aren't mutually exclusive but generally we use it as a type-safe getting things done language.

Imho its strength is in the type system even if that means starting your project out entirely in the IO monad with heavy let binding style, you'll still benefit from the type system. You can then, over time, decouple things, test things, etc.

I hope you don't give up on it because in the realm of pragmatic, unexciting, just trying to do my job software, Haskell really shines. It's just hard to see sometimes because not many production users are talking about that kind of use, you're usually seeing the library author's view which is going to be very different.

[Edit] I also think Rust is very promising for occasions in which you need the low level performance. If I can though, I will use haskell because its type system does such an amazing job at protecting myself from me and six months ago me.
"Now, the story is that the overstock has to be got rid of somehow."
"Apple Watch sales are up 50%"

These two statements are not in opposition if lots of watches are selling at a deep discount. When I google "apple watch amazon" the top link is a used model, second is a discounted series 1.
The original example is just to try to find something where you need to modify an array. Sure, you can create identity matrices without modifying an array, but that's just changing the parameters of the problem. If you really do need to change an array, how do you do it in Haskell?

Your solution is the typical thing you do in Haskell. You might know how to perform an algorithm by modifying an array, but now you suddenly have your hands tied and you can't do that anymore. Now you have to come up with an alternative way.

It's like someone really wants to implement bubblesort in Haskell but instead the solution ends up being to implement quicksort because the bubbling is difficult or unusual in Haskell.
Being a smart guy != Being a good money manager. He likely has a lot of people overseeing his funds. Moving around billions of dollars takes a long time.
1P-LSD is currently legal and mass produced for cheap online. Much what we see is this.
Of course everyone is allowed to feel shame or self-censor. I don't think the OP was suggesting it shouldn't be allowed.

Personally I don't think that is a particularly good way to live though. The mind is our only refuge from the rest of society, and to attempt to censor your mind so it's more acceptable to society seems like a really sick thing to me.

To me it doesn't seem that OP is arguing against self-regulation or self-improvement in general, just self-regulation against conforming to society at large. That isn't to say one's own personal values aren't influenced by the values of society.
Holy crap I hated that flavor when it was in.

(former BR scooper. It got _everywhere_)
>But if you don't intend to leave those unemployed people without food and shelter, I don't see anything wrong with still pursuing that goal.

Taking away peoples' roles and turning them into welfare recipients is not universally seen as a good thing. Many people get fulfillment from the work they do because feel like they contribute to society. Taking away their job and providing them food and shelter does not solve that problem.
For someone like me who spent hours watching engine videos on youtube, this was an instant buy. Well done!
I suspect that you're getting downvoted for saying something that may not have a lot of credibility. Thiel doesn't carry a lot of responsibility for putting Trump into office. To say so overestimates the pull he, an openly gay man, had with Trump's base. I bet most of Trump's base don't even know who Thiel is. Thiel was simply one of the only Silicon Valley guys to recognize that the prosperity experienced by major American urban centers was not being experienced by the rest of America.
> And in the flashback scene that showed him walking, I marveled at how they were able to fit him with artificial legs that let him walk so naturally!

They filmed that scene first then chopped off his legs and filmed the bits that came "before".
The First Amendment isn't a subsidy for speech. It just says you can say the most offensive thing you can cook up but no one owes you their ears, papers, or servers to furnish an audience.
I kind of wish Aaronson didn't do a followup and explicitly tie his Kolmogrov essay to the Demure controversy. I liked it better when he was self-referentially taking the Kolmogrov option by virtue of his very writing about the Kolmogrov option. He said it all so well without saying it. I bet pedestrian SJWs might have even quoted his original essay thinking it was in support of their cause.
.. agree with the overall sentiment.

As a nit, postgres has had tablespace style partitioning for some time, but these feature adds much more control. Not sure if that was your meaning or not.
This looked like a pretty idiotic advise for the most part.
Wonderful!

How did you make those flying parts? Photoshopping out the holders?
Once I got about halfway into this review, talking about the "whatever star" and all the different ways to declare hashes, it seems like this language is right on track to do the same.
UK Law Proposal to Criminalize Re-Identification of Anonymized User Data
The responses to your comment prove his point not yours. There is literal polarisation within this thread.
It's still an interesting and useful concept even if it's also used as an insult. (Much like you might refer to a colleague's tight new shirt and gold chain as a "mating display" without disparaging biologists' use of the term.)
No, they did tell then stopped on 5th product.

LIN gives this information (product price) for first few questions, then if you ask about 5th price they say: 403, no more for you. WHILE IF at the same moment, different person (or you in proxy-ip-disguise) comes and asks for 5th product price, LIN happily (and publicly) gives this information.

And if the person comes wearing googlebot tshirt, LIN drops to knees and give a ..... full-db-dump-job ;)
Bing/Baidu thsirts also fit. Source: www.linkedin.com/robots.txt

HiQ simply says: that's unfair you can't decide who is good and whois bad. Effectively LIN bans any google competitor (documented case).
The smell, the taste, the ceremony of habit. I enjoy these more than the caffeine. I would probably drink more, if the caffeine effect were less.
Front-end Microservices at HelloFresh
a fair point, but I think it would at least be worth mentioning that if you're trying to modify a variable in Haskell you need to step back and figure out if what you're doing makes sense.
Fair enough. But calling the current president a Nazi is not moderate. Israel would not treat him the way they do if he was. A post-WW2 Nazi or similar party is impossible and unsustainable especially in the US and most EU countries. Erdogan is the closest leader in the world at this point.
> When a muslim plows into a crowd it's a lone wolf and we should jump to conclusions. But now that it was a white guy the second it happened the media reached the consensus that it was an act of terrorism. This kind of double standard is what fuels white supremacists.

The "lone wolf" moniker has something to do with the proximity to and coordination with other wolves. When a white supremacist commits homicide at a white supremacist rally the label would not seem to apply.
To provide a little bit more context, here is detailed description of this bug [0].
Curiously, they suggest that problem could be avoided by changing the check for EOF to ">=".
This is not true at all in case of C, at least as far as language semantics is concerned.
When pointer goes two past the end of array you are already in undefined behaviour land.

[0] https://blog.cloudflare.com/incident-report-on-memory-leak-c...
> The other reason it's hard to do a 'making of' is that I actually don't know how to do this stuff, so we'd waste a lot of time explaining how to do it, only to discover a better way two weeks later.

That's exactly why a making of would be interesting. Here's an idea: shoot all that stuff anyway, with a single fisheye camera so that if you ever decide to do a making of you at least have some raw material to work with. Documenting this work that you are doing would have lasting value.
It's not API-first and cloud/SaaS but https://frontapp.com/ has an API https://dev.frontapp.com/ to manage all contacts.
Why blockchain doesn't solve the actual problem: you literally need human inspectors who know the scams. https://twitter.com/a_ferron/status/896795477844389888

This is just a bad "but with blockchain!!" puff piece. You would probably believe how many of these I read ... It's "here's a problem!" (problem may or may not exist) "Blockchain will solve it!!" (it won't even if it does exist)

Note that nothing about the actual problem is automatable - it's not about tagging the items, it's about the quality for humans of the tagged items. The blockchain approach relies on the assumption that the current crooks will suddenly tell the truth when they're entering data into the system, rather than e.g. lying, or bribing inspectors, like they do now.

The only thing that actually works is to (a) give a hoot (an important prerequisite) (b) directly inspect your suppliers.

e.g. Provenance Inc. is trying to sell this stuff in the UK, but is getting very little traction, because putting it on a blockchain doesn't solve any of the actual problem, and their prospective customers (the people in the middle and end of the supply chains) are going "what on earth, this doesn't solve any problem we have."

I wrote a book chapter on this ...
Some Companies Want You to Take a Mental-Health Day
Hi lee, if you may have seen on the Internet, the Stormfront website, and not to mention other places you may have frequented.

He indeed ticked the box of "speaking up". He sadly did not specifically point out the KKK/Alt-right/facists and how there was an attempt to murder a crowd of people.
(His daughter did though point out the KKK/White supremacist part though in a tweet so kudos to her)

The fascists were quite pleased he did not speak out specifically. Maybe you were not aware of this.
I am not sure if I recall correctly but wasn’t there a reason where gates wouldn’t donate all of his wealth at once and needed to do it in stages ?

Also, maybe they can’t utilize all that cash at once. Therefore it would be best to be illiquid until you need the liquidity.
> completely differently

Not completely. Mutating state and I/O are done in a more imperative style via monads.

> the whole point

Depends on who you are I guess. The big wins for me in Haskell are the type system and purity by default. Of course I absolutely love the composability that functional programming offers, but there are other functional programming languages. Haskell I like for those reasons in particular. Disclaimer: I'm still a newbie when it comes to fp and Haskell.