skysight-inc/HackerNews huggingface dataset:
This 'partial interpretation' trick used here has also been used successfully in the database community to accelerate whole queries, etc. Tiark Rompf's group in particular has been pushing this idea to it's limit.

Functional Pearl: A SQL to C Compiler in 500 Lines of Code -
https://www.cs.purdue.edu/homes/rompf/papers/rompf-icfp15.pd...

How to Architect a Query Compiler, Revisited -
https://www.cs.purdue.edu/homes/rompf/papers/tahboub-sigmod1...

Flare: Optimizing Apache Spark with Native Compilation for Scale-Up Architectures and Medium-Size Data - https://www.usenix.org/conference/osdi18/presentation/essert...
Ask HN: Anyone looking for a cofounder?
Are you looking for a co-founder? Share your project and the what you're looking for ;)
Yes, that's going to feed 9 billion people!
I agree that the class keyword is far more readable. I never find myself using them in the "classical" sense, though I could see how it would be tempting for someone coming from, say, Java.
static typing
You are the one that said, above, that you could—and I quote—"fix this."

"This", in that phrase, stands for the problem in the OP post title—"it being so hard to detect keyup event on Linux."

And "on Linux", in the OP post, is a shorthand for "in all the arbitrary applications that exist in the Linux userland, or that one might choose to write in the Linux userland." (You can tell that it has this meaning, because under the more literal meaning of "on Linux"—working within the Linux kernel itself—it is already quite easy to detect keyup events.)

Obviously, fixing the entire Linux userland is an unbounded amount of work. That is precisely why the other commenters above are saying that it cannot be done. Not "done" as in "worked upon", but "done" as in "finished."
It's to prevent food waste. For example, a wrapped cucumber lasts three times as long.
Feeling Lonely? Scientists Are Developing a Pill to Fight Loneliness
You are absolutely right. Are there any such features that produce additional in-band data for every keystroke?
I agree that about not doing premature abstraction, and thinking about future evolution rather than just current similarity when deciding whether to abstract or not. However, I don’t think it is difficult to unwind an abstraction. You just go to all the usages of the abstracted entity and replace them with specific code. Doing the opposite on the other hand is much harder if you have multiple sites that do something similar but not in somewhat different ways because they were written separately - it is much harder to merge the usages into a single abstraction, for the same reason it is hard to switch between libraries that do the same thing because the different libraries have different APIs.
It's arguably a better experience if you don't need to be aware of which platform each piece of content is streaming on. And I'd rather see IMDB ratings then the rather meaningless "this is a 92% match for you."
Very interesting indeed!

Off-topic: May I suggest that you switch to using imgur instead of the image host you chose? The ads on imgur are much less intrusive.
Years ago I unpacked a Kindle from a brown box and that gave me a wow feeling. Sustainable packaging doesn’t have to be a bad experience.
At first I was impressed by 30 billion grams (with little finger to mouth)

But that's only 30,000 tonnes.

10,000 tonnes of co2 for 30,000 tonnes of cargo seems... Wrong.

This seems to back me up
https://timeforchange.org/co2-emissions-shipping-goods

10 - 40g co2 per tonne. So about an order of magnitude less.

Edit: Doh see below. This is per km
>slash a truck tire

Said nothing about slashing, that's permanent damage.
To anyone.

Types are useful only if they can be checked/verified at compile time.

Types in only arguments cannot be verified by compiler.
So type mismatch can be checked only at runtime. So would be this:

function foo(a:Number) { … }

Is essentially this:

function foo(a) {
if( !(a instanceof Number)) throw "Not a number";
…
}

And that rises the question: who and at what moment will handle such errors?
Or label the box "Live Crickets"?

[1] https://www.washingtonpost.com/business/2018/12/29/i-ordered...
I used the same page :)

The key is it's per ton per km transported.

For reference, Shanghai to Rotterdam route (a bit of a worst case I guess) is just shy of 20000 km[1].

[1]: https://sea-distances.org/
Thanks a lot :)

I like your idea, notify me when you hit the market with that :)

Maybe a small explanation to the chaos in the name.

So over the last couple years all the buzz seems to be about zen, zen here, zen there. But what all (that i know of) these zen products have in common is that the just force all the zen out of their users, by forcing them to put exactly the data in they need and be careful when you did not dot your i's and cross your t's.

But, at least in my experience, life can get messy and chaotic. So I would like a new software generation, which just deals with that instead of forcing that work onto me. I named it the chaos generation and with all the ai advancements we might be on a good track to make that happen eventually :)

Also my family group on Whatsapp is named Chaosclan, so I got that in there :)

