skysight-inc/HackerNews huggingface dataset:
Practically all valid Rust can be rewritten as valid C++. To make C++ reject most invalid thread-based code that Rust rejects, you can mark cross-thread-shared references as const&, atomic fields as mutable, and write a Mutex<T> class which wraps a mutable T, and only allows accessing a T& through a Mutex const& by locking the mutex. So implementing Rust-style threading in C++ is viable, but extra work to write a Mutex<T>, and the compiler lacks borrow checking to prevent you from making lifetime and overlapping &/&mut mistakes and committing data races. (http://www.drdobbs.com/cpp/volatile-the-multithreaded-progra... proposes using volatile& for this purpose, but many regard this as actually a bad idea.) Though in practice most C++ codebases sprinkle mutexes ad-hoc, relying on at best comments describing what data is protected by what mutex, with predictably disastrous results.

I feel Rust is a better language than C++ at implementing correct multithreaded code, but is so constraining that it makes correct single-threaded code hard to implement when it doesn't fit neatly into tree-shaped ownership (eg. graphs, GUI trees, and extending existing program architectures).
Sounds like you long for the days of BeOS :)
"Don't do something really stupid."

"Do you mean to suggest that people should do this other stupid thing then?"

Come on.
Such an interesting article on the subject which seems like not new for me, thank you!

> At night, CVS can become worse. It is recommended to use a dark user interface while working at night on the computer. Several browser and OS add-ons exist to darken the user interface.

Checkmate, all those "dark mode is not as useful as you think" activists.

Russian Wiki has another gem which is checkmate to programmers without touchtyping skill who use to say that they are not writing as much LoC for receiving any benefits from touchtyping:

> Постоянное перемещение взгляда с монитора на клавиатуру. Если цикл перемещения взгляда выглядит как «бумага-клавиатура-экран», то нагрузки на зрение становятся ещё больше.
Most of these things can be done easilu with existing verbs.

But here is something else: client authenticating versions of existing verbs like SGET, this is my idea to kill cookies.

Browsers/clients generate signing keys like with TLS except they use either session-unique public key and identifier for anonymous access or server-registered identifiers and public key for logged in access. Each SGET is signed by the server/account specific private key.

This sort of kills passwords and cookies with one blow. Browsers and clients will have to use some library to session=init("account name") or session=init("anonymous") and just pass that session to the http library so it can do SGET/SPOST. The effect would be every HTTPS transaction would be authenticated by a specific client which eliminates many MiTM scenarios and MFA bypass techniques (you can steal public keys like cookies but private key theft would be made extremely difficult), and since you are authenticating a unique client, why do you need passwords? Just add MFA to it and you don't even have to deal with SSO and oauth! Registration just means you request an account identifer with a pubkey and if approved the server gives it an ok. The burden however is on clients and servers to maintain account information which they sort of already do in a messy non-stanrdard way which this would also fix.

What are your critiques? And can someone steal my idea please?
It is, by quite a bit.

While the "Scala IDE" project is dead for all practical purposes, IntelliJ IDEA's Scala plugin is actually pretty amazing. There's also a VisualStudio plugin that does pretty much the same and is advancing by leaps and bounds. There are also interconnecting projects that provide i.e. language server or build server that are reused by other projects. It's pretty modular. Metals (https://scalameta.org/metals/) is amazing.

In general the language has become a wee bit faster to build, there was good progress with build times during the 2.12/2.13 cycles.

With Scala3 the language got a bit simpler; concepts that were implemented explicitly using (hehe) implicits got their own keywords and a lot of the opinionated boilercode that cause a lot of debates is now generated during complication and hidden. A lot of "standardization" has occurred.
All the autopilots in the world aren't keeping a plane to within an inch in all three dimensions. It'd be nice, but turbulence is a thing :)

More importantly, actual position isn't that important - you care about relative acceleration being as close to 0g as you can.

