skysight-inc/HackerNews huggingface dataset:
That is true in theory, but in practice it's not feasible. Even assuming you restrict to trivially copyable types, you either have to have a purely-atomic duplicate of anything that you want to store, or play games with trying to get a fast atomic memcpy.

Unless things have changed a lot in the past two years neither LLVM or GCC do that much optimisation around atomics so this comes with disastrous performance implications as well as overhead battling the standard.
I don't understand.

If you can turn the loop from upward to downward then you do have a bound for it, and then you can tell if it overflows or not.

Also why is signed overflow a problem and not unsigned?

Surely you want unsigned loop optimized also?
Meanwhile my most recent clothes purchase was 6 identical plain black t-shirts.

I'd drive your relatives crazy.
Fast fashion only opens the door for "fun" to be had be normal people. Rich people going on a buying spree has generally always been a thing.
You're right, but what good is that when the distro itself cannot be relied on?
Or is more accurately explained by some other phenomenon that wasn’t controlled for…
IIRC those already exist in the form of optical switches.
or depending on your gender swap jurisdiction when you see it's going pear shaped. France sees quite a bit of divorce tourism from UK and other European countries because they're "less progressive". So if you have a lot of money to lose move the whole family to France and after 2 or 3 years get divorced there.
> C is probably the patriarch of the longest list of languages. Notable among these are C++, the D programming language, and most recently, Go. There are endless discussion threads on how to fix C, going back to the 80’s.

Why is Java missing in that list?
People need to flip this excess electricity idea.

The cheapest power is solar and wind. If you build an ammonia plant, the cheapest way to get the power you need is to build solar and wind.

You can sell some excess to other grid users when you have too much, and you can stop production on very short timescales to help balance the grid during peaks but overall you'll be able to predict energy production years in advance and know upfront how much it'll cost you. Those financing benefits are a strong driver of the move away from fossil fuels.

This is already happening with actual plants, they build the renewables and the plant at the same time. It just makes sense.

So, green hydrogen will overall be a source of cheap 'excess' renewables power on the grid, not mopping up excess from other providers.
And Rose-Hulman!
Let's make ammonia in Siberia to catch the methane from the melting tundra!
I absolutely agree that this is 100% possible with HTML5, and the only we’re not seeing it happening on a massive scale is a because of a cultural blind spot - as evidence, most of the comments in this thread. The technologies we have now, like Phaser, are vastly superior for building games for the web than Flash ever was (I was a full time game developer for 10 years, and a full time HTML5 game developer now.) And I believe it’s actually easier to monetize these using Stripe than through an App Store. Your game lives on a URL, which is just click away, and paying for it is just one more click - this is about 10 seconds of work for a user. And, you control 100% of your business from production to distribution. There’s a huge pile of money lying on the table here for anyone who can see this.

An interesting article on the topic (not written by me): https://www.fortressofdoors.com/tag/instant-games/
Bitcoin price crash becomes even more drastic
Ask HN: Besides a job or freelancing, how would you make money with coding?
I'm not talking about stuff like launching a company that could take years to take off.

I tried bounty hunting for a while, but it seems that a lot of companies don't care that much or are dishonest when it comes to paying you, I found weaknesses that could be used to siphon tens of thousands of dollars and didn't get a single $ when reporting them through their bounty hunting program(even though they fixed it a few months after my multiple reports).

Do you have any ideas of ways to make money with code besides getting a job?

I'm okay with gray area stuff, as long as it's not straight up hacking.

Btw I'm pretty good at automation/making bots if you have any ideas in that area.

Thanks guys :)
Oh man, this is a great writeup! I really like your practical approach instead of a proof of concept that most off grid endeavors try to be. Do you maybe have a blog or pictures of your setup?
And this is why any google product can't be trusted.
Splitting Compilation and Execution in v8go
Newspeak https://en.m.wikipedia.org/wiki/Newspeak
Haha, the trash issue actually did help my consumption. I didn't have much of a choice at the time, so I lived like I was camping and did manage to keep my trash down to almost nothing. I had a laptop, clothes and some gadgets. Many drinks come in bottles which really do get re-used. I can get meat and veggies at the market with no packaging. Certainly, burning trash isn't good for the environment though.