Cheers
I meant the users of the webapp.
Looks like the app won’t run without enabling location services. Bummer..
and "unicode" instead of international
Would be nice to see an example of an actual blog using the platform, on that page, without having to sign up first.
It's a part of hiring someone to have them send in a resume and verify that they have the skills needed to do the job. I contest that it is not fair to disqualify candidates because they cannot meet arbitrary and unreasonable demands for their time. A phone interview is almost always reasonable. A 10 hour work sample due this week would often be unreasonable. It depends a lot on context and conanbatt discarded that.
I'm not sure that's Perlin noise, seems like Value Noise

http://flafla2.github.io/2014/08/09/perlinnoise.html
My point is that most problem spaces can be split into fixed and non fixed portions. Aviation safety has plenty of problems that require a real person to make a call and react intelligently, which is why we still have pilots. Checklists are used to cut down on the entirely avoidable problems that might be missed some percentage of the time otherwise.

There are plenty of things in Linux security that are static solutions that can be employed almost all the time, such as not allowing direct access to root accounts, always running a local firewall, making sure remote services aren't run as root without dropping privileges, etc.
Have a cookie. You can have another one if you source your concept and cite the prior work; your handwave is useless against a search engine, which turns up this phrase only in your posts on this site.

'When someone says "I want a programming language in which I need only say what I wish done," give him a lollipop.' ~ Perlis

[0] http://www.cs.yale.edu/homes/perlis-alan/quotes.html
How to protect your Node.js applications from malicious dependencies
Marvel and Lucasfilm are still very much in my "I've already got the DVDs" territory. The Marvel TV shows never really lived upto the hype for me and if Disney need to PG'ify everything, they'll have a hard time.

I'm probably underestimating some of the Disney kids TV shows that I've never heard of, but are they even on Netflix right now? Isn't Disney just going to cannibalise their own existing TV market?
First time I heard the term GMO I thought it was a joke, I mean just about every major crop and animal and we eat has been genetically modified by us quite extensively. Its normally referred to with a more harmless sounding name though, domestication.

I understand being skeptical and wanting proper over site and testing but it seems to be an irrational fear of how the organism is modified but not if its modified. Guys in labs coats bad, guys in overalls good.

The truth is there is a continuum of techniques we use to modify organisms genomes from selective breeding, to marker assisted breeding, to mutagenisis to targeted gene insertion. What health reason would drive us to ban one while allowing another?
It is much better than doing nothing notable for 30 years.
Hmmm you might be right. I tought free would attract more people then laying out the option, but being completely transparent might evaluate to more here. I have to think about that. Thanks for the input :)
Testing error code paths in Swift
Imgur doesn't work on the old iPod I was using while my phone charged. It never loads fully, but TBF I never upgrade iOS past 2 major versions. So iOS 7 and the first "plain" image host search result it is... :-)

Edit: Found the image link on my own site:

https://www.friendlyskies.net/images/266.jpg
Agreed, thanks for the input!
> The last percent are always the hardest — but to make a driverless car better than a human, they're crucial.

The last % being crucial is debatable. A self-driving car could be way more reliable than a human driver at all times except during blizzards in which case it's known to crash.

That car would be extremely reliable, viable and useful to operate everywhere there's never any blizzard, and even when there happens to be a few blizzard events per year it would only need to be automagically rendered inoperable during those times. The town hall could send that kind of command, just like it would ring a civil defense siren.
They’re plenty useful if you want to write a library and distribute it (either publicly or within an org) that tells users of the library what they did wrong (other developers) without having to insert type checking boilerplate into every single method.
I'm thinking about creating something like that but open source. Would be interesting.
Super interested. Will it be similar to Medium?
In my opinion, the biggest inconvenience with Modern Fortran is that the toolchain is in no way modern. There is no language-level support of a linter, a package manager, a document generator (I use Doxygen but it is not Fortran specific), etc. As a language geared toward numerical computing, I feel that it should have a big standard library that covers advanced math, linear algebra, statistics, ode solvers (like Julia). Yet if you want to get something done, you may still need to reinvent the wheels on top of LAPACK. These things hurt productivity more than the syntactical features.
Honestly, I quit mathematics for the very same reason. And, like the author but to a greater degree, I didn't have the strength of will to keep at it.

Funny, quite a few friends of mine like that who quit mathematics. But we're all better off materially for having done it.
Insert Benchmarks with Inch: InfluxDB vs. VictoriaMetrics
I agree. That was my first reaction and I suspect most visitors will be in the same boat. I like the simple design of the landing page and in the context of a hackernews visitor, I might click through to see more of the project. I almost certainly wouldn't signup in the context of being a potential customer.
Reminds me of this work, aiming to "reverse" the light path between a projector and a camera/photosensor: https://youtu.be/p5_tpq5ejFQ
> for EU residents and not simply citizen