And with the 3-pilot setup the A310 zero g flights have, they maintain +/- 0.02g. Now you add to that the fact that developing an autopilot you can trust in that situation costs a good chunk of money, the fact that it's a specially modified plane (so it's more or less a one-off effort), and the fact that pilot costs are negligible compared to the rest of the flight cost.

At this point, you can get a minimal increase in precision for a large expenditure up front. You'll still have the 3-pilot setup (you want to be able to recover on malfunction), so operational costs aren't reduced.

At that point, the question becomes "why would you"
Reminds me of the classic "how to write unmaintainable code":
https://cs.fit.edu/~kgallagher/Schtick/How%20To%20Write%20Un...

Especially this bit:

Bedazzling Names
Choose variable names with irrelevant emotional connotation. e.g.:

marypoppins = (superman + starship) / god;

This confuses the reader because they have difficulty disassociating the
emotional connotations of the words from the logic they're trying to think about.
I can't be the only one that just includes any dependency with a permissive license? `git subtree` is so ridiculously easy for the larger dependencies and 90% of these projects are sub-500 lines in a single file, just include them.
> Demonising people doesn't help.

Letting a country get away with genocide with a slap off the wrist will only encourage them to do it again.
Related to flightradar24. Not related to parabolic flight.
Many of these overhyped entrepreneurs lost gobs of money with crypto over the past year. You see these guys with crypto hashtags on social media profiles s or on resumes. Goes to show how the boring old college route is still hard to beat and one of the best ways to create wealth, and also how quickly fortunes can turn. Markets fall so fast, so no wealth made as prices fall, wages represent accumulated gains. Today's overhyped entrepreneur is tomorrow's big loser after the market falls.
I took his quantum mechanics class.
Oh sure, I wonder why Eastern Europe wants to join NATO. Hmmm, I wonder why countries who were on the fence about joining NATO have suddenly fast tracked applications in 2022?
The water in the rivers providing cooling water is so warm that the water that comes out the other end crosses a temperature threshold set to protect the river down stream. As I understand the situation at least. Technically the plants can run at full load, but you'd risk harm life in the river downstream.
The Deer Hunter is also a great example of how movies have changed. I enjoyed the movie but it's just sooooooooo.... daamn.... slooooooooow. Nothing happens for the first hour. That doesn't make it bad, but it goes to show - audiences in 1978 must have had very long attention spans. I can't imagine such a glacially slow movie being a hit if it came out today, when the average person can't pay attention to anything longer than a TikTok video (and even that needs to be played on double speed.)

People's brains have changed.
The software stack is enormously deep. If you want to make a "real" game now, you do it in an engine, adding your code to a framework on top of libraries on top of an operating system, on top of drivers, on top of bios... You're just so far removed from anything tangible.

Tinkering with an 8-bit (or a virtual 8-bit) system feels much more tangible. Visceral.

And yes, nostalgia.
Agreed. These meetings can certainly end up being as cynically founded as the version posed in the post, but they're often also useful opportunities for execs to make sure that communication of the ultimate intent that led to the proposed work has made it through to the folks who will be tasked with doing the work. Understanding the business goal of the work makes it much easier to accurately weigh the inevitable tradeoffs that come up in projects without needing to run everything all the way back up the chain.
Is it really a distinct benefit though since something similar to that have been existing for a really long time before GraphQL already? From OpenAPI/Swagger all the way back to HATEOS/HAL and RDF, if not even earlier.
> meet the goals of usability

If server blacklists your TLS fingerprint, you can no longer use that server with that client. Only workaround would be a client that can configure its own fingerprint. What you're saying is akin to "let remove the clients ability to set HTTP headers". IE its just nonsense. If server rejects every request because of clients TLS configuration, and client has no agency over that configuration, then the client has no usability.

> Note that nowhere was there a hard no, we'll never implement this

I would say the maintainer closing the issue, is a pretty clear signal for that:

https://github.com/golang/go/issues/48207#event-7373771032
> Farmers want to use less pesticide.

They want to increase profit yield. If more pesticide produces more revenue than the cost of the stuff then they'll want to use more.