As for cheap trash, I don't do research into that. It's not expensive to get rid of trash, but it must come with significant enough expenses that it can be shipped via container to another country. Though maybe we're not using the correct terms. This article is talking about clothes. The origin countries may have logistical difficulties with certain types of things which would otherwise go into a landfill. Throw one shirt into the landfill? Fine. Bring dump-trucks of clothes? Maybe now we have a problem. Same for E-waste (also an issue here in the form of used computers which are barely usable.) I could see shipping this stuff overseas as taking a major problem off someone's hands. I imagine it's massively expensive to clean up for plants which deal with large volumes of the worst chemicals, but they deal with high enough margins to pay for the clean-up and some things you can't pawn off on someone else without moving industries (exporting waste and pollution creating manufacturing to China.)

ETA: Recyclable materials is another "trash-like" item which gets shipped. I believe China has since blocked this?
they can. thats exactly what the swc guy is doing. reusing the tsc tests
Nice! Love the scroll to set.
I'm fairly new to C, am I understanding correctly that the new syntax is just sugar for a struct containing two values: a pointer to the start of the array, and its length? This can of course be done without the new syntax, and it seems exceedingly useful. Are such structs commonly used in C projects?

What is the actual source of bugs in this regard? How does passing the length as a separate parameter lead to more bugs than having it bundled -- is the main source of error passing the wrong variable?
True, we are only 9 million people total and the north is mostly uninhabited. I totally see how that feels tiny. Anyway by your description I pictured a small winding 1-line 40mph road, not a 55mph banked 2lane road
Sellpy in Sweden: https://www.sellpy.se/
My father does this: he tried to decrease energy use years before he started generating his own energy. By using timers on most hallway light switches, by installing energy saving light sources, adding thermal insulation, thinking a lot about when the heating ia on for how long etc. Which devices are running etc.
My mistake, I heard that once before as a child and just parroted it. Very stupid of me
Interesting. I expected gaming realed read but this is better and makes more sense as these are likely very expensive to make which is why 5800X3D is the only consumer products that has been announced

Did Broadwell do well in server workloads? Provided it reached the segment, of course. It did surprisingly well in so many tasks
People can be just as irrational in the "good times", this way can still end up with an unfair distribution.
I suspect it’s because manual memory management in Java isn’t built into the language. Is it even possible? I’m not a Java programmer and I don’t know. My understanding has been that the runtime doesn’t expose the memory model to you.
What is your argument? The person you replied to explained why this is necessary while we don't have more sophisticated supply chains to prevent hunger. Would you prefer more people die of hunger to not saturate some grounds?
US Embassy in Kyiv asks to authorize departure of nonessential personnel
Obviously, if one person is really 100% remote, there is no direct infection risk. But this might not apply to most employees, there are probably a lot, which mostly work from home and still meet coworkers or customers from time to time. I can very much understand a company not wanting to differentiate in their mandate on a per person basis. Especially as this also would raise the question of enabling 100% home office for all employees and so on.

Also, with omicron, the point of vaccines becomes less about transmission, but also about personal health. Not sure why home workers should be treated differently here than the colleagues.

Disclaimer: I am from Germany, it would be impossible here for a company to require vaccinations. But if it were, I could understand that they would require vaccination from all employees.
> The part that is a myth was that they prevented jamming by “slowing typists down”. What they did is moved commonly adjacently pressed letters apart from each-other so they wouldn’t be pressed at about the same time. This was not done explicitly to speed or slow typists (at the time, there was no established typing technique and there were no expert typists), except insofar as a constantly jammed keyboard was extremely slow.

Indeed, which was designed to speed typing up, hence my point. :)

