skysight-inc/HackerNews huggingface dataset:
1) When I programmed in C++ I was using Vim and the YouCompleteMe plugin for IDE-like features. Now I use Vim + CTags. For CTags I use the following which uses the Zig standard library to parse Zig code: https://github.com/isaachier/ztags. In the future there will be support for the Language Server Protocol.

2) I git pull every few days to run on the latest compiler. The bugs that I've hit have been minor inconveniences, nothing serious. I think Andrew would agree with you though that Zig is probably too immature for a serious project at this point. The transition to the self-hosted compiler has yet to take place, that compiler is in its infancy.

3) I'm afraid that my verbal inability will never do Zig justice. The built in slices and optionals are really nice. Pointers are non-null by default (but can be undefined). Stack traces on crashes. Much better casting in my opinion (once I got used to it). Error handling that's similar to Herb's C++ deterministic exception proposal. No headers. Not having to decide between fast compile times and comfortable printing. Defer statements instead of destructors or nothing work really well in my opinion. Built in testing (maybe not something you use much in gamedev). +% means add with overflow, + means overflow is undefined. Everything feels nicer, that's as good as I can put it.

edit: You can Ctrl+F "pub fn" to browse all public functions. Great when browsing Github. It's easy to grep for the definition of anything. Overflow and other undefined behavior is detected in debug mode, this saves me so much time. Guaranteed inline is nice. No more make/cmake and manually listing which files to compile.
It wasn't the use of the term fanboying I objected to, but rather the endorsement of said behavior.
Ha, he probably wanted FB’s attention and got it. Not sure about his hacking skills but great marketing tactic :) many hackers have claimed that fb doesn’t reply or follow through on their bug findings let alone pay for it.
Elections were originally on Tuesdays because "Tuesday was established as election day because it did not interfere with the Biblical Sabbath or with market day, which was on Wednesday in many towns."

Why hasn't it changed? Because to change it the party in power would have to vote to massively change voting block, almost certainly swinging several elections. Since the party is in power, they have no interest in this.

Additionally, the people who want it changed are probably the people who can't easily vote on Tuesday. These people already don't vote, so they can't influence their politicians to support changing the day.
> ... understanding is that the workers are limited to 128MB of ram and that they may be 'restarted' at any time. Datasets for accurate browser detection would be really tight in fitting into that amount of RA

I think you might be overestimating that. Bundling the aforementioned https://github.com/faisalman/ua-parser-js wouldn't be significant - maybe hundreds of KB as a script (distinct from memory!) - at most.
If you think it's all hot air, you are not paying close enough attention, or you live in a bubble. Frankly, the political ideas which are popular on Hacker News are laughably untenable, but to HNers seem highly plausible.
Waiting a few months is good. It's a reasonable strategy to wait for x.y.1 but Rails 5.2.0 was so stable that 5.2.1 took ~6 months to appear.
If we're going to have a national ID card, then it needs to be:

1) Free. Period. Otherwise you're going to disenfranchise poor people who can't afford even $50 to get an ID.

2) Universally accessible. If we're going to require it, then we need to make sure everyone has one, from a little old lady living 100 miles from civilization in Montana, to the homeless living in camps near San Jose.
Throwaway account since I'm an old-school news editor but why is it that curated news companies like hvper.com or Techmeme haven't received the same amount of backing? I see more value in targeted + quality than random mishmash of AI-collected headlines.
Per Google Translate, the second to last paragraph reads:

>If someone has just been logged out,

>it’s just being logged out.

