skysight-inc/HackerNews huggingface dataset:
I agree, and for simply learning flexbox in 5 minutes (really it's that easy), I used:

https://www.w3schools.com/css/css3_flexbox.asp

the "try it yourself" links are handy.
One Bit Ferrite Core Memory
I probably should have started by telling it was years ago when applications had to work on OSes other than Linux and BSD (AIX, HP-UX, Solaris). Today it's libev or Boost.Asio.

> why not just use poll(2) instead?

Because as I mentioned later poll basically is the same as select but requires more memory to be copied to/from kernel and was slower in some test cases although I can come up with cases where poll will be faster than select. Networking libraries like libev and others allocate fd_set the same way.

>> To find out which sockets have events some loop through data structures and check each socket they contain. But a much better way is to iterate through fd_set as array of long and check 32-64 bits at a time.

> you're better off switching to a socket API that scales well (epoll or kevent) and does this filtering for you. Or like another commenter suggested, using a library that abstracts this functionality.

That's how kernel, libev and others work with fd_set.

>> The correct way is to maintain a descriptor set all the time and create a copy of it and pass the copy to select.

> Again -- if you've reached the point where this tradeoff matters, just go directly to epoll/kevent.

Again -- libev and others do this

> Maybe your program deals with non-socket fds, and the set of socket fds is fairly sparse. Using a map is actually pretty reasonable even if fds are dense.

Yes, there might be cases where you have non-sockets and you can't use array indexed by socket. But it's great in most of the cases and kernel will keep it as dense as possible. It might be that you have 10,001 connections and then 10,000 are closed and highest socket is still in use and array memory is wasted. But it will not require more memory than during peaks.

libev use of select: http://cvs.schmorp.de/libev/ev_select.c?revision=1.56
The issue isn't necessarily that he supports Trump, it's that he donated money to a group that knowingly shitposts, which if anything is an attack on free speech.
A quote from that group: "shitposting is powerful and meme magic is real".
The founders of the same group spread white supremacist and anti-semitic memes.

Surely the problem with funding a group like that is that they are actively employing measures to reduce free speech or a balanced political discussion?
In that context it's not someone who is using their free speech, but employing others to suppress it. That's the problem I have with Luckey's actions (and yes, a whole lot of other people's too).
Obviously there's some collection of pools that control more than 50% of the capacity, how could there not be?

The question is how many are needed to control more than 50%, and how likely they are to collude.
Dash Quest – Endless Runner Meets RPG
http://jalopnik.com/apple-gives-up-on-building-its-own-car-b...

http://www.popularmechanics.com/cars/technology/a24274/googl...
Ahead of iOS 11, a 'Files' app entry from Apple appears on the App Store
Modern JavaScript Tutorial
My wife told me that this book turned me into a design snob and she constantly pokes fun at me for it. One time, there was a pull handle for a door that needs to be pushed, and i went on a rant about how that is terrible design, and why wouldn't they design it this way, etc. (very similar to the arguments he uses in the book. ) so lately every time she sees something that she knows i think should be designed differently, she does the stupid spongebob mocking meme and goes "tHis sHoUlD bE DeSiGned SoOoO muCh BEttEr!"
What ktta is talking about is the 10% Founders Reward that goes to the company and its investors.

For those that may read this who don't know, Zcash is a company. It's Founder and CEO wrote this on Twitter:

> I think we can successfully make Zcash too traceable for criminals like WannaCry, but still completely private & fungible.

https://twitter.com/zooko/status/863202798883577856
it's always a little disappointing to see this same dumb picture posted all the time in reference to labview

Yup. It's not unlike the -insert whatever language here (C++ being a good choice)-haters ranting but not actually having used it a lot, or at all.

