skysight-inc/HackerNews huggingface dataset:
You're right (sorry) wow so worst case 800kg of co2 / tonne. And that's excluding the return journey which is typically empty. So could well be 1:1!

Airfreight is 500g /tonne/km so 10 tonnes of co2 / tonne of freight.

Guess that's why co2 calculators always ask about flying.
Patients Had Sickle-Cell Disease. Experimental Therapies Might Have Cured Them
The Disney kids TV shows are on Netflix right now, yes. There are a lot of those shows that appeal to toddlers up to the tween age ranges. They have a very large amount of content besides just movies
This technique (distance field sphere tracing) was popularized in a big way on the community https://www.shadertoy.com/
You can see an image of his later iterations later in the article [1]. It does look like there isn't much improvement between them, except what a perfectionist might find to tinker with.

[1] https://thehustle.co/wp-content/uploads/2019/01/protos.png
Great article about the HTTP history!

Only one thing I would change: The article mentions the term "syntax" very often, but I don't it is the best choice. When I read syntax, I think about something human-readable, e.g. about programming language syntax. What is really meant is "wire-level encoding" or "serialization format". I think [wire-level] encoding might be the most common used term for protocols.
Yeah... I mean, when this switch occurred (away from having a wide selection of classics towards being more of a cable channel with their own custom content) I canceled my subscription.

I switched to amazon video... I can't say I'm always thrilled with the video quality, but amazon video usually has what I want to watch, and they make watching it low effort (They usually charge me a few dollars to watch it, but if I'm going to take two hours to watch something, a few dollars is the least of the cost.)

I mean, one could argue that I'd be better served by the netflix disk service, but I can't reliably predict what I'm going to want to watch ahead, and I don't have a convenient device for watching disks in the gym. (I know they exist, and I used to have one. But the kindle fire is a lot more convenient.)
Found a copy on my web server and linked above.
Org-mode is a really powerful tool for todos in the emacs text editor. It's totally convoluted though and hard to get in to.

It allows for quick sorting, schedules, deadlines and importance. You can than display an calendar/agenda view or sort by importance.

Mushing all you can get together to do the hierarchy sounds awesome. So you basically can do the GTD-Method automatically :). Org-mode does not do that (but who knows, usually there is some plugin doing it :) )

Mildly important, can be done right here and little effort: do next. Very important, can't be done here, not urgent: later. Right?
CERN is an exception; they are famously a C++ shop. I really really don’t like C++; nearly anything else is preferable to me. Fortran is simple and math-oriented; C++ is horribly complicated and system programming oriented.
I don't see how they could pursue anything but that considering how they probably won't be able to license the shows of other streaming services.
Ask HN: What is your home audio setup?
Looking to invest in a solid two channel audio set up for streaming music and playing records. I’m interested in maximizing quality to value, but am a little overwhelmed with info doing research. What’s your setup/recommendations?
The tracing Python objects technique is very similar to how pytorch traces models to produces a graph representation that can be executed entirely in C++ for performance reasons.

The pytorch one is a little bit more general since it can trace arbitrary models + have custom high level operations that might not be supported by default. You just pass it a python method and an example input.

import torch
def foo(x, y):
return 2*x + y
traced_foo = torch.jit.trace(foo, (torch.rand(3), torch.rand(3)))

