skysight-inc/HackerNews huggingface dataset:
Those look like problems for compiler implementers (tiny subset of users) or those writing code with very tight performance requirements (large amount of C++ code does not have such reqs).
In spite of the reasons given, exceptions are successfully used (in C++ too) for error handling, because they can be much nicer that shuffling error codes/result types up the stack.

Really, as an end-user the issue with exceptions in C++ is another:

a) it's impossible to figure out what throws by looking at code.

b) it's (nearly) impossible to ensure that something doesn't throw

This means on one hand that one has to assume that any code can throw and manage resources appropriately, which is by now known and there are well-established idioms around it. On the other hand though it also means that the silliest error from a tiny library can bubble up into the event loop/main function and terminate an application.

Swift's syntax for exceptions illustrates what I mean, even though Swift does not unwind the stack.
Ringing in Ears and Pressure Causes? – Epic Health Coaching
I'd agree with some of the existing web APIs. But I think some web SQL API should be built-in.

Why? Because it's a very common pattern. Almost fundamental. Take any project more complex than a toy calculator, and you'll quickly find places where the authors are hand-rolling relational operations.

Does your app have an array of records in memory, which it then searches for values, filters by conditions, and/or sorts? I'd give it a 50/50 chance that if you replaced that array with an in-memory SQLite table, and all operations on it with SQL queries on it, the result would be less code, more readable code and better performance[0].

It's not just the web - I'd argue that programming languages in general should all embed first-class in-memory relational database engines. It should be a part of the language standard - if it's easy to write this:

struct Foo {
int bar;
date baz;
string quux;
};

//somewhere in something
Array<Foo> foos;

it should be easy to write this:

table<Foo, index=[bar, quux]> foos;

(or some other, better way of describing intended data access patterns)

and get a thing that can be efficiently queried, filtered and transformed along dimensions specified, with the compiler turning your request into efficient bytecode/nativecode. Doesn't mean you have to write queries in vanilla SQL - there are more composable syntaxes out there. But arbitrary loops and map-reduces aren't that good either.

When you start looking at your data processing code as database operations, you'll see it everywhere. That map/reduce/zip blob? That's a JOIN query. That struct you're keeping in your event loop, that looks like:

struct Schedule {
Array<Task> tasks;
PQueue<TaskId> toRun;
};

that priority queue is an index on the tasks array, and looking at its front is just SELECT id FROM tasks ORDER BY priority LIMIT 1;. That Entity-Component-System pattern you're using in your videogame? That's literally a relational database. It was conceived of as such (and for massively multiplayer games, is often implemented as such). Wouldn't it be nice if the ability to express this came built into the language? With a column-oriented option for improved performance, too?

--

[0] - It's trivial to add indexes to SQL table. The engine will maintain them for you. Nobody habitually adds indexes to their own regular variables. They, along with the code to maintain them, would manifest as extreme code bloat. Meanwhile, in-memory SQLite is freakishly fast. If you're measuring performance in Python/Ruby units, you won't even notice the FFI overhead.
Seems to me like an instance of 'bundling problem'. What government actually wants is yes/no answer to the question 'does this photo contains child abuse', but with this 'solution' they get much more information than simple yes/no answer, making abuse of power possible.

Is it possible to just scan photos locally for child pornography, encrypt those photos, and upload those encrypted photos and the 'yes/no' answer that the scan returns plus some cryptographic proof that the actual scan (some calculation) was performed on the uploaded encrypted photo?

If this was possible it would enable privacy and also help prevent child abuse (or at least prevent child pornography from being stored on iCloud).
By how much do you think it would reduce the L1 load? That article suggests if you can get 10 people together it would reduce the load to 1/10, so still almost a decade. And that's iff you happen to find 10 people who fit the specific shape exactly. That's still wildly unacceptable if true, and also unbelievably unlikely.

LN has always been a "but wait! we've got a solution just around the corner - please don't give up!" feature - but there's nothing around the corner. There never has been. Not to mention it does nothing to address the quadratic routing criticism.
A Mirai is much bigger car than a Model 3. The better comparison would be the Model S, which has almost identical dimensions to the Mirai; when you do that comparison, the Mirai is around 300kg lighter and goes further.

