skysight-inc/HackerNews huggingface dataset:
Hi, I decided to get back into C++ by making a project with a clear criteria. This project uses some C++17 features like structured binding so a modern-ish compiler is required.

This is my first Show HN post, so feedback and code review is more than welcome!
For the former, I realize that's how it's done now, but there's nothing forcing it to stay that way.

For the latter issue, as explained above, can't they just implement a replacement __eq__ only for OrderedDict, and still re-use the new dict implementation?

Similarly, any subtle difference can be shimmed on top of the new implementation inside Python, no?
when you are diffing the serialized output?
that's because tensorflow is advertisement for Google and while it's technically open-source, it doesn't stand for any kind of community-project, it's all there to show off (and ingrain in its users) the way Google wants things to Go (just look at the byzantine Bazel-build-processes - tensorflow taking hours to build and pytorch about 10minutes...).
They've literally started adding features for iPhones to do just the opposite of what you claim, optimizing charging based on your charging habits.

https://support.apple.com/en-us/HT210512
You're right - the handles just break off instead. :shrug:
KFC ‘hacking’ Spotify Premium is an arrogant middle finger to all of us
> he was very disappointed because Rust version was twice as fast than the C version which was hand-optimised by pulling off all the tricks he knew to make it perform well.

Why disappointed? It just highlights the quality of Rust's approach.
They don't eat the radioactive material. They eat the radiation. I don't think this helps disposal.
This talk from MicroConf discusses a similar idea and the origins of the 1000 true fans allegory: https://youtu.be/otbnC2zE2rw?t=273
This funig does not diggest the radioactive material. It diggest the rays produced by radioactive material decaying. The radioation emitted is similar to light for a plant for this fungi.
If this fungi diggests radioactive material, my guess would be, that it would die- surrounded by its decendants, who would fare pretty well in the sunshine of their spore creator.
> fairly meaningless

Plants photosynthesise visible light. These fungi “use the pigment melanin to convert gamma radiation into chemical energy for growth” [1].

That’s a meaningful difference.

[1] https://en.m.wikipedia.org/wiki/Radiotrophic_fungus
I'd love to hear what you think is even close to performance/features per dollar.
Why I Still Don’t Contribute to Open Source (2011)
Dockerizing a Ruby on Rails Application
Should we take advertising for granted? A few years ago Hacker News had this article which says 2x happier customers means 2x less money on marketing.

https://www.candyjapan.com/behind-the-scenes/twice-as-happy-...
No, not really. They're discussing windows "processor groups" which seem to be arbitrarily created for chips with 64 or more SMT threads.

That's why i'm wondering if 2-NPS or 4-NPS is available with TR3, and what impact it would have.
> if you have a 90-minute megacommute a nice car is no longer a luxury, it's a necessity.

What's wrong with a 90 minute commute in an old Corolla?
So you're saying, then, that it's some sort of cowabunga lifestyle?
As you gain more experience in software development, you'll look back at this post and laugh.
The traffic break is usually used to scan the road for debris, or to create an opening for emergency services down the road to stage without having to completely shut the road down. Not typically used for flow management - having driven daily in SD, LA, and the Bay Area, I personally see it maybe once every 4-5 years.
> However, I think moving LA towards higher density development (similar to a New York, London, Tokyo, Berlin) is the correct approach.

And how do you suppose LA does that? LA isn't a centralized city. Relatively little of it's business and traffic is going to DTLA specifically. People are going to Pasadena, Santa Monica, Culver City, Encino, Sherman Oaks, West Hollywood, etc and they're all coming from various places (SGV, South LA, the Valley). All higher density development would do is exacerbate the issue, we need the public infrastructure to catch up so it can handle higher densities.
Try NixOS. Declarative specification of your whole system. Super easy to maintain.
Another HUGE part of this is if you are going to sell your Tesla to a third party, you cannot guarantee the feature set they will get. So, if you pay $8,000 for auto pilot etc. you should not expect to recoup a dime of that money when you sell the car to a buyer who has read this story.
Jalopnik has been shitting on Tesla and the EV industry for years. This article is 100% sensationalized for the clicks and benefit of their owners.
Buses don't do well on suburban roads, they can't make the corners and clearance isn't always there. There's also little room for stops on many two-lane streets. So buses are limited to main multi-lane avenues. For most cities in Southern California in order to just get on a bus is a long walk from inside a big housing tract.