> The true part of the common QWERTY criticism is that the layout of the keys was not decided primarily based on the positions on the keyboard or human hand anatomy. As a result, the keyboard layout per se (both the positioning of the physical keys themselves and the choice of association between letters and keys) is not especially efficient or ergonomic.

I get that but it doesn't take away from my point that the RSI complaint is hugely specific to the individual. Or to put it another way, if QWERTY were really as bad as the stories posted on HN make out then you'd see more cases of RSI given it is used by literally hundreds of millions of people every day.

I'm in my 40s and have been using QWERTY since the 70s without any side effects (I did start getting RSI in the arm from playing FPS every waking moment back when PC 3D FPS were new, but never from typing).

> A related (milder) criticism can be leveled at the Dvorak layout, which was designed for the typewriter technology of ~1930, where the home row and top row of the keyboard were easy to press but the bottom row was much slower and less convenient, based on the consistent steep step between rows of keys. Computer keyboards have always had a different physical shape compared to 1930s typewriters, so the relative difficulty of typing different key combinations is different, and an optimized layout therefore looks different.

Which again also misses my point that RSI depends on vastly more than just your keyboard layout.
A workaround that might work if you only care about not losing your custom email address:

Transfer your custom domain to Google Domains (you have to pay for your domain registration as usual), as they allow to set up free email forwarding to your free gmail account.

This only works if you just want to not lose your email address (as me). Of course this is not a solution if you also rely on calendar, docs, etc...
I love John Baez's blog too! But actually I think his long winded, mathematically challenging posts are more interesting. Like this series

https://johncarlosbaez.wordpress.com/2012/01/19/classical-me...

https://johncarlosbaez.wordpress.com/2012/01/23/classical-me...

https://johncarlosbaez.wordpress.com/2021/09/23/classical-me...

https://johncarlosbaez.wordpress.com/2021/09/26/classical-me...

An excerpt from the first article:

> The big picture

> Now let’s step back and think about what’s going on.

> Lately I’ve been trying to unify a bunch of ‘extremal principles’, including:

> 1) the principle of least action

> 2) the principle of least energy

> 3) the principle of maximum entropy

> 4) the principle of maximum simplicity, or Occam’s razor

> In my post on quantropy I explained how the first three principles fit into a single framework if we treat Planck’s constant as an imaginary temperature. The guiding principle of this framework is

> maximize entropy

> subject to the constraints imposed by what you believe

> And that’s nice, because E. T. Jaynes has made a powerful case for this principle.

> However, when the temperature is imaginary, entropy is so different that it may deserves a new name: say, ‘quantropy’. In particular, it’s complex-valued, so instead of maximizing it we have to look for stationary points: places where its first derivative is zero. But this isn’t so bad. Indeed, a lot of minimum and maximum principles are really ‘stationary principles’ if you examine them carefully.

> What about the fourth principle: Occam’s razor? We can formalize this using algorithmic probability theory. Occam’s razor then becomes yet another special case of

> maximize entropy

> subject the constraints imposed by what you believe

> once we realize that algorithmic entropy is a special case of ordinary entropy.
Apt install your lamp stack

Deploy your files

Cronjob to apt upgrade every night

Why does that need a full team? Or more than 10 minutes every few years?
What is a good Mac-layout split keyboard with USB?
Ah yes, that's correct - I believe that reading and comparing the padding bytes results in undefined behavior - the bytes might not actually be initialized depending on the object class. I also don't know if you can actually use the result of comparing an unspecified/implementation defined/indeterminate value - that's where poison is generated.

In practice (UB aside), this is basically fine in the context of a read, compute, CAS loop. Those bytes do have some value in the machine and if that memory isn't written they won't mysteriously change. It's playing games with the optimisers and UB however. You might be able to get around this by first initialising the bytes to zero, then in-place copy constructing whatever you want? I wouldn't bet anything serious on that being defined though.
Headline is inaccurate
Yup ! This I've used bash+ssh for the last 10 years for my solo founder and commercial products. Is sexy or even nice ? Absolutely not, but damn its simple and most Linux semi professionals can understand it with a glance.