You're free to do research on this on your own. I'm not interested in sourcing links for you. I will amend that it's moreso herbicides than pesticides.
Until that's expired. project-ng-ng? (I know the pain, we did the same thing at work).
I think a reference to a common misunderstanding is fine for the joke; which is about a possible failure mode of a user interface quirk.

Since you're obviously passionate about the subject tho, perhaps you could help me understand the error better? I dunno much more about the Planck length than that most places offer them in 8 and 12 foot, and pressure treated costs extra.

So just what is it then and how is it we can still shoot the tortoise with an arrow?
With a couple of FSRU terminals coming online during the next year, Europe might be OK, but it's going to be a problem. Storage is high for the season, and growing, but total gas delivered is very low.

When the winter cold comes, storage will be depleted much faster than in the last years, and even if no gas shortages occur, storage will be very empty in spring - maybe too low to refill them till next winter.
Show HN: react-native-marked, a Markdown renderer for React Native
Nice, TIL. I wonder if there's a name for these ephemeral sand formations, as hoodoos seem to be more permanent.
Startups, stop treating engineers like a different species
I'd be interested in giving some of the WASM frameworks a try, like blazor or yew.
The author claims that securing the link to your ISP removes the threat of MitM, then a few paragraphs later mentions how end-to-end encryption should be used by discord and others. Yet somehow they don't connect those two ideas...

Not only is your ISP the MitM (sometimes malicious), what happens between them and the service cannot be trusted at all. Or as NSA put it "ssl added and removed here".
It can be taken seriously enough but I can also change Suleiman the Magnificent’s birthplace to Nairobi and no one will notice for a week.

Wikipedia should publish curated “editions” like a traditional encyclopedia.
Honestly im not sure there is much you can do. I had 3 twitter accounts: my personal one that I’ve had for 10+ years, a programming one, and a political one. All 3 were shadowbanned as far as I know (using one of those online tools to check accounts) and no idea for how long. I don’t get a lot of followers and any of them until recently.

When Elon Musk started to purchase twitter I checked again and all 3 weren’t shadowbanned anymore.
They simply know the storage limit is the one users will most likely exceed first so having all of it bundled instead of separate price for storage and for "compute" would net them less money.

From their perspective it's basically "as long as it is cheaper than customer paying someone to set up gitlab instance"
The law was likely written without considering these edge cases.

I recall that in England gay sex among men was illegal and carried a prison sentence during the Victorian age. But lesbian sex? No prohibition. Why? Because Queen Victora, when pressed on the matter, could not conceive of how that could work? How could two women have sex? Ridiculous. Nobody questioned her further.
France claims two things:

- Reactors are seasonally idle and will ramp back up for winter
- During this normally idle time, they do maintenance

https://abcnews.go.com/International/wireStory/minister-fren...

Perhaps this idea that "half of France's reactors are idle" is partly true, partly scare tactics from the "anti-nuke" group?

Nuclear reactors require vast amounts of cooling water so timing your "down time" to coincide with low water levels does make sense.

Here(Ontario) we build them on the shores of Lake Ontario and the intake pipe extends far into the lake to avoid any sort of water level fluctuations impacting power production.
Isn't the code the vocal fingerprint of Captain Kirk? That also explains the delay between the Kirk giving the code and it displaying on the screen.
Update: the FL1000 USB3 drivers work fine on Windows 7.
I too go through these cycles on my many projects; sometimes grudgingly finishing them with hate or passion.

To me, I didn't see it as a divergence cycle between impact and vision, although this makes a lot of sense and gives me a nice hack to get out of this vicious cycle.

To me, it felt purely hormonal. I go through phases were I can't stop committing code and the polar opposite: Netflix and chill, code allergy, creative rot.

The key is to know that it will turn around, because the interest and curiosity that got you there in the first place, is bound to come back.

Good ideas are like bad smells, they have a tendency to stick around...
Working remotely for a US based or US funded company while living in a country that has a social safety net is really the sweet spot. My salary is roughly 2-3 times higher than I’d make working for a canadian company.