Moreover: depending on the type of UI, I don't think there is any language out there which can get me the results I need as fast, when I need something 'process control'-like, i.e. lot of display of e.g. electrical signals and a bunch of control buttons/textboxes/comboboxes. Then there is just no match for Labview. And I have quite some experience with writing UIs in WinForms/WPF/Qt... (typical example: good luck writing a pannable, zoomable, cursor-able live multisignal 2D graph in any of those - with labview you just feed data into the premade component and you're done) It even goes so far that even though the backend is in C++ or Python, I might take the overhead of writing IPC between backend and Labview frontend over doing the UI in the backend language.
I'm 28 and both of my parents were engineers back in Ukraine (at the time Soviet Union). My dad was not primarily a programmer (ended up becoming a marine surveyor), but I am fairly sure he had to be involved with it at some point in his studies and career back then. I remember my mom would bring stacks upon stacks of used punched cards for us to doodle on to avoid wasting blank paper.
Isn't it more a question of what instructions those existing police officers are given? Currently their activities always come a bit late for the innocent dead and injured. A positive check about someone hiring a van is not prima facie evidence of intent to mow down pedestrians.
Regardless of how you feel about marketing, or other things you feel strongly about, would you please not post like this here? You've done so countless times in the past (which was a real problem), but fortunately not so much recently. That's a good trend.
For Node.js
http://www.mattzeunert.com/2015/08/19/viewing-assembly-code-...
They have been arguing for increasing the number of H1Bs. But when those H1Bs arrive in the country, work for their employers and then apply for permanent residentship, most of them - those from populous countries - are faced with wait times that last decades.

Note that I was talking about relief for current employees of these tech companies. Please direct me to evidence supporting massive support for this cause from tech companies.
I'm only 23. I guess I have grown up in a time where Tattoo Stigma is a very "old fashioned" idea.
I'm the same. Straight out of high school I wasn't mature enough to make the most out of higher education. Clocked up 50k in debt and wasted 3 years. Got older woke up and went back worked hard and got an Engineering degree. That was a life changer and with scholarships was much cheaper than my first attempt.

I didn't want to go straight to collage, but the when I said that to my parents they were very afraid, so I went. But actually I needed to take time to grow up a bit. 18 for me was too young. I don't know if it's wise giving people so young such access to loans.
There are countless things to work on. Why incur even a slight distaste in your work?
Quote: "4. A big enterprise company will pay you to modify your software to work “better” for them. Sounds great now, when you need the revenues/cash so badly, but little did you realize that you just outsourced your roadmap to a big company."

Yup, seen that one at companies I've worked at! Fred knows what he's talking about.
When President Trump issued an Executive Order banning immigrants from seven countries

That's not what the executive order did.
I don't believe it's possible to add to the supply of bitcoins simply by loaning them into existence vs. fiat currency.

Of course you can. People deposit BTC in your bank, and you then loan that out to others while telling the depositor that they can withdraw at any time.
Luckey is truly shaping up to be a grade-A asshole, isn't he?
> CP/M was written in a different subset of PL/I, PL/M

It is somewhat amazing to me that I can't recall that I ever knew that, despite once having owned a CP/M machine and having written some software for it. I always assumed it was written in assembly.
I'm not so sure I buy into that theory of yours any more than the article.

My personal theory is that self-esteem arises from the fact that you are aware of your acceptance in a social group. Knowing that you are welcome calms you and gives that assertive vibe.

I don't think it matters how much you believe in yourself. At least not beyond a basic level. In fact, believing too much in a non-conforming self makes you a narcissist, and believing too much in a conforming self makes you vain.
Maybe what you should do is deep learn some data and then do some deep learning with your deep learned [deep] data.

Deep.
[electron] Define TouchBar layout in your React components/routes
This is easy to say when you're from an island-nation. The few non-island nations without border control are all third-world hell holes with major terrorism problems.
One of trending 'dirty' trick while signup is multiple social account signup. Signup form shows social singup like linkedin or facebook. User chooses one, say linkedin, you think it almost signedup. Then application would say something like - we 've stopped linkedin sign up - use facebook instead. You are left no choice to use facebook. But if you look closely, they use both social account graphs to learn MUCH more about you. Latest big name I came across doing this is slideshare!
Since the TouchBar api was implemented in electron, I’ve always wondered if there’s a way to define its layout using React components.