Once in LA itself the buses have the same problem of not being able to really drive on the smaller side streets so they're limited to the big avenues. That makes them slightly better than LA's trains but still a pain for a majority of riders. LA doesn't have the space in most places for dedicated bus lanes with above-grade platforms.

Note that LA has lots of bus lines but commuting on them is tedious and slow. Getting where you need to go usually requires several transfers then travel on foot to your actual destination. For most commutes it takes at least as long as driving.
The title of the post is misleading: it means "ordered by insertion order" (not sorted).

Previously it was unpredictable, and that's why collections have OrderedDict; which makes sense instead of trusting an implementation detail of CPython from 3.6.

Is not mentioned in the docs: https://docs.python.org/3/library/stdtypes.html#mapping-type...

EDIT: but the behaviour is documented in OrderedDict itself! https://docs.python.org/3/library/collections.html?highlight...

Interesting!
> That's heavy

Almost every month there are security patches for "critical" problems. Just skim throught the blog pages. This is Jan 2020 for example: https://source.android.com/security/bulletin/2020-01-01

Consider this: if I remember correctly somebody on HN was saying that in these days the average time from releasing a patch and exploit found in the wild is 4 days.

Consider that the patches hit the open source code a lot before they are deployed.

Consider that beside Google, any other Android phone manufacturer take around a month before releasing the patches even on current models.

The situation has no easy solutions.
I can see where overt sexualization could be a distraction... like dressed as a model or something...esp when I was younger.

Girl next door, or soccer mom might less intimidating as well as the MIL for social anxiety types...

A lot of geeks have social anxiety, and are like Raj from big bang theory around the opposite sex -though I think you grow out of it when you're in your 30's esp if married and have to live with a woman.

Also dressing like a model could have an air of elitism or superiority if they're wearing like something that cost > $2k obviously.

So, I could see that also being a hinderance, people like to deal with people similar to them, or at least I could see it easier to build a rapport.

That probably goes both ways though regardless of sex. Like a car salesman in a normal suit with a mickey mouse watch or one in something a boy band artist would wear with an expensive rolex lol.
>People don't use buses because they're seen as for they poor. They're seen that way because you'd have to be desperate to use them. You'd have to be desperate because they don't get anywhere or, if they do, never in a timely manner.

Very true. There was an aphorism from (I think) the Mayor of Bogota who said something like "I'll consider the city prosperous not when everyone has their own car, but one where even the rich will happily take the train."
> The transit system is unreliable, slow and has low coverage. The only way to fix that is more dedicated Point-to-Point (the orange line)/more rapid lines + higher light rail coverage.

And the fix will have to be done in a very forward thinking way without the pre-existing usage to easily justify it. If buses or mass transit in general have a bad reputation, it's going to take a long period of sustained good & convenient service for people to start to change their attitudes and habits.

> Most people I know would rather ride the train.

One of the nice things about trains is that they're more regular and predictable than many other forms of mass transit. The large, fixed infrastructure investment discourages too much disruptive change once it's built.
array_values($arr)[2];
Most of the article is behind a paywall so I couldn't read the whole thing. I hate the argument I often hear that "more lanes were added, time spent in traffic hasn't changed." As long as ridership is up, throughput increased while latency stayed the same.

A public transit system takes decades of investment to see fruition. This really clicked for me when I was in London and saw a sign saying a transit stop was closed for the next 3 years. That has to be detrimental for the businesses, people renting, and real estate owners who were established there. A business lease averages 3-5 years. So you'd need zoning laws to change, real estate to be built, a business owner willing to commit to 3-5 years, and foot traffic and commerce.