>Don’t worry.
Like worthless Mexican clinics, people grasp at straws as cancer inexorably kills, no matter what modern medicine can offer.
The strange thing is evolution has marked H2O2 as a dangerous substance in the body that crops up as a byproduct and the body protects itself with hydrogen peroxidase - which breaks down H2O2 instantly anywhere in the body - that is why H2O2 fizzes as the extra oxygen breaks away. https://en.wikipedia.org/wiki/Peroxidase
Interesting. I'll hit up some contacts and send them this, this is a blatant disregard of GDPR.
1) Large, mostly homogeneous nation.
2) Government bans foreign internet/social media services, protecting local companies from foreign competition.
He was super nice too. Would be serving food with a smile, greeting everyone. That was after he was a millionaire too.
I live in a tiny town with a surprisingly popular brewery with ~8-10 beers on tap. IPAs. Every. Damn. One. Of. Them. And my local beer shop switched distributors so now I can't get my preferred beer (Prairie Bomb!).
You could say that for any word. The common people's definition of prominent. In the sense that he wasn't that known in the tech world and not a household item in the business industry either.
Well that's what you're meant to do with referendums. You have them to judge the peoples intent. And people's intents change over time and so you keep having them. Not to keep having them until you have the answer you want. You're making it a winner vs loser but it's not.

All the brixteers saying to not have another referendum and that's it's not democratic is a cognitive dissonance. It's saying it's not the will of the people to ask the people if they want.

Ireland as you said kept voting until they joined the referendum. So initially they didn't want to join, but then over time they did. Nothing is stopping them from having another referendum to leave the EU (like the UK did). And if the sentiment of the people show they do they, they will.

If you go on about the will of the people, then having another referendum makes more sense. 2 years ago was a long time, and peoples opinion changes. That referendum 2 years ago was given as a NON-BINDING referendum, to see what people thought about and if they should actually look at is a valid option. People said yes. So now we've looked at it, we've seen what deals we can get and we know a bit more of what is involved (and the people managing it). So now would be a good idea to have a binding referendum on which deal, or even to remain. This would be the will of the people.

It's like buying house, you make an offer first and then you get a survey. If the survey says something is bad that you missed, would you still buy the house at the same price?

If we have another referendum and people think the deals suck we would rather remain, that is literally the will of the people. If really feels like the argument to not have another vote is that you're afraid it might go the other way (since it was so close anyway). But you shouldn't be. If we have another vote and we remain, the brexit people can continue the discussion and convince us that it would be better over time. Then when we have enough national support, have another referendum. You're meant to keep having referendum to judge peoples intent. For something as major as leaving the EU we shouldn't be rushing it and jumping the gun with no plan in place. We can stay, make our plans, present these plans to the people, get them to see it's the right move. Not jump in and saying 50% of people want to leave so we must leave, that creates a big wedge down the country of leave vs remain and no one gets along.

A big change should come around slowly. This isn't a revolution.
Yeah, I'm saying that if Bitcoin is a "currency", it can't have "unrealized losses" like another asset does.
All true. And Bitcoin could have a real value long-term (decades), if enough people believe (and continue to believe) that it does.

The forex example is a bit off, though. If I don't believe the price of the Euro, for example, well, there's still a ton of stuff being produced in countries that use the Euro, and they trade with other countries, and that sets a price for the Euro in relation to those other countries. But how much stuff is produced in places that use Bitcoin?

Perhaps I should have said in "places" that use Bitcoin, because it doesn't have to be countries. But how much stuff is for sale only in Bitcoin? That's where Bitcoin is going to have a price as a currency. If there aren't many things with Bitcoin-only prices, then Bitcoin can still have a value, but it's value is more like gold - as an investment that's not subject to inflation. Even as that, it can have a value forever - gold's done pretty well at that, after all.

But I still think it's too soon to see if Bitcoin will do that. Gold has several millenia of being accepted; Bitcoin has 10 years. We'll see what happens in the long term.
I’ve been telling people about TikTok for a year now, since I live between Asia and the US lately. Most people don’t get it, or understand why it’s so big. The western variant Musical.ly doesn’t help, as the content (which reflects the culture) is different, and not in a good way. The recent efforts to merge the two apps are a huge mistake in my opinion. The beauty of Douyin was the innocent, childish creativity that developed organically there. Merging that Asian thread with a bunch of western brats “flexing” and trying to recreate Vine/Instagram celebrity culture is a bad move.
Show HN: Javalin – A web framework written in Kotlin
SBCL on my AMD FX(tm)-8350 Eight-Core Processor:

~$ sbcl
This is SBCL 1.4.11, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.

SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses. See the CREDITS and COPYING files in the
distribution for more information.
* (defun fibonacci-tail-recursive ( n &optional (a 1) (b 1))
(declare (optimize (speed 3) (safety 0) (debug 0))
(type fixnum n a b))
(if (< n 1)
a
(fibonacci-tail-recursive (- n 1) b (+ a b))))

FIBONACCI-TAIL-RECURSIVE
* (time (fibonacci-tail-recursive 46))

Evaluation took:
0.000 seconds of real time
0.000001 seconds of total run time (0.000001 user, 0.000000 system)
100.00% CPU
2,513 processor cycles
0 bytes consed

2971215073
*
Why Openness Is the Greatest Path to Security
I think you're kind of splitting hairs, all policies can be viewed as outcomes. "Bring back grammar schools" is both a policy and an outcome. "Improve education" is only an outcome because it doesn't discuss how to achieve it. "Leave the EU" is 100% achievable and has an obvious way to achieve it, it's policy just not detailed policy.

Realistically they should have planned more, but planning is limited when you're going into negotiations with an unpredictable third party. If other countries had voted to leave the EU, or the German or French elections had been different then the negotiation would be very different. Even the UK election after the vote could have wildly changed our brexit policy.
There is Syncthing which looks good on paper, but it lacks an iOS client. I'd love it if someone developed even a read-only iOS app for it.
Thanks for that. So far Zig sounds amazing. They should have something like this on their home page.
How much is Facebook worth overall? Buying it outright could give you that kind of power.
s/hacker/cracker/g
Now millenials are killing the divorce industry, too? How despicable.
Ads will never go away, ever. They work too well and always will.
I'm not saying they should never be hired, I'm saying that you cannot discount human bias, and unfortunately a lot of the time the person working at the bank will toss that resume. That is just the reality we live in.
Times New Roman is the font
That all my college teachers want
But Courier New will have to do
It adds a page, or sometimes two
Hooray for fixed-width fonts!
Yes they would have to join, but if Brexit happened they are no longer in the EU and so need to leave the UK and then apply for the EU. Wonder if they would need to go through a period of not being in either?

Imagine a hard border on Scotland.

Don't think the monarchy would approve of that much.
Agreed, the opening paragraphs talk about "overthrowing C", the release being "massive", lots of "I" and "my", and also the statement you highlighted.

I'm sure this an excellent language, but it sounds like it's written by a megalomaniac.

I'm sure it's not intended that way, but I would advise the author to tone it down a bit so people don't take it the wrong way.
I had no idea that Github even used Rails. The things I learn.
Maybe things are changing these days.

