skysight-inc/HackerNews huggingface dataset:
Python is interpreted bytecode. This means that for every small instruction on the bytecode there's a round trip to the Python interpreter that has to execute that instruction. This is faster than parsing and interpreting at the same time, such as shells often do, but it's still a lot slower than JIT compilers.

Now, a just-in-time (JIT) compiler transforms the code into machine code at runtime. Usually from bytecode. Java, C# JavaScript all use this model predominantly these days. This takes a bit of work during runtime and you cannot afford too complicated optimizations that a C or C++ compiler would do, but it comes close (and for certain reasons is even better sometimes). So that's the main reason why JavaScript is faster than Python. Theres a Python JIT compiler, PyPy, that might close the gap, though. And for Python in particular there are also other options to improve speed somewhat, one of them involves converting the Python code to C. Not too idiomatic, usually, though.

As for Java and C#, that's a point where it can sometimes show that C# has been designed to be a high-level language that can drop down to low levels if needed. C# has pointers and the ability to control memory layout of your data, if you need it. This turns off a lot of niceties and safeties that the language usually offers (you also need the unsafe keyword, which has that name for a reason), but can improve speed. Newer versions of C# increasingly added other features that allow you to safely write code that performs predictably fast. But even value types and reified generics go a long way of making things faster by default than being required to always use classes and the heap.

Java on the other hand has few of those features where the develop is offered low-level control. It has one major advantage, though, in that its own JIT compiler is a lot more advanced and can do some crazy transformations and optimizations. One might argue that Java needs that much magic because you don't have much control at the language level to make things fast, so as far as performance goes between C# and Java this may be pretty much the tradeoff between complicated language and complicated JIT compiler.

As for which benchmark shows Java being faster than C# depends a bit on how the code was written, but recently .NET has become a lot better as well and popular multi-language benchmarks show C# often faster than Java.
Neither food nor oil actually make your point, since both are heavily subsidized by the US government.
There are plenty of parts of London (typically zone 3 and out) which is full of low rise single family homes. The transit links in most of these areas are good enough that you can easily get by without a car (even as a family, although of course it would be easier by car). At least by my definition these would be a "suburban area".
Apple needs to stop comparing iPad to PC
ISPs are highly regulated, as opposed to Cloudflare and Google. The only effect here is that Google closes another "loophole" in their view where web visit signals are send to another party (other than Google), and Cloudflare wanting their share of the cake as well. Has Mozilla disclosed what Cloudflare is paying them for being listed as default DoH provider?
Best Modern Linux ‘Init’ Systems (1992-2015)
Have you been tested for Gilbert's syndrome? They say it is a disease from natural selection from Malaria. All jaundice related conditions have a degree of protection against Malaria.
The problem is we need new housing units and the local governments usually make the construction process so difficult that it's becoming increasingly unprofitable unless you are a very large corporation. This makes it even more difficult, especially in the multifamily space.
Advertising executives point to five ways Google stifles business
I've actually had the opposite experience - it was easy enough to download/set up, and then it was just a matter of getting the letsencrypt daemon on the box to manage certs.

That said, I went in with pretty low expectations since it's a reference implementation - I think one of the great advantages of the open-source protocol is that anyone can design/build their own implementations with better UX on the sysadmin side. There are already projects in the works written in golang/rust, and I'm sure if the protocol takes off other languages will follow.