I can't imagine any infrastructure project that would improve traffic--only a recession.
How the Nike Vaporfly War Was Lost
The source is known to be dubious, are we really still surprised at the clickbait article title and lack of actual research?
I don't understand what point you are trying to make.
I'm not sure where LoC came from, since we're talking about minified file size.
Interestingly enough here it was kinda but kinda not the other way around: historically PHP used a closed-addressing hash map and threaded a doubly linked list through it to maintain the insertion order.

But the dict TFA talks about doesn't use a doubly linked list, or closed addressing, its ordering is a side-effect of its implementation but not originally a core goal (memory saving and iteration speed were). It'd probably been proposed by others before but it came to wider attention after Raymond Hettinger (a core dev) proposed it a few years back[0]. PHP actually released it first[1], closely followed by pypy[2]. CPython only got around to it some time later[3]

[0] https://mail.python.org/pipermail/python-dev/2012-December/1...

[1] https://nikic.github.io/2014/12/22/PHPs-new-hashtable-implem...

[2] https://morepypy.blogspot.com/2015/01/faster-more-memory-eff...

[3] https://docs.python.org/3/whatsnew/3.6.html?highlight=3.6#wh...
Why did the timestamps on this article and all of its comments change?
We can’t out monopoly China and it’s absurd to try.
Sure, hate and toxicity themselves should be called out. But that's not what's happening here, and not what GP comment was referring to. It doesn't make any sense to throw out the baby of legitimate criticism with the bathwater of toxicity.
I think humanity can handle (adapt to) the combo of forests burning, ocean acidification, and thawing tundra. At great cost, measured in lives, gold, and lost opportunities, of course.

Until recently I considered the "clathrate gun" to be an extermination event. The earth hasn't had those level of CO2 and methane (in the air) since the Eocene (~2000 CO2 ppm). It's hard to imagine industry and agriculture functioning in that context.

But perhaps humans are more resilient. There's growing evidence validating the Young Dryas theory, where the global temps plunged and then spiked 1000 years later. Somehow humans survived, even though our fledgeling civilization was reset.
Well, there were a couple that I remember.

1) programming is more like an art than a science, and so should not be regulated like engineering

2) the capital/labor requirements for programming are minimal - basically anyone could do it - so we should not worry about trying to license something that people could (and do) do at home.

3) there's no agreement about what would be required to get a license.

4) free software would die

Of course, some of these really do not hold up to close inspection. It's true that there is an "art" to programming, but not much more than there is in architecture for example, and there's no reason you couldn't require a license for cases where you do work for others rather than yourself. Since the 90s, it's become a _little_ more clear what the components of a s/w dev license might be, but perhaps still not enough to really pin it down. And yes, it would probably kill the free software world.
ICE Is Using Location Data from Games and Apps to Track and Arrest Immigrants
It might be. RISC-V is looking into this as well.
In meantime, you can try Wasm3 interpreter, which can run wasm bytecode on all sorts of things.
Check out this demo: https://github.com/vshymanskyy/Wasm3_RGB_Lamp
Ok, we've downgraded 'its' to 'an' in the title above.
Have you looked jobs boards like Oxford Knight?

I often see cash compensation >300k on there.

Here's one for precisely 150k right now https://oxfordknight.co.uk/jobs/big-data-engineer/.

These aren’t junior jobs, and they often require you to be in central London so your money won’t go as far, but these jobs do exist.
It was proposed by Raymond Hettinger, but was actually first implemented by PHP and Pypy.
Another signal that we will have 4 more years of Trump.
That's some data I'd love to see.
32 1u servers all connected with fiber or 10gig vs 32 VMs on the same host vs 32 k8s pods on the same node. I'm wondering if the same test would scale from 4 hosts/VMs/pods

I don't even think there's a benchmark out there for such a test.
While most of us nerds may be geeking out at the 64 Core CPU all running 3.4Ghz+ priced at $4K and beating the Intel $20K counterpart [0], The reality is that the market for these seems to be very small. If we look at recent AMD [1] and Intel [2] results, it is clear AMD isn't gaining much. 70% of the PC market are Laptops, and majority of the 30% Desktop market are Business uses which generally prefer Intel. The Server market is extremely slow because of long term contract and other reason.