It doesn't matter which way you cut it, even with all of its disadvantages, hydrogen with a tank still has 3-5 times the energy density of lithium ion, and it scales better with larger vehicles. This is also the reason why industrial drones are moving to hydrogen. They've been using batteries for more than a decade now, and it's been the big limitation holding back a number of applications. Hydrogen gets you double-to-triple the endurance, even at relatively low pressurizations, which makes things like surveying easier, and delivery services possible. Military-grade platforms are supposedly already looking into using liquid hydrogen, with a number of platforms having already been converted over the past decade.
Last I checked Mullvad wasn't great for sites that actively ban VPN IPs like Netflix. For that NordVPN is better since (I recall reading) they use the residential IPs of users of some other free VPN services, so these rotate too frequently for Netflix to ban. You'll still have to ask for fresh IPs from time to time though as even those get blocked.
Belarus floods the European Union with migrants
People don't control the talents with which they were born or the environment in which they're socialised. They also don't control the distribution of talents, technologies and preferences in society that combine to determine the supply and demand curve for different careers. I would say, therefore, that an individual's earning power in the market is overwhelmingly a function of luck.

It is obviously unfair to penalise people for bad luck. It is also unfair for those with good luck to use the talents which fortune has gifted them to extort society, to demand that they receive multiple times more money than the normal citizen lest they deny society their talents and leave. Obviously fairness is not the only relevant value, but it is relevant.

I don't think it is healthy for a society to stream their most talented citizens into high-paying and stable jobs, and to discard the rest as losers that are best forgotten, condemned to low-pay, casualised and insecure work. It is precisely this kind of dual society in which we now live, that is tearing at the social fabric, creating the kind of anger and resentment that produced Trump - and it is profoundly wrong.

I note that the NHS pays doctors markedly less than they would receive in North America, though it is still a considerable amount. Yet we have no real brain drain. The most common reason doctors give for remaining in the UK, besides friends and family, is that they believe in the NHS as a public service provided free at the point of use for the common good. The motives and self-conception of the medical profession has not always been pecuniary. In The Politics, Aristotle is emphatic that medicine is a craft whose end is the good, which is corrupted insofar as it is treated as a means to making money.
Good, I hope Apple will die. Not so much of value will be lost
The windows app works perfectly for me - I'm vpn'd 24/7 and it never crashes. I think it depends on your usage.
Uh... you can still do that today.

python3
> print(“Hello world”)
Let's wait first, until this shit ends, to really evaluate who is the danger here... Guys the pandemic isn't over because you got vaccinated, we're still waiting for you to realize that... afterwards we will discuss what is missinformation!
I, like Galuggus, like the design of your site. It's refreshing to see designs such as yours. The background for the site is a bit harsh though. Quite hard to read information with that harsh background. I like your focus on simplicity but the design could be improved.
The "gravity model of trade" is still approximately true

which TL;DR states that it is easiest to trade the most with your largest neighbours. For Cuba, that means Florida (and after that, Mexico and Central American countries). Yes Cuba _can_ trade with more distant partners, but it is less preferable.

https://en.wikipedia.org/wiki/Gravity_model_of_trade

https://www.economicsonline.co.uk/Global_economics/Gravity_t...
"Voyeurism is the act of observing other people without legal authority."
As Stallmain said - people are trading privacy and freedom for convenience.
Apparently this is intentional since macOS 11.3

I found more in-depth info by following the GitHub link, then YouTube description: https://www.applegamingwiki.com/wiki/Sideload_apps_not_on_Ap...