https://pytorch.org/docs/stable/jit.html#torch.jit.ScriptMod...
Not flexible enough for research (you still have to deal with the horrible TensorFlow API that's underneath at some point), but good if you just want to implement or use something that already exists. Not good for models in which graph changes dynamically. Actually "flexible" is probably not the right word. You can make it do what you want, but you will spend a lot longer and the result will likely be unreadable.

But a better question is, why bother with Keras at all, if PyTorch gives you a higher performance, more flexible, more "Pythonic" solution? And yes, did I mention performance? PyTorch blows the socks off anything TF based on most training and inference tasks.
I think the take-away isn't that his idea is pretty radical, but that he was 15 steps ahead of himself and that seemed to set himself up for failure.

Not sure if it's that the article was poorly written, but he didn't seem to have any early small wins to get him to the next big step.

All great inventors (except maybe for Dyson), seemed to have all these small wins that would help leverage them to the next chunk. If he needs investment, he should have started with something early on that would win investors trust so that eventually he could call on his network to tackle his crazy ideas.
This is wildly inaccurate. There are at least a few very well known game publishers such as Double Fine that have their games on itch.io. In addition, there are more than a few critically acclaimed indie titles such as Celeste, Crosscode, Where the Water Tastes Like Wine, and others.

While I agree that I would personally prefer a more curated view, itch.io is intentionally pursuing an open marketplace and that means developers of all skills and kinds and all types of projects are represented.
They use the Fortran 90 version I suppose. I should've said that I'm a theorist though and HPC is not really an issue for us (And if I do want something to be fast I'd use C.)
They do now. Add a bunch of noise traders, and maybe not.
I'm skeptical that classes make prototypal inheritance safe to ignore, because they're not a perfect abstraction. Opinion me, classes in Javascript do not act like classes in other langagues.

In particular, I still run into usage of `call` and `apply` on a regular basis.

class Foo {
constructor () { this.foo = 0; }
log () { return this.foo; }
}

(new Foo()).log.call({ foo: 2 });

I guess I can explain the above without prototype, but it's certainly weird behavior for a classical OOP language, and at the very least it's dancing around prototype-like behavior.

Or, much worse:

class Bar { constructor () { return new Foo(); } }

And you can say, "how often is a student ever going to run into that case", but part of being a student is experimenting with code. If an abstraction only holds as long as you never do something weird, then it's probably not a very good abstraction. In that case it's worth asking, "is it good language design to have a feature give surprising results as soon as you do something that's even slightly off of the beaten path?"
It doesn’t matter how much individual responsibility you take, you can still be betrayed. That’s what Facebook has done.
No it doesn't. FOSS had nothing to do with why ttys are the way they are.
I thought about that. It is a bit ad-hominemy but the argument stands. This is a longer version without the ad hominem. No proposed electricity solution with a 100,000 year risk assessment exists. All infrastructure related to power distribution and generation such as dams or existing transmission gear, the fundamental constructs of power consumption would be open to question from the plastic insulation on wires to the energy cost of digging cobalt to the ecological damage of dam construction and mining.

If a 100,000 year cost is applied to things the reductionist result is to promote a reduced societal load which demands de-population and inevitably less enemy eating and since society is not on a path to either it's probably legislated or enforced. It's the Indian emergency and forced sterilization.
Show HN: Breaking News
I've never thought of ES5 as simple, consistent, and easy to read. There are plenty of features that many devs wouldn't recognize (ie, "the bad parts"). They've fallen out of vogue because there are better ways to do things, but they're still part of the language. I, too, would love a simplification of the language, but as you mention, backwards compat is necessary.

And what does `case` not do that you want it to? Fall-through? Re: forced destructuring, if you want to switch on a value, why not just wrap it in an object, eg, `case({ someVal })`? It's not perfect, but I'd prefer consistently using `case` to the confusion you call out re: `case` vs `switch`.
Distributed training is not a concern for someone who's just learning the ropes, I think you will agree.
I'd argue this is how HN hits a glass ceiling. Somehow the moderators of HN think the community is mature enough to have meaningful discussions, but completely immature and unable to handle topics that the mods don't consider kosher.

There's no other place online that would actually attempt an honest discussion about "non-kosher" topics, and the mods are killing that chance by shadow banning
no it applies when they are in the EU, or if the company that controls processes the data is in the EU.
iPhone with AirPods. Samsung speakers and woofer for TV.
Very cool! I started making a very unpolished game based on a similar sort of map design a few months ago for ludum dare -- caution that there are sounds on this link and no volume control: https://wcarss.ca/maze_of_sacrifice/
Which are not free for the most part, right?

As of 2019, the speed argument is mostly academic though. IMO. Few people do cosmo simulations on a daily basis to really care about this.
I wish more languages follow the sense of being fun to code like ruby.

[1, 2, 3] - [1, 3]
#Yields [2]

The code is readable, intuitive and short yet many languages never have this simplicity.

JS example.
https://stackoverflow.com/questions/1187518/how-to-get-the-d...
Its annoying but the "check and then attempt" pattern just doesn't cut it. There are going to be unexpected issues so you end up always having to handle exceptions anyway.
Git can show you the diff of any commit as well, though I guess maybe the interactivity you mentioned is important.

Anyhow, with just git.

Diff of most recent commit:

git show HEAD

Diff of preceding commit:

git show HEAD^

Diff of commit before that again

git show HEAD^^

Of course you don’t want to type ^ 200 times. Fortunately you don’t have to. Diff of commit three steps back before most recent:

git show HEAD~3

Or you can look at the log first

git log

And find a specific commit and then use the first few characters of the id of that commit, e.g.

git show af4c

And of course I would be remiss to not mention

git diff

And

git diff --cached

These two show you unstaged and staged changes before you commit. I use these commands all the time. So much that they are two of the commands I have created very short two-letter aliases for in my .bashrc

alias di="git diff --cached"
alias dp="git diff"
This is not a post with CS folks talking about Fortran--that is not TACC's role.

Despite the enormous amount of snark directed Fortran's way, practitioners in HPC still use it, and Python cannot seriously be discussed in the same context.
Ask HN: Does the world need another RSS aggregator?
I spent a lot of time on HN and a lot of you seem to miss the fact that there aren't very many quality RSS/feed aggregators in the world.

There are a few out there but there still seems to be a gap in the market.

I'm on of the original inventors of RSS. I now run a company named Datastreamer which indexes about a petabyte of social media data.

As a side project I'm working on Polar which is a document manager based on Electron which supports PDF and capturing web pages.

Many of our users have asked for RSS but I'm worried that it might be feature creep.

Would love to hear your thoughts!
i somehow expected news about stuff that is breaking.
The URL is currently broken because it's doubled.

https://www.nytimes.com/2019/01/25/opinion/sunday/steve-jobs... works
The modern smart meters are quite accurate, much more accurate than the mechanical ones, usually to the ratepayer’s chagrin. The modern meters will pick up an induction spike from a noisy motor such as in an inefficient refrigerator or fan, where the older generation would not. How accurate does it need to be?
Yes but how many of the people who these slides were designed for are people doing cosmos simulations? That's the relevant quantity. It's especially funny because the author's area of research is in cosmos simulations. :-)
Do you like your Samsung speakers? Bookshelf or tower?I’m more interested in music than TV.
I doubt that. Keeping subscription cost low means people will not view it as a huge expense and are much more likely to keep the subscription rather than cancel it, even if they use it very little.

There's a line though, where it moves on over into the high-enough-to-notice expense category, where people will be much more inclined to cancel if they're not using it significantly. If Netflix had cost me $20 or more a month, I would have cancelled it long ago, and only subscribe for a month a year to binge.

I'm betting Netflix want to stay in that first category for as long as they can.
Thanks.
I admit what made me chose TF is the support from Google which guarantees somehow that the tool will stick around for some time. And the numbers of contributors to the library. Where do you see PyTorch in the near future?
Also, here is the link to Polar:

https://getpolarized.io/

Here's the original HN thread when we announced Polar:

https://news.ycombinator.com/item?id=18219960

It's come a long way since our original launch!

One of the key features is that it supports capturing web pages and handles HTML very well which is why it would lend itself to RSS indexing.
Where Next For Interactive Stories?
So the people who posted research on stuxnet were engaging in an act of war? That waters down the phrase to the point of meaninglessness.
Galaxy Without Dark Matter Found, Puzzling Astronomers
That's a common trick in PC 4k intros.

Despite the apparent variety, most 4k intros rely on a single effect, maybe two. There isn't enough space for more. The only things that change are the parameters.

Interestingly, the technique used here is signed distance field raymarching. A technique that is used by maybe 90% of all 4k intros today.

So basically, write the code in GLSL instead of C, add music, play a bit with the parameters, use a good exe packer like crinkler and you have a nice 4k intro.
Thanks for the info, had a quick look but couldn't work out which were Disney.

So it really becomes a question of whether people are buying Netflix just for their kids content and will cancel one for t'other if Disney pull all their content, or whether they're happy to buy both.

If they only want to buy one, then maybe they'll switch.

If they're happy with both, then it actually helps Netflix bottom line as they no longer have to license expensive movies from Disney.

It's a balancing equation between whether the people they lose outweigh the licensing costs for Disney. Which is exactly the same situation they've always been in anyway competing with traditional cable offerings.

I see a challenge, but not a considerable Netflix killer like some people try to make out.
Also mention more about the themes and the level of customization I can do on my blog. That would be super helpful. Keep up the good work, you awesome creator.
I’m very interested, but I’ll need a way to get tasks in there using Siri or something similar.
Show HN: Find high return on investment real estate deals
We'd like to show you CAPROI [1], a real estate search platform that has the CAP rate of every property in the US pre-calculated. By using the CAP filter you can set your desired CAP rate and only look at properties that would have the specified return on investment. So when an investor is looking to invest they can target the properties with highest returns. We started a month ago or so and collected about 100MM listings as well as rental data, crime statistics, neighborhood data, surrounding stores, unemployment rates, population growth and every other piece of publicly available that we could think of. We'd appreciated your thoughts and don't hesitate to reach out to me directly s@caproi.com

https://caproi.com
Where I leave the local chess club is actually affiliated to U3A. Participation to both lectures and tournaments is tied to an U3A membership and the meetings are held in their classrooms, and it attracts both expert players and retired people looking for a new hobby.
The "Get Started" button doesn't appear to do anything.
Its not logical, when making a new post, to get all the content of all the previous posts as starting point.
Right, and it'd be pretty crazy to trawl through all results just to come up with an accurate count; would be a huge waste of energy (even leaving costs aside). But I do think their predictions have gotten a lot worse in the last few years. I pretty often have searches where the first page of results indicates there's millions of records, and the second page basically has one or two; and that's a bad experience.
That doesn't seem super intuitive to me. I assume that

[1, 2, 3] + [1] == [1, 2, 3, 1]

but then if I subtract [1] again, does it take away the first 1, or the last 1?

It turns out it removes both of them. So subtracting a list is not the inverse of adding a list. In Python, there is the distinction between lists and sets, and while both support the + operator, only sets support the - operator for this reason.
That is not a measure of moral good or bad. It sucks that it doesn't matter.
Can't find anywhere in Lyon airport to book this service;

https://www.lyonaeroports.com/en/parkings-airport/car-parks-...

Also they seem to use ectorparking.com at Lyon, are you affiliated with Ector?
I think I'd probably stick with writefreely just because it's open source; as far as I can see from the page, Notepin isn't.
I missed the per km at first as well.

Air freight is not clean indeed. Which leads to a kind of ironic situation here in Norway. Salmon export is hailed as one of the primary income sources once the oil is gone, yet significant portion of the salmon is exported via air to Asian markets. Not exactly a very green change...
The problem with this is that "absolutely anybody in any country" can be a future potential tax payer, there are way more people willing to migrate into the US than there is economic capacity to integrate them all. Not to say that an excessive rate of migration, especially concentrated to certain hotspots, can have other political backlashes - see the Trump era.

A financial threshold is a nice way to limit that influx to manageable numbers, while guaranteeing they can mostly take care of themselves and become productive taxpayers and without exposing them to employer exploitation. The actual amount is debatable of course, it could be 2x the national average salary, 1x, 3x... or it could be dynamically allocated to fulfill an intake quota.
We use a deployment tool (octopus) that keeps track of when each version is released.

We also wrote a simple hubot script that shows the “diff” on GitHub comparing the changes between the currently deployed version and master, handy to review what’s going to be rolled out at a glance.
That's really cool, in part because it's comforting to hear. :-) Sometimes I feel a bit guilty about how much variety can be had from abusing a single distance function + various texture maps, camera angles and focal settings, environment colors, etc.
Look into Writefreely (or write.as for a hosted instance). You might end up liking it or wanting to contribute: https://github.com/writeas/writefreely
They do have a third option: unobtrusive ads.
Bout to see a movie with my wife so here's just a short description for now.

SRP. Advice everyone can agree on, but not very actionable. I've seen a dev make a change to conform to SRP while another dev argued the change was bad because it violated SRP.

Open/closed principle if you look at it's origin this is just terrible advice. So everyone tortures this advice until it says something different

Liskov substitution principle - sure, but as a top 5 most important idea in oop

Interface segregation principle - sure

Dependencies inversion principle - I don't think abstractions are always better than concrete representations. In fact a lot of times they're worse. Humans are trouble at learning abstractions. So bad in fact they can learn abstractions from the concrete so much easier than from abstractions. And this is a huge cost to readability, and it's harder to get correct.
I really don’t see this criticism. Yes, all of these features have existed in some form in prior languages. But I wouldn’t say that this makes JS “look like” Haskell.
As far as first impressions go, I would much rather see all the noun entities in a system abstracted into classes; and verbs implemented as methods.

Well abstracted, fluent code is self describing.

new Invoice().withParam(param).generate().deliver( person );
This is so true it hurts.

It's like you're a mirror of myself:

Price going up? mmm... I don't know if I want to pay that...

Wait...

What? Decent new content?

Well, guess I won't unsubscribe. Still cheaper than cable!!!
Is that really a HTTP/[2|3] problem, or a problem of those servers?

As far as I understood the HTTP/2 spec (have read this, but not HTTP/3), it is allowed for servers to send an arbitrary amount of informational headers (incl. 100-continue) before sending the actual headers and response body. So everything to handle these kinds of requests should be in place.

If the server ignores the "Expect: 100-continue" there is obviously nothing the other side can do, but that's the same in HTTP/1.1.

What I am a bit unsure about is actually how things like "transfer-encoding: chunked" or the various "connection" headers are supposed to be handled in servers/clients/libraries that are supposed to handle HTTP/1.1 and HTTP/2. Is this supposed to be automatically set on the lower level, depending on the actual protocol type. And the application level HTTP client or handler on server just sees the body as a stream? I'm not sure if that happens currently in common libraries, or whether they would forward these things if a client is connected via HTTP/1.1 and not when it's connected via HTTP/2.
On mobile the learn more menu seems to be cut off at the bottom. On iphone at least.
In the Future, Video Games Will Care About You
I’m a noob on a new team with git (well versed on TFS though) thank you for posting this.
Because bugs per line increase when functions get longer than one screen fold.

As well as reducing the conceptual length of your function, bundling up part of it in another function called only once makes a statement, possibly even some guarantees about which variables are and aren't modified by the sub function.

It may also decrease the number of variables used in your function and hence the risk of misusing one.
> Surprisingly to many, among Europeans only Romanian, Bulgarian and Italian passengers are unhappier with their trains.

Sure Germans are unhappy with their trains but that is more a sign of their high standards than the quality of their train services.

It is true that in rankings that compare the delay statistics of train services in various European countries Germany is always in the lower part of the list. These statistics are usually based on the percentage of trains being late in a particular country. The threshold for being considered late is 15 minutes in all EU countries except Germany (6 minutes) and Portugal (5 minutes). Again, high standards, not low quality.
Professionals and Amateurs
I've worked at a lot of larger companies. Our managers we're almost never technical, or they were only developers for 1-2 years.
If by "similar to Medium" you mean "shows your users annoying popups if they're not logged in and doesn't actually do RSS so you can't get all your feeds in one place", then I certainly hope not :)