I just wish they could better market themselves to CIO / CTO / CEO rather than prosumer, enthusiast market.

Or they could try and convince Apple to use it on Mac, I am very certain the rest will follow.

[0] https://www.phoronix.com/scan.php?page=article&item=3990x-th...

[1] https://www.anandtech.com/show/15445/amds-fy2019-financial-r...

[2] https://www.anandtech.com/show/15433/intel-q4-fy-2019-result...
The disclosure statement needs to clarify any changes between the sticker and reality, and they showed that it did not indicate the removal of those features.
But how do you define biggest? To me this is a big weakness that not only applies to work but also other aspects of life. We don’t have a clear ranking system for levels of weakness, so I can only pick one that’s important to me. I don’t think that’s dishonest.
> Imagine if you return a MacBook to Apple. As part of refurbishing it, they disable half the RAM (make up a reason, it's broken or whatever). And then sell it to someone described as in its current state.

This is more like you bought a MacBook from Apple, which had 8GB of RAM, but when you downloaded a software update, half the RAM was disabled. Then when you complained, Apple said "Oops, we shouldn't have sold it to you with 8GB."
I didn't know my Lisp code could be so cheerful.

Given how you come up with mood, I wonder if the type of music one generally gets with their code says anything about their psychological makeup.
Orange County and the IE are some of the worst public transit in the country. LA's trains/ Metrolink are actually an improvement over sitting on the 10 by quite a bit. The accessibility to the metrolink and the trains have a lot to be desired though in the OC and the IE...
And a first line using this technology is also already being built! :-)
https://en.m.wikipedia.org/wiki/Ch%C5%AB%C5%8D_Shinkansen
It's okay. A few years ago, I was in the same boat. Even if I completely believed that eating cocaine for breakfast is somehow beneficial for your health, that still would not be on the same level of how wrong was my prejudice against Lisp. Oh boy, I was so wrong about Clojure.

I was working for a startup, building a .Net project with Angular 1.x. And I was on a failing trajectory - code was full of holes, I was struggling to finish things on time, I was stressed, I started to hate things for no apparent reason. Finally, after years of writing software, I just wanted to quit and learn something else - woodworking, photography, cooking, landscape design - whatever. Deep down, I knew - it was not due to the technology choice. The same project could've been re-written in other languages I knew and still be as frustrating.

Long story short - I started learning Haskell. That improved my coding skills tremendously. But there was some hump I couldn't get over - Haskell was still extremely difficult, I was not even near to the level of being able to write production-ready Haskell code. Besides, I wanted to write web apps. And Haskell's options were not great at the time. After using Typescript, Coffeescript, LiveScript, IcedCoffescript, Gorillascript, Traceur, Babel, Fay, Haste, GHCJS, I finally decided to try Clojurescript. And suddenly, everything I've struggled with Haskell started making more sense. And unlike Haskell, Clojure turned out to be a much more pragmatic choice - I am more productive today than I ever was before. Even more than I was with Python, Ruby, or Go. Today, even if I have to write something in another language, I would first prototype it in Clojure and then translate it to another language. It may sound stupid, but that is the fastest way for me to build things.

Learning Clojure opened a whole new world for me. Logic programming, generative testing, dependent types, concurrency and parallelism, distributed and numerical computing, probability, etc. I never knew all these things are approachable even by a lazy and simpleminded idiot like me.

Learning Clojure improved my work, my relationship, my confidence, my health.

The only regret I have - I carried my unfounded prejudice for years, but the door was there all the time, I kept ignoring it. I just needed to walk through that doorstep.

Don't hate parentheses of Lisp - they may look ugly to you today, but trust me, there's a lot of beauty and elegance that you may not be seeing.
The people buying the goods may be happy with the exchange, but it's inauthentic/dishonest. I don't think they'd be as happy buying "Lookalike cheap boardshorts from husk of surf company", as evidenced by the fact that they stop buying that brand and Hurley gets sold by Nike to a brand management company and cuts all their sponsored athletes.