How necessary is a Masters in Computer Science degree?
It costs somewhere between $20-$200 to get married. ($20-$50 to file the paperwork plus whatever the officiant chooses to charge ($0-$150(?) - mine charged $100). It costs more than that to hire a lawyer to create a series of legal contracts.

If you want to make it "file one series of standard contracts together which are stored at the courthouse" then you're just back to civil marriage.
Abacus launched easier this year, to fill some of that gap:

https://www.abacusnews.com

Though they're still more long-form editorial than "here's what happened this week."
I'm not particularly informed on arguments for and against this, but shouldn't a national ID require some modicum of trust in the national government? In their ability to keep the database safe from bad actors, including Executives that fancy themselves dictators?

A national ID sounds like a terrible idea for this country right now.
Custody maybe. But being married makes a difference when you're trying to end a relationship and you have to break up your shared assets
What it's like to run a catering business under siege in Gaza
Could you put a machine (that wasn't powered by TNT or something equally crazy) into a space ship for protection from cosmic rays? Is that something people are looking into?
pdksh was a thing. Using ksh meant they could use the odd solairs machine without having to maintain third party tools on them.

There's a lot of overlap between bash and ksh scripting, but it's not 1:1.
I wouldn't. Mainly because being the latter half of a country name would be a slap in the face and a general embarrassment of the nation. All for just over half the population that for some reason didn't want money from the EU because most people here are that poor. Amazing really.
Seems simple enough to just make it a national holiday.
The trouble is that of the two obvious options, one is pointless ("Norway") and the other ("Canada") breaches the peace treaty in Northern Ireland.
Unmonetizable and "super normal profits" for a 19B product can be really close in the scale used by business people
This presentation is biased. It doesn't take into account that the Northern Ireland is really a problem of the EU. There are soft borders in the EU for example Poland - Russia, where people can roam freely. EU is just not being flexible to make a "political point", which is pathetic. They shouldn't include a provision to leave the Union in the first place.
Nim has a soft real-time GC designed for game development. https://nim-lang.org/docs/gc.html

I'd also be curious why the OP decided not to use Rust.
Confused about Google Maps? Find out what changed with the June update
In principle I agree with you.

Unfortunately, your response doesn’t really deal with the point I made: not only does it apply equally to both companies, but also I cannot think of any economically significant use case where Intel will beat AMD while costing more ($ or watts) per gflop.
1. Korea is much more homogeneous than China. China has a wide diversity of ethnicities. (Before you downvote, check Wikipedia first)

2. China doesn't "ban foreign internet/social media". LinkedIn is in China, so is Bing. It bans companies that do not follow Chinese law. If you want to argue that the Chinese law is bad, you should know that Korea bans Google map because of law.
Similar post from Shopify about a year ago on their experience upgrading from Rails 4.2 to 5 https://shopifyengineering.myshopify.com/blogs/engineering/u...
The state of Oregon has vote by mail. Its awesome. My ballot gets mailed to me a few weeks before the election. I fill it out, and can either mail it back (I have to pay for a postage stamp) or drop it off at a ballot drop box all over town.

there are all sorts of safeguards for things like not getting your ballot in the mail, etc. I was also automatically register to vote as an independent when I got my drivers license. (they mailed me a form I could return/mail to change party, if I wanted to).

My last state, my town was small, had a single polling place, and trying to vote before work meant getting there before they opened at 7am, or else wait 60-90 min to vote, and be late to work. (or come in after work, and wait 60-90 minutes).
Spotify ends test that required family plan subscribers to share GPS location
Apparently he was 29 anyway, so I'm not sure what the point of the 35 is.

And to be honest Chinese billionaires not being well known in the west isn't that surprising to me, particularly when their business ventures are heavily China-facing.
> Well if they are willing to break TOS to sell ads on facebook

What TOS? Facebooks? Why would they be bound by it?
The Pentium 4 problems over 15 years ago caught Intel very unprepared. The problems since have been increasingly less forgivable. 14nm wasn't exactly a smooth rollout either. The fact that Intel management decided that the physics problems they were encountering with increasing regularity could be countered by bold management proclamations suggests a hearing problem on their part rather than an issue of those further down the org chart communicating the issues far and wide.
Somewhat OT, but reminded me of this classic:

"Oh, that was easy," says Man, and for an encore goes on to prove that black is white and gets himself killed on the next zebra crossing.”

https://www.goodreads.com/quotes/35681-now-it-is-such-a-biza...
Isn't this why companies incorporate in Delaware? Isn't it like $50k or something to file suite?
So you think taxes only fund government R&D? And that all taxpaying entities derive outsized profits by relying on government R&D?
Wow, thanks for sharing that. It is powerful.
If you didn't know that then let me share with you this interesting story from 2012. I'm going to repeat it from memory so my details may be a little fuzzy but I'll include a link which should tell the story more faithfully.

So back in 2012 rails had a default behavior where you could mass assign values from a POST to a user and there wasn't any scrubbing of that, by default. Someone realized this was a Bad Idea and issued a pull request that would have fixed it. Instead of accepting the PR, DHH (I think it was him) said something along the lines of 'competent programmers would not leave that setting in place' and rejected the PR.

The exploit discoverer thought about this and tried it against github, which was known to run on rails and the code worked! From there he was able to manipulate the permissions on github to get access to the rails repo where he reopened and accepted his own pull request.

He was promptly banned.

https://gist.github.com/peternixey/1978249
Facial Recognition for Beginners in Go
Pretend you're a compiler, what changes would you make to this to make it tail recursive:

fib(0) -> 1;
fib(1) -> 1;
fib(N) -> fib(N-1) + fib(N-2).

Rules: Making a second function (fib_help) is permitted. Shouldn't use any more memory than this one uses.
What is the formula to compute the 30%, how did you compute it?
After you retired, how much (%) of your salary will you be able to spend monthly?
In fact the voting system seems to be getting more, rather than less, shady in some places. Eg, LA county:
https://news.ycombinator.com/item?id=17823702
You can pry them from my cold dead hands. If functions are first class objects, which they are, then they should not necessarily have a name, just like not every object created during runtime is at some point assigned to a variable.
Looking forward to the pro-brexit commenters posting their realistic workable plans for leaving the EU that addresses these issues.

I mean someone must have plan. You've been complaining about the EU for (checks notes) decades. Didn't you use any of that time to come up a plan?

Want to call me a remoaner or other insults? That's fine, but maybe post your plan first and then call me a remoaner?
> Most people don’t get it, or understand why it’s so big.

I'll bite. What is it and why it's got so big?
Or state-actors arrive on behalf of their competitors to put an end to it...
The concern is not about wrongful termination lawsuits, but the myriad other lawsuits that a business could be subject to. Examples might include sexual harassment cases involving employees that were sex offenders, negligence in personal injury cases, customers or vendors accusing the company of violating contracts, etc.
How to create products people want
Trying to give fixed income seniors trusted free options to create additional email addresses. They are freaked out about Gmail. Not sure what it would take to create such a service.
Most of the root of the financial crisis was things that weren't illegal.

Poor lending standards and verification practices.

Financial institutions buying and selling complicated derivatives they should have understood but didn't.

Relying on ratings agencies to do a good job, when they didn't.

Relying on insurance that wasn't appropriately priced or capitalized to cover the risk.

There was some outright fraud in loan applications and foreclosures, which was prosecuted when there was sufficient evidence.

All of these stupid decisions and the resulting easy money distorted the housing market, and the results when it fell apart were painful, but bank execs don't have a legal duty to not engage in stupid endaevors or maintain the stability of our markets. On the other hand, officers of a public company do have a legal duty not to knowingly distribute misleading information about their company in order to manipulate the stock price.
I think people are more against criminals, because they go against the rules of society. The norms and rules of society are more important and mean more than most of the actual crimes. Me stealing $5 from someone is not going to do much harm, but people will want to punished not for the crime necessarily, instead for breaking the rules that bind us together and make us civil.

The only thing that separates savages from the civil are the laws and rules of a society, if you break those rules you are not just doing the moral harm in breaking the rule, but doing harm against the society as a whole.
In many cases, yes. Why would it be unconditionally bad?
Instagram Stats, Facts and Figures for 2018 [Infographic]
Exactly. I was sort of hoping there was some altruistic nonprofit out there offering this service thst I didn’t know about.
With 2 separate $400m investments yesterday, SoftBank goes hard on real estate
I was going to say the same.
You can read up on gene drive, but the short version is that it's a devious genetic-engineering trick so that if even one copy of the allele is present, all offspring will get it: https://en.wikipedia.org/wiki/Gene_drive#/media/File:Gene_Dr...

The allele will replicate itself onto the homologous chromosome. Another way to think of it is that an allele from a gene-drive parent will wipe out and copy itself over the allele from the other parent.

It'd be like if instead of the only the phenotypic expression of brown eyes being dominant over blue eyes, rather the brown gene actually wiped out the blue gene so no blue-eyed children could be born from a pairing of one brown-eyed and one blue-eyed parent.