Bash as infrastructure+maintenance is almost like SQL for data.

Everyone agrees is not fantastic, many have tried to improve and yet SQL + BASH is still around chunking along doing their unsexy things just good enough :)

Never underestimate software that is 'just good enough' :)
>Jewish peoples claiming “Semitic” as their exclusive word

Antisemitic, as a term, was popularized by people who disliked Jews, who wanted a genteel euphemism for opposing Jews.

So what semitic really means or what Jews think it means is irrelevant.

Once upon a time, people self identified as antisemitic. It sounded nicer than "Judenhass" or whatever.

I think I've read that semitic is an obsolete language grouping, not a race or culture, but I'm not sure.
A lot of people are made of individual people.
Limit, OFFSET and BETWEEN don't work in Cassandra
(*) and don't trust this forwarding is going to be free forever. They might come next year saying forwarding is $100 per message.
If the length is bundled with the pointer as syntax then the compiler and maybe even the runtime can provide checking on behalf of the programmer. Passing it by hand means it’s the programmers responsibility to (remember to) validate
For the kind of people who read Hacker News, this does sound like a significant distinction. For everyone else it's a mere implementation detail.
Quality of life. We don’t want to live like we did in the 1700s — 95% of “rich” nations back then were subsistence farmers, and even the richest kings were in many ways worse off than minimum wage G7 citizens today.

This is also why I think the solution is to focus on the CO2 itself and not on the people. Green power, green sources for chemical feedstocks, are much faster and less violent than population limits; and also lower population doesn’t itself guarantee lower greenhouse gases because everyone might just use more.
1. Main music browser pane should be in column format (think: "excel spreadsheet" with configurable columns of metadata), with a search bar that filters on any visible column or advanced metadata search.

2. Separate "Now playing" pane so I can browse in the main page without affecting what is currently playing (lots of players break this). It's basically a separate, anonymous playlist.

3. Support for custom id3 tags. These have been around for decades but only have limited support. Some players do a half assed job, others don't bother at all, some don't even support the "comment" field. MusicBee let's me define tags and use them as columns in the music browser, Now Playing view, smart playlists, searches etc.

That's it. Decent playlist management would be great but I don't find MusicBee particularly outstanding here either. What I'd like is the ability to tag my playlists with the year, moods and comments - like virtual compilation albums.

I don't use my music player for stupid visualisations. I don't care about lyrics or album art. It's 100% about finding music and creating a play queue. If I like the queue I can save it as a new playlist. That's it.
Nice that you had the freedom to choose a great setup
I used elm in my company for more than two years and is not designed for enterprise apps, is great for tiny apps or POC but I, and my entire team, don't recommend this language.
and that is selection.
Chinese were first to rely on fermented grains to be food at least 6k years ago.

good strategy -- there are time when every calorie you can get counts.

bad strategy -- its addictive and toxic.

solution? favor those who could consume it to avoid starvation, but would not touch it otherwise because it is so unpleasant (instant hangover).

Meanwhile brewing alcohol only started maybe 3k years ago in north western Europe so they are still figuring it out.

And poor north America did not stand a chance, bulk fruit/grain preservation via fermentation had never became widespread then it showed up fully refined.

Metabolizing alcohol yields aldehydes, which can and do cause double strand breaks in DNA. We normally have processes to repair the damage but mistakes will be made and build up over time.

There is no minimum safe healthy amount to consume.

Drinking alcohol just beats starving, nothing more.
> What is the critical difference?

- Astronomers cannot influence the system they are describing; there's no feedback. In economics there is.

- Astronomy describes systems with a few, simple particles whose inner state is not relevant to the behavior at large. Economics describes (tries to..) systems with many complex 'particles' whose inner state is essential to the behavior at large.

Not saying that this is what's fundamentally separates astronomy from economics, just pointing out some potential differences.
Oh yeah, pardon my brain fart.
Advent of Code 2021 in pure TensorFlow – day 12
> What about Rupert Murdoch and Fox News?