Furthermore, it makes it difficult for genuine participants to cut through the marketing BS. Want to buy a lightweight backpack for some day hikes? Go to Walmart and you'll see rows on rows of "rugged" bags with 'biner accessory clips, "super-strong" zippers and "comfort straps". But don't try to take those up a mountain, you'll end up with gear on the ground.

Informed consumers make capitalism work efficiently. This pattern abuses consumer trust for a temporarily profitable scheme. That's what I'd call a dark pattern.
You can get that same kind of experience elsewhere. It doesn't have to come from working in a large multinational company.

Now, working in a large multinational company would help ensure you have that kind of experience, but that's not your only option.
To allow people to focus on meaningful pursuits rather than work largely superfluous jobs to survive?

Yeah, sounds really trivial.
Some instances of software truly need the Internet to run, E.G. Facebook or GTA Online. Many software tools don't need that connection to run, but are heavily embedded with connection dependencies like a calculator app (stable technology). Many of these apps and devices become totally useless if an active connection is not available. This is a bad move companies make all the time to encourage our dependence. The same goes for Hardware -- Do you really need to send a Tweet from your refrigerator?

Identifying the frivolous items that do not need to be Internet reliant and avoiding them altogether might be the key to sanity, unless you want GE logging each time you open your refrigerator door and spying on what you buy and store in it.

This discussion ties into so many issues faced in modern day society. Technology should serve in making life easier, less expensive, and more efficient for all of us, not in manipulating our emotions, costing more over time, and in tracking our decisions and movements.
We'll all die. It's not so terrifying as depressing. Clathrate gun means death for essentially everyone. Maybe Bezos and Musk are right to make off planet life temporarily viable. Modern society is based on relatively predictable large scale agriculture being able to redistribute goods (transportation infra, tech to support distribution). We simply, as a society, are not capable of adapting to those circumstances. Most humans would die and the survivors would not enjoy a modern lifestyle.
This is a refreshing update for those of us that like having code which will always act in the same way across multiple invocations.

Now, if only Lua could follow the same path with their “tables” (“tables” is what Lua programmers call their form of Python’s “dictionaries” and Perl’s “hashes”).

I just spent eight hours earlier this week debugging Lua code which would run differently on different invocations of the same code.

The standard way to iterate in a table with Lua is like this:

for key, value in pairs(foo) do

One problem: The order we get elements from the table “foo” is undefined, and it can change between different invocations of the same Lua code, even if the elements were put in the table in the same order. In order to fix things so that we can iterate a table in a consistent manner, this is my fix (public domain [1], if those who want to copy and paste it):

function sorted_table_keys(t)
local a = {}
local b = 1
for k,_ in pairs(t) do -- pairs() use OK; will sort
a[b] = k
b = b + 1
end
table.sort(a, function(y,z) return tostring(y) < tostring(z) end)
return a
end

Then we iterate the table like this:

for _, key in ipairs(sorted_table_keys(foo)) do
local value = foo[key]

(In Lua, two dashes indicates a comment.)

Note that this code will not always sort in the same order all tables. If we have a table with the keys 1 (as a number) and "1" (as a string), iteration order is still undefined.

The code is open source, and is a procedural (“random”) map generator for Doom written mainly by Andrew Apted which I have added some features and fixed some bugs with. It’s here: https://github.com/samboy/ObHack and the issue is here: https://github.com/samboy/ObHack/issues/4

[1] The project I added this code to is GPL, but this function, which I wrote entirely by myself, is one I am donating to the public domain.
The new-ish ordered dictionary is actually faster. It is also completely backward compatible for any but the most contrived example.

Now wasting computation on randomizing... that is a problem.
> the team’s demonstration device can achieve an overall efficiency of 385 percent in converting the energy of sunlight into the energy of water evaporation.

I need an explanation with pictures for that, because it seems like the author is using ‘efficiency’ incorrectly.
The license is attached to the car. According to the article, Tesla claims the car didn't have a license (but the software activated) when being sold to the dealer.