i think GDPR does not reference residents or citizens, but "data subjects in the union"
Intelligence Testing and the Beginning of Eugenics
I should note that the 1 billion phone figure was the 2017 figures, 1.5 billion, minus half a billion I estimated for sales in China. Then again, inland transport in China may not very green so... anyway back of the envelope, order of magnitude stuff.
He had a lot of interest but for some reason didn’t pull the trigger on sending his product into the market.

I’m guessing it was some kind of safety measure that he must have believed that he needed/wanted to achieve.

Honestly, he achieved his dream - Ie building the boot.

He failed in building a multi million dollar business - but that’s something most all of us will fail to do.
Are there opportunities for improving its representational design?
The grid has topological constraints, because links in the network have finite capacity. Encoding that in a "price" would require pricing to vary not just based on total grid usage but also on the location of each load on the grid.
I wouldn't say that it felt like I was thinking really hard in times I wasn't writing. It's a bit like the technique of putting down a crossword for a little while when you get stuck - you might not be thinking much about the puzzle, but somehow you're turning it over in your head.

FWIW, I do agree with the original comment at the top of this thread that this technique couldn't yield 48 books in 2 years - there's only so much headspace available, and this technique is one that taps into that headspace effectively for long-term projects, but it's not magic.
First time building a Linux desktop
for those who have done it, what resources were helpful to build your first linux desktop?

I know there are concerns regarding parts and their compatibility with different OS, and their compatibility with each other.

How have others started and what helped you work through any growing pains?
Keep in mind `this` is not scoped to arrow functions. So even if the syntax was added the way you proposed, this code wouldn't work or make sense.
Right, but sometimes that's just not possible, what then? The only option is to abstract the check into a function which just moves the problem. Or to use a third party library to do exactly what optional chaining does. When I see this argument I just think why should I have to suffer because other people don't know best practices and will produce bad code regardless of whether this exists or not?

I would argue it makes a bad thing easier to read so you can actually tell what's being checked. It's already an easy thing to do, leaving things as they are is not deterring anyone, except it reads horribly. I'm not arguing too many aren't code smell, but what about when it's needed?

The object check syntax proposed on the other hand, imo, does not make things clearer and is of little benefit.

Also regarding callbacks, I meant you can avoid callback hell without using promises. Promises were not technically needed to solve that problem even though they're talked about as a solution to it, you can have promise hells too (and they are exactly what most beginners do with promises). But if used right, the solution is much easier to read and understand. That's how I see optional chaining.
Very well thought project, and they use small planes 12KG.
Netflix has also been pushing anime/anime-style originals. I think this is a pretty interesting strategy, anime is relatively cheap to produce and is niche but has a huge fanbase worldwide.
Looks like non-root X still requires the equivalent of root access to the raw input /dev devices - https://wiki.gentoo.org/wiki/Non_root_Xorg#Making_necessary_...
You should be able to run the app without location services. Of course everything related to that will not be included when prioritising your tasks. Are you running the iOS or Android version?
Looks nice so far. I'm a fan of these new minimal blogging alternatives to Medium.

Also, check out WriteFreely for an open-sourced blogging platform that is federated with ActivityPub, that you can also deploy yourself. Write.as is the main instance.

https://writefreely.org/

https://write.as/about
The sport is probably the most interesting out of all of those mentioned. There will always be a market for sports subscriptions, so they could have a very competitive offering there that Netflix aren't even involved in.

Marvel, Lucasfilm, etc. I'm still not seeing it. Two or three movies a year that I can pick up on DVD/Bluray cheaper. And that's if they're even worth buying on DVD after having watched them once in the cinema. Marvel movies have been wearing fairly thin, and Star Wars is showing similar fatigue.

I'm not saying they won't have a big market, Disney are huge afterall. I'm just saying that I really don't see them as strictly a direct Netflix killing competitor. They're in a slightly different game, content-wise, and Disney's biggest enemy will be itself.
The Harmony brand has recently been revived.

https://reverb.com/news/video-newly-re-launched-harmony-show...
Fortran 77? Fortran IV!
There does seem to be a great deal of confusion about what abstraction actually means. I've seen 4000-line Python modules full of indirection up and down the inheritance chain described as "nicely abstracted" rather than "unmodifiable spaghetti." The reasoning was fuzzy: "you instantiate it and it just does everything you need." But you can't build anything new with it, and it makes so many assumptions about its environment that you can't change anything around it. However you define "abstraction", I'd call that a "boat anchor" instead.
An updated version of AlphaStar that didn't cheat in the same way with the camera as the previous versions did lost to MaNa. So I expect to see more games with additional restrictions to come closer to meaningful losses, and perhaps victories.
Understandable. Unfortunate but understandable.
Difference between state and State
> What you misread is that the patent is awarded to Apple, not Swift. Apple is not being released under Apache 2 license and Apple is not restricted to using the patent only for Swift. If they decide tomorrow to have another language that is not being released under Apache 2 license then there is nothing stopping them from using this feature as the patent is already theirs.