I do agree that the identity server piece is weird. I didn't set one of these up, so I haven't really looked into it (I don't have any 3rd party IDs connected to my matrix username, which from my cursory research is what the identity servers are for) but the philosophy behind them seems to go against the federation narrative the rest of the protocol is designed around. If anyone has done more research into this part of the protocol I'd love to be corrected on this point.
Nobody saw them under the sun, maybe aside from people signing up the research grants
Agreed if there were no other side effects.

However, since both NIMBY owners occupying their home and renters hate AirBnB, it's quick to imagine anti-airbnb legislation (like what SF already has) quickly passed if the tide turned.
For several years there were a series of "voyager left the solar system today" headlines, each using a different definition of the solar system boundary because very little is known about where it is.
I'd imagine Python is so slow in this benchmark because it doesn't have any kind of optimizing compiler. All the other languages are either compiled ahead of time or just-in-time compiled into more efficient machine code.

I wonder how PyPy would do on this benchmark...
This is the perfect example of broken telephone. (If you don't know the full story and fail to post any source)

The reason why they got the RICO.

"From 1969 to the end of 1987 the amount invested rose from $1.4 million to $273 million. Its limited partners saw their wealth grow at 18.2 percent annualized after fees. PNP had no losing years — and not even a losing quarter."

The regulators thought that it was a Ponzi scheme based off that information or did they...

"But most knowledgeable observers believed that the charges — filed under the Racketeer Influenced and Corrupt Organizations (RICO) Act — were also intended to get the Princeton Newport principals to testify against Michael Milken, the controversial “junk bond” trader who had upended Wall Street conventions and who had dealings with PNP."

The regulators thought that it was a Ponzi scheme, when in reality, they mastered the tax code and created losses via hedging, which was legal at the time.

"The resulting charges were related to trades that PNP had made to create losses that would offset corresponding gains that arose during the firm’s hedging maneuvers."

"The Princeton Newport attorney, Theodore Wells, a Harvard Law and Harvard Business School alumnus known for high-profile white collar criminal defense, argued that the trades were allowed under IRS regulations. They even had a former IRS commissioner, Donald Alexander, prepared to testify in their defense. The judge would not permit it."

>I don’t have a dog in this fight but Ed Thorpe has one of his funds liquidated via RICO.

First off, his name is Edward O. Thorp https://g.co/kgs/jfpjL1 not "Thorpe"

>Ed Thorpe has one of his funds liquidated via RICO.

Please post a source because almost all of the charges were overturned.

"Ed Thorp, who was not greatly affected by the criminal charges, was able to restart his hedge fund activity. In 2012 Thorp’s net worth was estimated at $800 million."

All of this information came from this source.

https://communitynews.org/2017/02/28/from-fat-cat-to-rackete...
This reinforces what I tell new devs: "Don't rest on your laurels". You have to always be learning new languages and technologies, developing new hobbies and interests. A friend of mine constantly trots out her masters degree; she works at a greenhouse and spends most of the time planting and weeding, she loves it and seems happy, but the fact that she earned the masters then stopped learning marketable skills scares me.
For present purposes the Newtonian approximation suffices, and in Newtonian gravity there are no black holes and no event horizons.
It took Eric Hessel's group eight years of hard work to do the measurement in electronic hydrogen. The experiments are completely different.
Try this one:
https://www.mcsweeneys.net/articles/choose-your-own-corporat...
Operation reWired: 281 suspected email scammers arrested around the world
NextDNS[1] is an alternative with customizable blocklist.

[1]: https://nextdns.io/
They were arguably employees before (and outside of CA) and unarguably employees under AB5. That’s why Uber is making this ridiculous claim that it’s not a transportation company: otherwise, its drivers are employees.
Found the Facebook employee
I would completely agree with that, but for some reason it isn't as politically do-able as this rent control legislation was.
sneering

mockery

cruel

distorted

non-constructive

You get all this from "make sure they're doing ok?".
> Cities in Texas and Tenesee happen to be conservative

I don't know anything about Tennessee, but cities in Texas are not conservative. See these maps of 2012 and 2016 election results by county:

https://www.chron.com/politics/election/local/article/Map-co...
> Their implementation is littered with uses of "unsafe" which means its almost impossible for the compiler to eliminate the bounds checks.

Does `unsafe` actually impede optimization in this way? I thought it just disabled certain type checks and error messages but didn't affect anything on the LLVM level.
Rockchip and Allwinner seem to be doing well
There were times during the netbook boom when ARM notebooks were a thing. And they kept being a thing for at least next 5 years, but they saw near no exposure in the West, mostly going to places like South Asia and Africa
It's still radioactive, just to a different group of people now and weaponized (see Mongo, Elastic, et al).

I also think GPL compliance is a looming major problem for organizations and most haven't realized it yet. We have seen a few folks try to monetize GPL compliance the last few years...netfilter, I'm looking at you.

And this is why many of us prefer open source software to free software.
I wonder whether you can fix this by using the positional tracking they developed for Augmented Reality (ARkit). If your device is moving, even a little, and the thing you are looking for is stationary, it should be possible to figure out exactly where it is.
Rent control is another form of pulling up the bridge behind you.
The concept you're referring to is localism and I really believe in it over globalism.
I don't like the privacy policy of the Xiaomi Mi Bands. But what I found out, is that there's an excellent firewall on Android called NetGuard, and it can block network traffic on a per-app basis. So I just block the Mi Fit app, and it doesn't seem to influence anything.
> Until suppression of building new units stops (by poor, helpless owners), this is the only recourse.

In the spirit of furious agreement, yes the best option would obviously be not to suppress construction.

Just because one interest group wants stupid things to happen that benefit them in the short term doesn't make it a good idea to go open season on stupid things. The goal should always be to improve the state of affairs; not to spread the pain around.

Everyone bar no-one needs institutions stuffed with people who make sensible long-term decisions. The best way to get that is to always pressure them in that direction. Bending to political expedience encourages people who make bad decisions; not a good strategy.
What makes you think they won't come back as bad or worse then before? That's what we did with antibiotics and we ended up with superbugs.
Nothing is impossible.
link to the arxiv paper: https://arxiv.org/abs/1909.04538
That is only true if you assume the housing market under rent control is otherwise efficient. In reality it is painfully inefficient. Scarcity due to rent control (due to existing tenants holding on to leases) allows landlords to price gouge on everything from open units to parking to laundry.

If you play that dynamic forward you end up in a situation where everyone is overpaying compared to a more fluid market, even those longer term tenants.
Atleast where i live, ebay offers the option to complete the sale of a product offline, and you're free to contact the seller and make a different deal on the product whichever way you like. Well, and sellers on ebay can still run their own store and advertise it on the product page (for which they are still fully responsible).

If Uber riders were able to pick the driver they wanted and drivers were able to design their own advertisement page the riders see as well as being able to negotiate with the rider directly without loosing the Uber's platform protection, I would agree.

The relationship between customer-seller is just much different than rider-ridee.
Reminded me of this:

https://theuserisdrunk.com/

Drive-thrus aren't the only things people use while they're drunk

There are probably people using your website or app while drunk. How does your user experience handle this?
Why not get off Upwork, set up a business with an identity beyond your individual self and go for business / corporate work?
If you get robo servers and robo cooks your kitchen janitorial needs go way down.

at this rate they will soon need robo customers.
It's an approximate solution with bounded unoptimality, I don't remember the exact bound off the top of my head.

Edit: it's 3/2 for Christofides' algorithm.
Native dynamic is bad speed but gives accurate solution. It's no good for more than 24 nodes or so.

Usually it is good enough, other similar and better attempts try to tighten that bound with more admissible heuristics.
E.g. for metric spaces solution is possible to tighten a lot. (Like shortest travel without weights.)
Not just that, they've resorted to misleading advertising practices at this point. That is so unlike the Apple we used to know.

https://www.facebook.com/groups/ih8apple/permalink/101564623...
I have not encountered any hostility. But if you don't know how to get better performance from C++ than you can get from C and lots of extra work, you probably will not be hired, most places.

It's not about hostility, it's about competence. Some places just demand competence more than others.

The laughter would not be about measurable performance; you might well be able to get C code to go as fast. The laughter would be over your apparent fear of the C++ compiler, and the suggestion to spend their money on a predictably inferior, more expensive, less maintainable solution.

You might as well suggest installing fluorescent lights in the office, or 10baseT network hubs, or CRT monitors. Those would get a jolly laugh, too, completely without hostility, but you still might not be invited back.
In fact, no matter what happens, there is a problem, just how, or whether it needs to be solved.
Well, in Amsterdam students:

https://www.studenten.net/artikel/wonen-in-een-container
Disappointing that this might halt approaches that involve KILLING ALL THE MOSQUITOS
The unknown ecosystem changes are concerning.

A few years ago someone might say kill all bees kids are dying. We know better now.
While that's an unpopular opinion I tend to agree, I'm still on the fence if that's really bad or if I'm just grumpy about change though. It really feels like instead of fixing the underlying problems we're duct taping the internet by moving HTTPS to OSI layer 4 and making TCP and the concept of ports obsolete for a majority of use cases - which in many cases implies a loss of control. I'm honestly not sure why our sector pushes HTTPS solutions over plain TLS, is it just because it blends in with web traffic and it's easier to grasp because more people are familiar with the basic concepts?

Of course there's arguments for and against these aspects in the case of name resolution, both technical and on a legislative level, but maybe a net win in terms of privacy protection for the majority of users is still worth it. And should Cloudflare or whoever decide to misbehave with the data we send, it'll at least be easy to switch to other providers when DoH is widely adopted.
I'm not insinuating that, I'm flat out stating it. I've lived in Canada in several places and the amount of overt racism outside of the major cities is shocking.
Curious where you are getting that most drivers are full-time. Every time I make conversation with my Uber/Lyft driver, I often learn it's just a side hustle for them that supplements their 9-5 (n > 20).
If this is successful, it will be of great help to human beings.
You mean, passing along lies, knowingly or otherwise?
Yeah but no docker-compose support :/ dealbreaker for us. Theres an alpha podman-compose project but we couldn't get it running.
Look it up in their mobile app. Tells you the aisle it's in and how many are in stock.

If you still can't find it (it's not 100% accurate) then just show them the app, with a convenient product picture and name.

Has worked for me when buying slightly obscure items there.
Berkeley Smorgasbord Part 2
This news is not very reliable, I don't believe it.
But the vast vast majority of programming jobs don’t and will not require this type of knowledge. Yes it’s useful in some very important career paths but not the average.
Unless you had newborn jaundice, which is unrelated to hepatitis and quite common.
This makes the article somewhat silly because the demand shifted over to JS, HTML5, Canvas, etc., and because ActionScript is in the same family as Javascript, people are already halfway there. It was very evolutionary.
No docker-compose suppport.
Not on zombocom
> Given a modern compiler and library, a by-value string temporary can be passed down a chain of calls with no allocations beyond the first, and returned, likewise.

For calls (as opposed to returns): If you use std::move, yes. Otherwise, no. But using std::move is similar to changing the type in that it requires noticing the problem first.

> Passing a reference means the optimizer cannot optimize accesses, because it doesn't know what other pointers might be aliasing it. string_view has the same problem.

For `const std::string &`, the optimizer has to assume that the string pointer and length could change, which is indeed a problem as it has to keep reloading them if you call, e.g., `c_str()` or `size()` multiple times (with other things in between). For both `const std::string &` and `std::string_view`, the optimizer has to assume that the string data could change, but not the pointer or length, which is much less of a problem because you don't usually repeatedly load the same piece of string data in a loop. Therefore, `std::string_view` is a decent choice.

Passing `std::string` by value does indeed have the advantage that the compiler indeed could theoretically assume the string data is not aliased. But I just checked and none of Clang, GCC, MSVC, or ICC actually do so:

https://gcc.godbolt.org/z/DZPsuU
I am calling in question validity of this project as a benchmark.

The author asserts, that "it's virtually impossible to write allocation-free idiomatic Java code, so we still allocate... 20 bytes on average per forwarded packet". This sounds questionable, — does that mean, that he actually performs a JVM memory allocation for _every_ packet?! Furthermore, the specifics of memory management look murky. One implementation uses "volatile" C writes [1] (simply storing data to memory). Another implementations of the same thing uses a full CPU memory barrier [2]. Which one is right?

In my opinion, significant inconsistencies between implementations render any comparison between them invalid. And when a whole cross-language test suite is written by one person, you can be sure, that they don't really excel in many of those languages.

This is why I like Benchmark Game — all benchmarks are submitted by users, so they are a lot closer to how a real-world decent programmers can solve the problem. Still not perfect, but at least that counts as an attempt.

1: https://github.com/ixy-languages/ixy.java/blob/fcad50339e537...

2: https://github.com/ixy-languages/ixy.java/blob/fcad50339e537...
Dungeon crawling or lucid dreaming?
A Talk with XKCD’s Creator, Randall Munroe
Instead of a reactionary remark please provide arguments and explanations for your viewpoint to actually further the discussion.
That's a very recent development -- starting around 2008. Even still -- beside Austin -- they are barely liberal. You do realize places like SF, Los Angeles, NYC, Philadelphia, Boston, Chicago, Seattle etc vote democratic at rates close to 75% for like 30 straight years.

Even most southern cities like Atlanta, Jacksonville, Tampa, Orlando, and Miami are well into the 60s.

Even if Dallas, Houston, and San Antonio are like ~52% for the last 8 years, they're a bit of an outlier as far as major cities go.
because in this case food prices are going to skyrocket in a climate change world.
You really don't need it since podman has pods of containers that communicate with each other. You can export and playback the pods as kubernetes yaml.. but I just use a bash script + an environment file to configure, create and launch pods. What else is docker-compose really doing for you?
I can't tell if you're trolling. EFAP is incredibly high quality original content that analyzes film and tv. Obviously it has to use other people's work, as that work is the subject of the video.
So, in other words, World War III.

Good luck with that y’all, I have no dog in this clown show of a fight.
That could use a 9mo boot camp. Just because you're good at code and even manage a project with some tech parts doesn't mean you'll be a great manager. Not usually from aptitude but because the thinking akillset is often different. It becomes less about how to solve a problem and more about should you solve the problem.
Your post is painful to read. Masses of unfounded FUD.

> security services, who have very few restrictions on what they are allowed to do with this data. This is especially true in the country the author appears to be based (Germany).

The author appears to be from Switzerland, and it's not clear at all why "security services" (who?) in Germany "especially" have few restrictions.
For an older person who was a programmer long ago, it’s completely normal for that person to still be programming. It’s just that for a programmer, it’s unusual for that person to be old. Don’t confuse the two concepts.
I’m not sure where you are, but in Denmark this is absolutely not true as most companies and organisations don’t even go over your resume if you don’t have a degree.

I know this isn’t popular on HN, and maybe things are very different in places where education isn’t free, but I’m fairly certain we aren’t the only country to do this.

The jobs themselves don’t usually need much CS knowledge, as you point out, but the degree is an entry point because it gives employers a certain form of safety. I know, I know the HN mantra of “weeeell you can get a CS degree and suck”, but the reason practices are like this in my region is because the companies who followed it did better than those who didn’t.
Yes, that's exactly their plan at the moment. Hence the whole brouhaha.
raised by immigrant parents who were self-employed I was always scared away from the corporate world for this reason. They were constantly talking about how people can get laid off very quickly. They tried to steer me into medicine for this reason (recession proof. Didn't take). I'm now in a corporate setting and aim to be self-employed again soon enough.