Looks like a lot of trouble just to use software you payed for, the way you prefer.
More than a million Americans have cheated to get unauthorized vaccine boosters
The interesting ones for me are Cloudflare workers and Fastly Cloud@Edge. The next generation of serverless, WebAssembly has huge potential outside the browser
Hi, Iwan Gulenko (https://linkedin.com/in/iwan-gulenko), tech recruiter from Switzerland here.

In every culture it's different. In Switzerland, three stints of less than two years at companies is already a "Nogo".

In your situation, I would throughly ask why the stints were so short; maybe there are good reasons like the companies went bankrupt without any fault of the applicant, or maybe there is another specific reason that makes it more likely that they stick around with you, e.g., if you use a tech stack they love.
And... would be released back in the Atmosphere as soon as the forest burns
You can still do that today!

Start ipython (or the interactive interpreter for your language)

Enter:

print("Hello World!")
See the result!
Using OpenNebula as a Cloud Service Provider
How to deal with the PhD requirement in Research industry?
Hello, HN pros.

I have looked in this area a bit and have realized you need a minimum PhD to work in the tech research. For example, Google Research, MS Research, Quant Research in a Trading Firm, etc.

Now, a PhD does take around 5 years of time with no salary as such.

I am an Asian who is cs senior undergrad graduating in 2022. I already have got a offer at 95k usd per year for a software engineer role once i graduate. It's huge money for me. I have been funding my undergrad with a 5k usd per year scholarship.

Now I am actually interested in doing research rather than being a software engineer. And I know I am good at it. (If its fun then I am good aint i?)

Me and my parents have a concern that i might be wasting 95k*5 ~ 0.5 mil usd into a phd and my job would be something like 200k-300k usd per year which i could even get after 5 years of swe exp.
They arent wrong I believe.

What options do I have now? (Not losing 0.5 million and still being able to do good research)

The firm with the 95k offer will never let me get into research. They only want software engineers. They hire only phds for research.

I have thought of some scenarios:
1. I work a few years (3-5) at 95k usd. save money for fam. do phd next 5 yrs. try to get a offer that might ignore the revenue i lose in those 5 years.

2. I do partime work senior year ug and then try to get partime work/ many industry internships during phd so i still be able to make ~60-70k usd per year (Not doable I think)

3. I not do phd and stay in a swe role which is interesting but i will always regret not doing research. (noooo)

4. I join a firm which identifies my research potential in UG itself. It provides for a transition from say swe-level role to phd level research without a phd in within 5 years of swe-level role. (i guess no one allows someone to do phd-level research without phd).

Any ideas? Any comments?
JingPad A1 (DVT) review, part 2
Runtime of OneFlow Based on Boxing and Actor Model
It can be found that the efforts of other frameworks and advanced customization by users on all distributed parallelism are in fact a particular use case of OneFlow.
Should Apple be forced to publish content of updates to users? or should the users even be aware of what is updated? Apple most likely thinks the updates should even be automatic, the users don't have to care.

On another related subject, I believe Apple should be fined to impose such a huge internet traffic for... nothing: each iOS or here macOS minor update weighs hundreds of megabytes, sometimes even gigabytes, and those updates are pushed every few weeks, which given the number of iOS (and to a lower extent macOS) devices creates a huge traffic around the world, for not much. It is not environmentally friendly and it adds tension to internet infrastructure, for not much.
My argument is as follows - happiness can not AND should not be measured.

Now, that doesn't mean that you can't define happiness as you want it and pursue it on an individual level. For instance - walking in the park makes you 'happy' (as self reported feeling). Yoga makes you happy. Meditation makes you happy. Great - go for it.

BUT it's pointless to even attempt to measure 'group happiness' and try to increase it. People make pointless statements and point fingers in on the wrong directions. The article is about technology and I am sick and tired listening to how technology makes people unhappy or happy. Governments are often blamed for policies that make people unhappy. Society is probably blamed the most for people not being happy. It's too materialistic, the goals are wrong, bla-bla-bla.

BTW Here's the exact meter definition - https://en.wikipedia.org/wiki/Metre
> that puts the hydrogen at roughly 15kWh of useful energy.

That's not the hydrogen's fundamental fault as a medium. It's the fault of the conversion process. 33 kWh of thermal to 15 kWh of work, according to your calculation. That's in the realm of highly efficient (Diesel) internal combustion engines.

As for 4 miles per kWh for a Tesla, you're already comparing apples to oranges. The Tesla feeds off batteries, where the expensive conversion part is already past. You're comparing high-exergy (battery) to low-exergy (raw hydrogen).

I don't know anything about fuel cells, but imagine they reach 90% efficiency (is that even theoretically possible? Don't know); suddenly you get 30 kWh of work out of 1kg of hydrogen. We're just starting out, and a hundred years ago ICE efficiencies were atrocious, too.
Surely a tour de force to do this in this many languages. It’s been helpful to me to see how I might write a parser.