I experimented with https://github.com/patrikholcak/react-ionize, but the TouchBar still felt somehow decoupled from the main logic of my app and the events still needed to be sent manually to the renderer process. What I wanted was to use it as normal front-end components and map event handlers which update the state/dispatch actions.

Next step is to rewrite this using React’s fiber renderer, which should hopefully enable fully dynamic TouchBar layout
"Build the wall" is not merely about enforcing border crossings. It's a political rallying call to scapegoat undocumented immigrants.

He's developing a technological alternative to "full-scale border walls." He also explicitly positions it as a "defense" technology to protect citizens from threats. A substantial amount of the money to be made here is made possible by anti-immigrant hysteria.
glass does block ultraviolet light, which makes it effective protection.
I've used COBOL for about 2 years. Like any other tool, you could get used to it and it got the job that it was intended for done. The fact that it didn't have the niceties of modern languages is simply because it was conceived of long before those modern niceties existed or were validated outside of the realm of research.

So beware of criticizing an old programming language from a modern viewpoint, just like FORTRAN and Lisp it taught us a lot of valuable lessons. If all the COBOL code in the world that is still running would stop working tomorrow morning at 9 am you'd definitely notice.

Delphi was launched decades after COBOL and so of course had many more modern language concepts built into it. It also had a fantastic little IDE and in general was a more comfortable environment to work on (by way of being on a PC rather than a mainframe).

To really appreciate COBOL you should look at the entirety of the environment that it was used in rather (where batch processing was the norm and subroutines rather than function s where the code blocks) than to compare just the language features. You also may have noticed the occasional 'CALL' verb, which was COBOL's way of modularization.

I think that your impression of COBOL may have been a little bit clouded by that one job. I've seen some really readable COBOL, and given that the alternative was assembler and that those programs were patiently put together line-by-line on punched cards and never ever were refactored using an interactive editor should go a long way towards understanding why we make progress in little steps rather than in huge strides.

Delphi came into existence by way of Pascal, which is from the ALGOL family of languages, an entirely different branch on the tree of programming languages. Comparing Delphi with COBOL directly is not really very useful because you'd be comparing a language made for interactive applications on PCs in the late 80's with a language made for batch applications on mainframes in the 60's. The 20 years in between were the most important years for the IT industry when it comes to language development.
What's the point of your question? Why do you target Lego specifically? I don't think that thrown out Lego bricks has any measurable impact on our environment compared to other sources of plastic waste.
There are decades of research. It's not unreasonable to adjust expectations based on that.

Honestly, I feel part of the problem is that this seems to attract people who think that text is bad and more visual = better, while the truth probably is that you need to be really, really careful to arrive at something that doesn't explode in complexity when confronted with all the little details of ordinary programs.
thanks for the measured response. this is the kind of comment i've come to expect from HN. it adds to the conversation.

the other responses on this story are surprising to me. they seem to be on the intellectual level of reddit/facebook.
about 1/3rd of a mile? weird units are weird :P
Quick question: are we/you using flexbox now even for critical areas such as navigation? I've been putting off using it for areas like top nav due to browser support, but surely now we can use it without worrying about fallbacks? I guess the answer is always "depends" with links to can-i-use, but wanted to hear opinions.