This is wrong. The license says:

>3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted.

'Each Contributor heareby grants to you, ... licence ... to use ... the Work ....'

However, I am very much not a lawyer. Like Chris, I do talk to IP lawyers as part of my work.
he and yeah cant hide the potato english. Thanks for enduring, I guess :)
Yep. That's the community I had in mind. Particle physicists love Fortran :-)

However, I'm not so sure about the speed argument anymore. And in any case for most applications (which are rarely big simulations) it's not worth the sacrifice of readability and modern tools IMO.

Even at CERN people are re-writing some tools in python. (probably wrapping some C++ code, but still ... it's not Fortran).
> Back in the day "RAM doublers". Because you may laugh at the idea of paying for software to pretend to increase your RAM rather than just actually buying RAM, but remember, "fix the damn problem".

Those RAM doublers fixed the "damn problem" so well, that the implementation of them now lives in Linux AND macOS kernel and is enabled by default on all Macs, Android phones and several other devices.

So I think the "fix the damn problems" mentality actually works.
Electricity prices fluctuate on a daily basis to an extremely predictable degree.
It's cool, but I expected some explanation about the steps, challenges. Luckily the HN crowd filled that in :)
> What health reason would drive us to ban one while allowing another?

Why limit it to health reasons? Personally, I'm worried because corporate and consumer interests don't align. When business designed food, we got high-salt/high-fat unhealthy stuff optimized for addiction. When it designed tractors, we got DRMed electronics only repairable by those blessed by the manufacturer. Unless incentives change, GMOs will be analogous, with the addition of copyright protection and restrictive IP agreements. A new front in the already difficult battle for consumer rights.
South Korea rules pre-installed phone bloatware must be deletable (2014)
Ask HN: How do you track your production deployments?
My teams have noticed a lot of benefits by tracking the number of deployments we're making to staging and production environments. Along with the actual number, knowing what's running where and which changes were introduced in a quick and easy to understand fashion has made any troubleshooting faster, product roll outs easier, etc.

Is anyone else doing this?
How are you tracking such deployments?
Having dedicated nearly a decade of my life to a startup competing in this space, the OA is right about Netflix's superior strategy when it comes to user experience and content production. Netflix surged ahead of the pack because they focused relentlessly on the quality of the streaming experience while all the legacy players were focused on deal-making. In other words, while Netflix was building a solid video delivery platform, the rest of the industry was fumbling around with biz dev deals like TV Everywhere that have a very low UX ceiling in the best-case scenario.

However that's the past now, and the OA is missing a few trends:

First, Netflix will not maintain its UX lead at the same level for long. Video streaming like all technology is commoditizing, the experience will get better and better from non-tech companies. Meanwhile Netflix is continuing to plow down this path of algorithm-driven engagement and ramming stuff down people's throats with auto-play, bad search, and other dark patterns. Given the current cultural zeitgeist (eg. Facebook backlash), this isn't going to end well if they don't change course.

Perhaps even more important is the fact that Netflix has a long way to go on the production side. There's a lot of volume of Netflix productions, but not a lot of quality. This is where the OA underestimates Disney—their content is way broader and better than Netflix, and people care a lot about that.

Netflix's experimental Interactive content and Reed Hasting's comments about Fortnite also give me pause. This is typical SV-style next-big-thing thinking, but it also represents taking the eye off the ball. Video games are video games, Netflix doesn't know shit about them, and if you ask me they are better off focusing on their core competency versus trying to build a moat with a gimmicky concept.

5 years ago I would have said Netflix has a better chance at becoming a great producer than Disney has at creating a great streaming experience, but now I'm not so sure.
I've used it a bit with love2d for game prototypes. I love it. It has my favorite syntax of probably any language. The community/ecosystem is certainly lacking but growing all the time. It still needs a bit of work to simplify debugging with some kind of sourcemap functionality. And it is extremely fun, especially in combination with love2d.
That's a cool script. I will definitely try that. Augmenting commits by doing partial commits then fixing with "git rebase -i" and squashing with "fixup" takes so much time and mental effort just to not make a mistake.

It still doesn't solve how to disentangle changes that have become interdependent. For that you have to concentrate on committing atomically and planning ahead a lot.
Ask HN: How common are international (Unicode) email addresses in the wild?
I'm guessing the answer is "not at all"?

Just playing around with setting up a new site from scratch here and I noticed that international email validation is not present in input type=email html forms nor is it in the filter_var php email validation function.

Not a single international email listed on Wikipedia's page [0] validates.

And in fact, a few of the non international ones do not validate either. Mainly the ones with double quotes in the username.

[0] https://en.wikipedia.org/wiki/International_email#Email_addresses
Show HN: A hyper-local messaging app that opens a chat room at any map location
I've often wondered if well implemented shadowban works.