SF salary in a not SF rent market.
Thanks for sharing and good luck. Hoping you’ll update us after you move to the new system.
For group:

Maybe consider Signal if you do not want your content exposed.

Or Telegram if you don’t mind your text content being accessible by Telegram and prefer to be a bit more anonymous.

Can’t win there on both counts.
Verbal face to face agreements that go against the explicit wish of the countries involved which you give no agency? Should a finger be pointed at the agreement regarding Ukraine giving up the USSR nukes?
If anyone ever learns how to actually stop comparing themselves to others I'd love to hear it. Many of the most well-adjusted, pleasant people that I know still compare themselves to others naturally, it feels like a subconscious behavior almost at the level of breathing or getting hungry. (I liked the article though)
> GitLab CI is much more straight forward if you have your own Docker image

In my experience GitLab is straight-forward in all of its happy path, which happens to be exactly what all developers need to do: build software, push build artifacts, run tests, and in the case of services deploy stuff somewhere else.

With GitLab anyone can set their fully working CICD pipeline from scratch after a quick googling, which is absolutely not possible with GitHub actions.

The only downside of GitLab is their pricing model. If it wasn't for GitLab's not-so generous free tier, there wouldn't be any reason to bother looking at alternatives like GitHub and the like.
Wow, this article hits home. Recently my wife and I were admiring the full moon, and she wondered aloud how many moons we'd been together and said, "maybe you should use your programming stuff to find out."

A month later I surprised her with a home cooked Android app called RacoonMoon. It features a random picture of us, and along with some very cheesy love messages and inside jokes, says how many moons we've been together. It barely works, and she loves it. We are the only two users.

I wrote the app in Python and ported it to Android using Kivy, which was not an easy or straightforward process. It seemed to be the best way given that I didn't want to take the time to learn Java or Kotlin, but if I were to do it over maybe I'd bite the bullet.
> Redirects are done in js

Redirects definitely happen in more places than you think/see, mostly because almost all tooling handle redirects transparently to the user, so you don't really notice it.

Doing redirects in JS is a huge waste of resources as well, as you'll need to load a full page with it's body (meaning the browser will parse and execute it) while having a 301 + Location header means the browser can redirect quicker without executing more stuff.
One Dreamer: a game about game development where you have to fix the bugs
If, say, Cuba joined a Russian military alliance of their own free will and started setting up a military installation with a couple of Russian missiles of uncertain providence, would the US tut-tut quietly or would it be a war situation? Because as I recall it was considered a major crisis that nearly doomed us all. And Cuba is further from the US than Ukraine is from Russia.

Those countries should have been vetoed out of NATO after considering the look of the situation to Russia. There should be no countries aligned with the US military within a very wide margin of Russia, and the alliance should have stopped expanding north-east when the USSR fell. Militaries deal in present realities, not how voluntarily people signed up for military alliances. Russia should not have to wonder how trustworthy the US is being (spoiler: the US is not trustworthy although they are a lot less capricious than the average nation). It is easy to see why they might have felt pressured to invade after the Ukrainian revolution, without needing to resort to "well Putin must just be that evil & crazy!".
Because there's no central commonality, it doesn't seem like remote work is the kind of thing a community will form around, except in cases where there are other commonalities like physical or interest proximity.

To put it another way, remote workers who live in the same town can get together over coffee, and remote workers who are into trombones can get together in r/music/trombones...but

online is limited.

If HN, Facebook, and Twitter don't solve the social dimension, a new platform probably won't either.

There's probably room for a platform with services for remote workers, however. And that's maybe the first step toward a social platform.

Good luck.
Russia has no say over Eastern Europ and ex-USSR countries. If they want to join NATO, there is nothing Russia can do. Justifying a war based on this is just very wrong.
Choosing cloud regions for lower latency: A data-driven approach
Wow, I could not feel more the opposite of this. Tailwind is providing an entire DSL of class names for you to learn, whereas the Open Props example is literally just writing CSS.