I love flexbox, it's what we all wanted back in the day... now it's here, it's motivating me to code some new responsive templates from scratch, and I'm blown away how well flexbox handles nice neat responsive columns. It plays nicely with other CSS too.
- educated people live longer (Harvard study etc. http://www.cbc.ca/news/technology/educated-people-live-longe...)

- the S&P is possibly driven by people who went to college and started companies; if nobody did that, where would it be?

- average results tell the individual nothing about his/her best choice, so the headline is a bit detrimental. There are successful UHNW entrepreneurs both with and without college degrees and plenty of unsuccessful people with college degrees

- note that Payscale uses median pay to calculate ROI from colleges; all extremely successful people with very high incomes are not reflected in the data.
What if the terrorists start using plain old mail? Or the telephone? Or just meeting up in a cafe? Do all of those things need to be regulated? Should they open everyone's mail and read it?
After all, you could be writing bad words. Should we just have everyone in the country "check in" every week to make sure they aren't doing anything unusual? Where does it stop?

I thought the UK was very forward looking in their responses so far to the violence. Things I've seen on TV have lead me to believe that standing up and not being afraid is the best medicine for this type of action. Maybe I was wrong.
Great list! I love alot of the books you put on this list. I see Brave New World on alot of book lists. I get that it is a groundbreaking work at the time of its publication, but is it really that great nowadays? I've tried to read it on multiple occassions and i find it almost impossible to completely get through the book. his writing style is absolutely maddening (I think its partly because of my OCD, but at certain points the author is carrying on multiple conversations at one time, line by line. Nothing is Particularly surprising to me about this book, and I found it rather boring. I understand that it kind of predicted classical conditioning, but thats all obvious now. I understand that it inspired 1984, but i read 1984 before i tried to read brave new world, so nothing was suprising. Am i missing something here?
In a nutshell: performance still matters because your program isn't the only one running on the computer.
No sane non-UK company will want to do any R&D or other sensitive stuff in the UK anymore, lest GCHQ leak their communications to their UK-based competition.
Not the main part of the article but why would anyone go to a Sushi restaurant if the owner isn't Japanese? Especially if they don't eat the food they serve?

"I talked to Ryan Roadhouse, chef-owner of the lauded Japanese restaurant Nodoguro and former sushi chef at Masu, about the incident with the worms. "My wife isn't from the United States," he said. "She's from Russia. The only way they trust fish, even frozen, is [if it's] salt-cured.""
This is of course just another version of GPL vs. BSD.

Attempt to maximize some measure of "total freedom" at the expense of some individual freedom, or just let everybody do what they want even if it harms the community?
they are reflected in the data. as outliers.
Expansive Protections Against Police Abuses Win Approval in Providence
> Humans are really good at remembering spaces. ("Describe for me your childhood bedroom." or "What did your third grade teacher look like?")

Some humans. I honestly can't answer you those two questions. I'm much better in remembering what I just read than what space I just saw, and I absolutely suck at remembering (not to mention describing) faces. If you mugged me I probably wouldn't be able to describe you to police beyond the basics like gender and height (I probably won't be remembering what you were wearing).

I say this because being good at remembering spaces is like "everyone sketch a picture when trying to convey an idea" elsewhere in the thread - both are examples of what some people do, and it may be surprising to discover that not all humans are good at it.
About the Travelsentry locks, what happen if someone from the airport open your luggage, and tamper with the content?

How can one be sure that the content their luggage has not been tampered with? I assume the answer is no but would love to hear otherwise
That's not what the executive order did.

From [1]:

Executive Order 13769 lowered the number of refugees to be admitted
into the United States in 2017 to 50,000, suspended the U.S. Refugee
Admissions Program (USRAP) for 120 days, suspended the entry of Syrian
refugees indefinitely, directed some cabinet secretaries to suspend entry
of those whose countries do not meet adjudication standards under U.S.
immigration law for 90 days, and included exceptions on a case-by-case
basis. Homeland Security lists these countries as Iran, Iraq, Libya,
Somalia, Sudan, Syria, and Yemen.

What did I miss?

[1]: https://en.wikipedia.org/wiki/Executive_Order_13769
I tried it, but it isn't intuitive, and I'm uncomfortable working in a terminal environment. Much prefer GUI apps.
But in the end, we got scrypt ASIC miners anyway.
And then a coin called Vertcoin (VTC) came along and replaced scrypt with X11, to fight ASICs
Consequence, punishment and revenge are very different things, and it's infuriating how so many otherwise well-meaning people have been taught to conflate them.
Sounds like an interesting use of lidars
I can corroborate this explanation. We're a two vehicle household - a model S and a hybrid SUV, and all long-haul trips are done on Tesla.

For one, the supercharging is free and is usually near restrooms/Starbucks/amenities that we would've stopped by anyways. For two, Tesla's barren interior and generous trunk provides quite a bit of storage for random things you have to haul when traveling with kids. For three, the autopilot takes out a lot of stress and makes road trips almost pleasurable.
Well, you said the rule of thumb was to use Blueprints unless you can't avoid C++, that implies a default.

I do agree that Google's not evidence of anything, I just use it as a first approximation when I have no better sources. That said, the marketing channel of a company trying to push its tech doesn't really satisfy me either.
> I swear Golang is doing so much backwards that it's starting to look intentional, like a Google-sponsored LOLCODE.

I pretty much agree with this.

However, I think structural types can be very useful (though as row types, not subtyping). But I think you do still need a way to specify nominal types. Something like OCaml's abstract types on top of a language with row-typed records would give you the best of both worlds.
The problem is the employee can't really leave, because everyone else users a similar contact. But what exactly is the other side of the argument? The one that says "we don't really want to stop you from pursuing something unrelated, but we are going to make you sign it over to us anyways "
PlayStack | Senior Python Developer | Krakow |

PlayStack is an innovative games publisher, looking for developers to work on internal systems (CMS, Analytics)
Stack includes Docker, Flask/Tornado, GCP, React+Redux, as well as Node.js, Postgres and AWS.
Apply via tomek@playstack.com
I'm more worried about people who think they can decide what political candidates or projects are acceptable, than the actual candidates or projects.
> Ouch! I suppose you're the guy who came up with title?

Ouch! The only possible reason for defending it.
It lowers the discussion quality, it distracts from the underlying topic, and it's also against the site rules.

"Be civil. Don't say things you wouldn't say in a face-to-face conversation. Avoid gratuitous negativity.

When disagreeing, please reply to the argument instead of calling names. E.g. "That is idiotic; 1 + 1 is 2, not 3" can be shortened to "1 + 1 is 2, not 3.""

https://news.ycombinator.com/newsguidelines.html
I tried to look for some math topics, such as "harmonic analysis", "lie algebras" and "model theory" - unfortunately none of the matches were relevant for any of the queries
Penn & Teller did a great episode of this on bullshit. Season 8, Episode 9.
Good points. As mentioned, I think its totally fair (even encouraged) to debate political views.

There is a clear difference between debating political views and witch hunting though.

People are having to write public apologies for having their own views or engaging in free speech. This is NOT ok in my opinion. People are getting fired or threatened for being Trump supporters. Also not ok IMO.

The clear difference is when it turns from political debate ("free speech") into real-world consequence.

And some things should have consequence. If a person engaged in racial discrimination in the workplace, I would totally fire them. However, if someone supported political candidate of dubious values, its a different ballgame - maybe they support that candidate for their economic policy, who knows. The crazy thing is Luckey is not even a Trump supporter, at least according to his public apology.
Non-field-programmable - what were called ULAs (Uncommited Logic Array - tellingly, wikipedia redirects to https://en.wikipedia.org/wiki/Gate_array ).

These are chips with a large grid of gates, which they have in common with FPGAs, PLDs, PALs and the like, but you program them by changing the final metalisation layer during manufacture rather than by feeding a bit-stream into them at initialisation.

They were cheaper and faster to make than truly custom chips. A stock of etched and doped silicon wafers could be held by the manufacturer, so they only needed one mask for the final metal layer to be produced for each customer. This also meant that the turnaround from order of a new design to delivery was faster, as only that single mask needed to be prepared.
Oops, thanks for pointing it out. It was a while since I read the discussion on "Macro use and rexport".

It is actually one feature I'm quite looking forward to, since I think proper naming for macros will make the whole eco-system simpler. Ah well, now we'll have to wait even longer.