On a different tangent: what is it about lisp that people love so much? Are lisp programmers much more productive? Is the code better in terms of performance or lack of bugs?
I'm very much over having to deal with IndexDB. Is there any viable alternative that doesn't require a huge dependency?
> So don't live in Southern California?

People need to live where the jobs are. When cities permit offices, but not housing they're screwing people over.

> "Avocado toast" is a metaphor for conspicuous consumption at the expense of savings and investment.

Here's an example from national numbers: https://fred.stlouisfed.org/graph/?g=FYMk

The price of a median house has gone from 3.6x the median salary to 5x. The ratios are worse in the cities that have added the most jobs. Framing this as a failure of personal behavior is missing the point. The current generation has to work harder than previous generations to achieve the same thing.
Yes [1], the technical aspects are easily accessible. I'm avoiding third party VPN clients for simplicity and trust-minimization, but it's my plan B.

[1] https://mullvad.net/en/help/faq/#40
It is a multi-faceted issue. In general, for really sensitive content, like nude photos, keys etc., I'm very strict they should always be stored in an encrypted form and never ever decrypted on a remote machine.

Other content, private but not sensitive, like holidays photos, can be stored and decrypted remotely and it's a good practice to use encrypted partitions by default. I don't believe Hetzner would do any of the grey things that Google, Facebook and now Apple are doing (i.e. actively scanning your data for advertising and other purposes), but there is a practical problem of broken hard drives - it doesn't matter if it breaks in your place or at a hosting provider, you have a hard drive that is broken but you can't remove your data from easily, but someone else might. I estimate the probability is extremely low, but there is very little downside and effort required to encrypt data partitions nowadays, so I don't see why I shouldn't do that.

As for the interception of data in transit, nowadays everybody is using TLS for everything, so I don't think it's an issue.
Is it just me or does it sound and look a bit out of sync?
> The US does quite well in most patient outcomes. It does not do as well as it could because of the opioid crisis which has singlehandedly reduced average lifespans, and which is more or less independent of access to doctors.

The US has among the worst monthers mortality rate in the entire OECD [1] - and most of the rest of the numbers don't look so hot either [2]. Life expectancy is falling. Generally only cancer 5 year survival is improving - because the US keeps people alive just a bit more than 5 years. They die soon after of the same cancer, because the US prioritizes keeping folks alive a hair longer at all costs - and focuses on earlier detection. Earlier detection does not indicate cure, but sure does boost numbers.

> Remember, 17% of all Canadian scientists already move to the US.

This was true in the past, however the US has a NO VACANCIES sign all over it at this point. The Biden administration is allowing 100,000 green cards (authorized, ready to issue) expire without being given to individuals this year. [3] Mine included - and I've been here since 2010 and paid literally millions of dollars in taxes.

Neither Republicans nor Democrats are interested in permitting any more immigration. The last tightening was Bill Clinton under IIRAIRA and the last amnesty was Reagan. Since then, nobody has done anything to make immigration to America any easier, even when Obama Democrats controlled both the House and Senate. Trump made things slightly more painful, but Biden has not rolled those changes back and all signs point to no plans to do so.

The old numbers no longer matter, America is no longer taking new applicants. Doors closed.

But don't just take my word for it, Canada's getting the bulk of North America's new immigrants. And has been for years. [4] Canada is now offering permanent resident cards to immigrants totaling 1% of its entire population every year. Can you imagine America taking 3 million new immigrants per year?