"How can I make it end at a slightly darker blue etc." -- you're just writing CSS, so just write the CSS you want instead. ie OpenProps is just providing you a CSS variable that expands to something like: `background: linear-gradient(blue, pink);`, and if you want to change it you can just change it.
Not supported by literature of any age. Marriage for love has been important for centuries. Millennia.
I agree with you for the most part. Like I said, I consider it too dangerous to use, not that it's somehow impossible. But the reason I consider it too dangerous isn't that it's a Violation of the Holy Spec... everything and everyone violates the spec, to a first approximation. The problem is that all the libraries in the world and middleboxes and everything else violate the spec in different ways, and allow/enable/afford their own set of violations that do not match.

If you spec an HTTP API as having a GET with a body ("because otherwise the query string will be too long" or something), I can virtually guarantee you that as soon as it is even slightly popular you're going to get "But I'm using this library over here in some language you've barely heard of and its author thinks GET can't have a body so it won't send it to you, plz hlp".

I wouldn't consider it safe to deliberately use in an API. Similarly, I once accidentally sent a real reply as a 404 response (just a plain ol' bug), and while I did of course fix it quickly in my API, the user on the other end didn't have a good option for just ignoring it and moving on in the meantime. Their HTTP library got really feisty about using the body of a 404 ... I think it was something like, you could read it as a bag of bytes but all the clever "let's automatically JSONify this" and stuff functionality in their framework wouldn't fire on a 404. This is why I mentioned that one. It is a bad idea to treat the content of a 404 response as anything other than an advisory response to a human, and even that has some funny characteristics based on browser screwiness over the years.

There's definitely violations of the spec safer to specify, and violations less safe to specify; they're not all created equal.
I'm responding to the claim that you only need the ability to find a sibling for the nextSibling method.
tomlq would've been a nicer name!
Where should an aspiring serial killer get their self-worth from then?
CPI Report for August 2022 [pdf]
Does BeOS work this way?! Maybe I need to play with it. I booted Haiku in a VM once or twice but never really dig in further.
Goroutines have been very successful.
https://news.ycombinator.com/item?id=32821844
I agree, and even Hitler is dubious. I am Czech, and the Munich Agreement is very emotionally painful for us. However, objectively, I don't think Czechs defending (like the Ukraine chose to) would save more human lives. (Nor would fighting against Russian invasion in 1968, btw.)

And arguably in the case of Ukraine the appeasement already happened after 2014 Donetsk war.

I also heard that appeasement was backreaction to WW1, where everybody was eager to go to war and it ended in bloodshed.
I've been following this game's development for several months now, and it is truly a labour of love. It was released last weekend after 7+ years of development (a quarter of the developer's life) and it is INCREDIBLE. I've always enjoyed bug fixing and the way that he has taken that process and turned it into gameplay is fantastic. It is also stunningly beautiful, mixing pixel art with modern graphics in a wonderful way.

Utterly unique.
I was going to nitpick about your usage of the hoi polloi, because “hoi” means “the.”

But this is the wiki entry:
“Some linguists argue that, given that hoi is a definite article, the phrase "the hoi polloi" is redundant, akin to saying "the the masses". Others argue that this is inconsistent with other English loanwords.[11] The word "alcohol", for instance, derives from the Arabic al-kuhl, al being an article, yet "the alcohol" is universally accepted as good grammar.[12]”
>What's the data point, beyond Hitler ?

Ukraine 2014. The West should have stopped Russia back then and there.
Yeah, either putting the content + backend behind the same Origin, or just add `Access-Control-Allow-Origin: *` as a header to all requests (and the other ones), which one you think is most popular for people with no time to build things properly? ;)
You get burned even once, you get wary.
Do you come to this site looking for old established tech to talk about?
Probably this: https://github.com/dflemstr/rq
The chipmunks around my house are dumb af. They get scared of the cat, but after 2 minutes of sitting still they're running right by him again. It's almost like they evolved to be food.
These things can run in the middle east or India. The concern is that river life will be harmed.