I don't think he's the devil either. I do know the nature of their game though. It's to divide people. They're doing a great job of it.

> Anti-vaxxers are why we are still in this mess. Yet I constantly see Covid misinformation on Facebook. We could discuss the genocide in Myanmar, Cambridge Analytica, Facebook's psyops campaign against their users, etc.
That would be using a very high inflation rate since 1980 (around when I assume this must have happened). I think the official factor is closer to 3x than 5x.
I once had a job where I somehow didn't get assigned much work for a long period of time right after starting — something about no projects having open staff positions, and them not being able to use me anyway because they were using up all the budget with the existing staffing already and didn't want to do "free work" for the clients.

For a while, I spent my days mostly doing tutorials, reading ebooks and papers, watching lectures, ...

Don't get me wrong, it's an incredible luxury to get a consistent salary and be able to do that! But the thing is, you can't help but feel utterly useless after a while. It's especially bad if everyone else has their projects, so you also don't really feel like part of a team.
I recently moved on from a place where I'd built core systems I was very proud of, where I'd started my dev career 12 years previous.

Why? Because when I'd ended up with full custody of my children two years prior to the pandemic, I needed to reduce my hours in the office, but I'd make them up at
home.

After a decade of doing unpaid overtime (prod problems, talking to product owners in a different timezone), I figured they knew I was good for it.

But, no, it was a huge problem apparently.

But then the pandemic happened, and working from home all the time was absolutely okay.

I grew resentful that full time remote was quickly okay, but I'd been hauled over coals for wanting to leave an hour earlier to pick my youngest up from daycare before it closed.

So, I moved on. And absolutely no regrets.
I think Hanlon's razor applies here. There's more malicious ways to insert spyware into an open source code base
Can be a good thing if less lethal but more virulent Corona-strains outcompete more damaging ones. Life has dealt with these for a long time.

Those with allergies have valid reasons not to get vaccinated. Otherwise, it's good to dampen the first blow to the immune system with vaccine.
What are you talking about? We already have both interoperability and a proper transition plan.
I have the same problem with the cross words in my newspaper ;)
Russian diplomats are also moving their families out; it seems that they are getting serious. Terrible news. https://www.currenttime.tv/a/nyt-russia-evakuirovat-diplomat... (link in Russian)
Most of that is kubernetes, which is completely unnecessary for self hosting purposes. It's mostly for learning, or for the convenience of hosting multiple different services, trying many different containerized applications.

If your only goal is to serve Nextcloud, Plex or whatever to your family, you can get away with much less than that.
> Because a boat doesn't have an enclosed space to heat.

All ocean capable boats do. Nobody lives in canoes or row boats.
Whenever you do lexical analysis on syntax containing numbers.

On today's hand-held supercomputers avoiding allocations and, generally, exercising memory-efficiency may not be a primary concern, but it very much was at the time when this stuff was built. And it's still relevant today on restricted systems, like microcontrollers, where C is still the primary language.
* I have not tried Windows 11, I assume it works.
* The minimum version that works is Windows 10 21H2.
* Some sources say you need a newer build, they are wrong, my OS build: 19044.1469
Seems entirely broken system. In fair and just one the person could have quit, and have the other partner support him for rest of the life...
No they cut wages because the pandemic provided the excuse that permitted them to do so.

They'd be terrible capitalists if they are paying people more then they had to.

The wage difference is a function of power asymmetry, it's not the employer trying to do some kind of syndicalist wealth redistribution

Many companies profits went up, yet they still slashed compensation. Well some of that profit was because they slashed.
5-Minute MBA in Naming Things
If you ask somebody for help and haven't included all relevant facts in the first message you've already done something wrong.

https://nohello.net/
Endemic doesn't mean less dangerous though. So I'm not sure why fear should recede in that case.
This was all done using the default WSL Ubuntu: Ubuntu 20.04 LTS