[1] https://www.npr.org/2017/05/12/527806002/focus-on-infants-du...

[2] https://www.oecd.org/unitedstates/health-at-a-glance-united-...

[3] https://www.wsj.com/articles/some-100-000-green-cards-at-ris...

[4] https://www.forbes.com/sites/stuartanderson/2021/07/15/house...
Looks like there are ways to do it by removing DRM and other shenanigans. I don't own an M1 though, just interesting reading:

https://www.applegamingwiki.com/wiki/Sideload_apps_not_on_Ap...
These days you can get one that will go as high as 14MHz.

If Apple decided to do an Apple IV (kind of an apology for making the Apple ///) with that, it'd easily smoke an early 386...
How the cryptocurrency industry is coming out from under neobanking’s shadow
…yes, that’s what I’m saying.
PS: I believe PhD has become a test of wealth as time is money. Only those who can afford to earn no money for 5-6 years are the ones who can do a phd.

This shouldn't keep people who cant do so out of research industry.. right?
You can switch to bitbucket, they still support passwords.
For Linux there is supported hardware from Vendors like system76 or similar. You don't expect to run Windows on Chromebooks, Android Smartphones or M1 Macbooks without issues, because these vendors only optimize & test for linux. But since linux is such an open platform, you have a large grey area "vendor didn't test it, ymmv". It may work fine, but you never know if the vendor decided to e.g. ignore standards for reboots and only react to the exact things that Windows does (This also applies to macos running on other devices, but way worse). Most devices have an entry in e.g. the arch wiki describing if they work OOTB, with hacks or some parts just don't.

There are devices where the vendor tries to support linux, e.g. Thinkpads, but if you're using Nvidia it's still a pile of hacks in the background.

I haven't needed to contribute any code myself nor use non-upstream drivers, but the process to use non-upstream drivers is usually pretty streamlined in arch (packaged in the aur).

And since we're in hacker news: Programming things close to the hardware can be a great learning experience, maybe not when done under pressure.
Generic code (like you'd find in a library) is usually done with templates. Templates in D infer `nothrow`, giving them the advantage of being implicitly `nothrow` when their arguments are also nothrow. Inferring attributes this way is a major way D works.
https://en.wikipedia.org/wiki/Extreme_poverty

>The percentage of the global population living in absolute poverty fell from over 80% in 1800 to under 20% by 2015.

This is astonishing.

In the time frame he's focusing on, from the 90s to now, the decrease in absolute poverty and substantial increases in well-being globally are facts that subsume any single technology or widget or innovation.

24% in 1990 down to around 7% today. More people are living better lives than at any point before in history, and this should be celebrated, but hardly seems to be noticed.

The things he points out, however, are crucial pieces of why things have gotten better. We're able to instantly connect to a global pool of information, alerting each other to the swarm of problems facing the world, and we're able to take action.

Charitable donations, political activism, decentralized media, ubiquitous internet access, and a thousand other small things have enabled and inspired people to use powerful networks of people and computers and resources to effectively target and fix huge problems facing billions of people.

Sure, we have real challenges in the misbehavior of big tech companies and the politics of the panopticon, but maybe we can be hopeful that history has a trend toward a more liberal, purposeful, enabling life for all humans that exceeds the mere struggle for survival.

I think of this article as a reminder to appreciate things that are so incredibly important, even if they tend to go unnoticed day to day. Stop and smell the victory of technology over struggle and disease and discomfort and starvation.
Yes. The only thing more dangerous than being the USA's enemy is being its friend :(
Maersk and the Viking Energy project are developing the technology to use it in shipping as ammonia. The first hydrogen-fueled commercial passenger flight has already flown, and there are a number of conversions of existing aircraft happening. Airbus is also looking into it. I think for these types of applications, ammonia makes more sense, especially if you can get away with high temperature fuel cells that can use ammonia directly. For drones, hydrogen is proving to be better for aircraft needing long endurance, and is likely the future of the industry -- at least for platforms above a certain weight class.