skysight-inc/HackerNews huggingface dataset:
> Buggy multi-threaded code creates race conditions, which are the most dangerous and time-consuming class of bugs in software. > safe and scalable parallelism is achievable by minimizing or eliminating concurrent access to shared mutable state. > Rust is designed from the ground up to facilitate this

Does async code with mutable state sometimes result in race conditions in rust?

I have had that experience with JavaScript. For example old school short timeouts with a function written with a closure implicitly expects the state to remain the same but a race condition happens asynchronously to change the state, and then the closure is called, and then the closure code fails. A problem of unintuitive surprise to the programmer that can happen with async code (even without thread concurrency).
https://archive.ph/I7oxJ
When you shift your weight to the left, the bicycle tilts right to keep the center of gravity above the track line.
That's... quite the straw man you've come up with there. I don't think it's really even necessary to respond to it, because that's something that just wouldn't happen, and isn't even particularly related to what is happening, or what I was talking about.
Yeah, I think we're in agreement.
>the result will be humanity subjugated to AI. Some say this has already happened

Author Charles Stross ('cstross here on HN!) on corporations-can-be-described-as-AI:

https://www.antipope.org/charlie/blog-static/2019/12/artific...
You're bringing back waves of nostalgia. I used to frequently read AllAPI.net and come up with mischievous implementations for my own amusement. A quick Google Search netted the following project (https://github.com/microsoft/CsWin32). Looks like my evening is gone.
Sure, but that ship sailed millennia ago.
> The bicycle and riding style used in the video do not provide a good illustration

It's good enough if you already understand it and know what to look for; just not the best for convincing someone who doesn't believe the physics.
This is cool, so in laymans terms - you can disable the bad "genes" and just express/enable/push the "good ones."

So how do we define what is a bad gene? If we use crispr, can we turn it off on an actual, live, aging human being or only before they're "born" or such?

Is there a good resource/book that gets someone from zero to a basic biological understanding and background of this and above? I really have no idea, nor do I know who to ask. :(
I would not advocate for rewriting everything in non-Python. It is what it is, and it excels at tasks related to the important libraries discussed in this topic.

Just as Python wraps the libraries which do the heavy lifting in C, I would try to keep the Python wrapper as minimal as possible and stick some interface in front of that. Instead what happens often is people choose to either build more and more around this important stuff, staying with Python, or they say, "We're better off just supporting one language in-house, and Python is required already; so we are a Python shop."
I agree, but I feel like discussions about latency always focus on competitive play, while for me at least, low input latency is important even for single-player FPS games. Before 144hz+ screens were popular, I’d turn off v-sync and deal with tearing just so the mouse movement didn’t feel “mushy”. It didn’t make me a better player, but it FELT better and therefore increased enjoyment.
> That is too much complexity for a single security-critical program.

Looking at this x509 page, a lot of these options kind of seem like "required complexity" to me. There's a few things that aren't really needed (like the string conversion stuff) and a few things that could be condensed in one option (the "Print [..]" options can be one "print [list-of-fields]"), but those are relatively minor things.

The thing is, SSL/TLS is kinda complicated, but that's not really OpenSSL's fault.
I'm sick of hearing about "return to the office". Most of us aren't returning to an office. If we're lucky, we get a desk to ourselves in an open-plan space. Otherwise, you're sharing a desk with some other poor bastard. Why the hell should any of us put up with that? Let the extroverted, neurotypical Type A's in the C-suite collaborate with each other. That's fine as long as they leave us the hell alone and let us do real work at home.
> 2. Slices are confusing types that create subtle and hard-to-diagnose data races

The "Slices" example is just nasty! Like, this is just damning for Go's promise of "_relatively_ easy and carefree concurrency".

Think about it for a second or two,

>> The reference to the slice was resized in the middle of an append operation from another async routine.

What exactly happens in these cases? How can I trust myself, as a fallible human being, to reason about such cases when I'm trying to efficiently roll up a list of results. :-/

Compared to every other remotely mainstream language, perhaps even C++, these are extremely subtle and sharp.. nigh, razor sharp edges. Yuck.

One big takeaway is this harsh realization: Golang guarantees are scant more than what is offered by pure, relatively naïve and unadulterated BASH shell programming. I still will use it, but with newfound fear.

As a multi-hundred-kloc-authoring-gopher: I love Go, and this article is killing me inside. Go appears extremely sloppy at the edges of the envelope and language boundaries, moreso than even I had ever realized prior to now.

Full-disclosure: I am disgusted by the company that is Uber, but I'm grateful to the talented folks who've cast a light on this cesspool region of Golang. Thank you!

p.s. inane aside: I never would've guessed that in 2022, Java would start looking more and more appealing in new ways. Until now I've been more or less "all-in" on Go for years.
I just want my editor to be fast. VSCode had noticeable lag even on medium-sized projects when opening files, scrolling or entering text. Not much, but enough to really annoy me. Sublime Text always felt much snappier and reactive to me.
It's kind of a dead end I feel. It can turn out that everything is used for everything. It's not designed so there is probably no clean decomposition nor is it necessary.
I would rather buy $200 table from Ikea use it also for 5 years no problem and when I don't want it give it away for free. It is still $40 a year.

I also don't know anything about designer tables or design furniture so I probably would get ripped off on buying first and then second time when selling.

In the end I don't have any patience for selling things so I would even low ball the price just to get rid of stuff. Heck even giving stuff away for free is sometimes annoying.

If I would plan not to move anymore or be sure to live somewhere for 20+ years I could consider designer furniture even if I would pay too much for it :).
Just to note. You can do `docker buildx install` to make it the default backend of `docker build`. So this precludes you from having to switch commands everywhere. I haven’t figured out how you can let it build multiple architecture by default, so without having to pass the —target flag.

On my m1 I see 16x performance differences in builds in favour of native over emulated. Even simple shell script run slow or seem to stall when emulated.
Which was a one time payment early in the pandemic.

So, 2 years on to announce that "Free COVID money is over" is extraordinarily disingenuous.
My plan, in the event of civilizational collapse is to somehow make it to New Zealand and pitch start-up ideas like the bejesus to Peter Thiel until he lets me into his luxury bunker.
Swiss and Norwegian folk are from Europe. They are countries in Europe.

Are they are a part of the post-WWII effort to forge a European identity i.e. being European. Seems to me that this likely varies generationally and also individually. I suspect there are numerous Swiss and Norwegian people that are meet this criterion of "being European", but it may not be the majority. Of course, the same could be said for the populations of the member states of the EU too.

It is definitely true of the UK, where there are lots of people who really do think of themselves, even with Brexit essentially complete, as Europeans, and lots of other people who absolutely reject that identity. For those who do think of themselves as European, Brexit has made it much, much harder for them to live as if that had real consequences.
Right. Imagine a car. Now consider how it is abstracted to you. The wheel, the controls, the pedals. That's an abstraction of the complex system that is a car.
Why does the latest IPCC climate report scare you so much? While we're still not on a great path the worst case scenario has gotten better.
You hit most of the same issues (and some additional ones) when compiling the same code within one translation unit...
the book that showed me what a pointer is.

there is a hair rising line in that book in italics! almost like in a horror book like exorcist or dracula.

'turn the book on its side. can you see it?, its counting'

hair raising stuff. thanks mr petzold.
Microsoft is known and memed on the "big tech community" for paying "peanuts" (less than other tech companies). Is the rest-and-vest kinda of place, or so they say. I'm sure there are some teams that work pretty hard, is a big company.
And suddenly that twinge of guilt I felt when buying knockoff Arduino boards is... gone.
The iOS App Store doesn't list permissions requested by each app either.
It appears the award was determined by an arbitrator, and the appeal determined by judges, so I'm not sure it's at all similar to the McDonald's case.

It sounds like another example of big corporations forcing arbitration on customers and then pulling out all the stops to weasel out when they don't like a verdict.
It's kinda funny to claim that something isn't real, because some studies done weren't valid, but then not provide evidence to the contrary.

Being unable to replicate studies showing that something is real doesn't mean that thing is not real, it just means we don't know.

This is of course just my experience, but I know that I've had unconscious biases that I've later managed to surface and suss out (and hopefully eradicate). So maybe unconscious bias isn't as common as these studies you don't like seem to suggest, but it certainly is real, as I've experienced it myself.
Oracle sucks.

I mean in general, but they have also not released ARM instantclient or even an ARM version of Java. I think its crazy that I'm using Microsoft's version of ARM java.

I'm also using Windows 11 ARM in Parallels, which does seamless emulation of Oracle instantclient / Java / PL/SQL Developer. So most of my workflow has not been interrupted.

Still, just another excuse to move to a better database. Now all I have to do is convince our heavily bureaucratic IT department to move away from Oracle. It'll be easy, right?
At first I thought he was just misinformed and tried to politely correct them, but now I see that they really just try to provoke people and using arguments of similar structures to the ones caring so much about displaying the Confederate Flag "because it's part of their American history".
Isn't it funny how the first scene in The Social Network is about how Zuck is insufferable?

That scene keeps getting its money's worth.
The cryptographic key is encrypted?
Why?

Can anyone really foresee a collapse of civilization which somehow renders all our technology useless and unrepairable, but somehow leaves access to computers and printers available?

I mean it's great to imagine if you want to be a pretend-prepper but the reality is that there will be millions of tons of food in the ground, tens of thousands of pounds of seeds available, oil, gasoline, kerosene, millions of cubic yards of fresh water. Lots of electrical generators, small and large, pretty much anything you need has already been built. etc, etc. You want to build a small house? Get materials from a large building!

We don't need a post-apocalyptic civilization to know how to refine cast iron, we need them to know how to repair diesel engines.
Author: write HTML right
Me: this green on black background is terrible to read, I'll use reader mode
Chrome: this author did not write their HTML correctly, so there is no reader mode available

How ironic.
> doesn't seem like a comparatively excessive restriction

I think there are some applications and algorithms that we just don't know a way to create an ordering for realistically fine-grained locks.

For example airline seat reservation. Someone clicking on seats to reserve them. You can't apply locks in a total order because... you can't read the person's mind on what seat they're going to click next.

Or Lee's algorithm.

(I wrote the first half a PhD on this.)

https://chrisseaton.com/research-symposium-2012/seaton-irreg...
The US army had portable reactors 60 years ago. They were deployed in Greenland, Alaska, Antarctica.
https://web.archive.org/web/20220404082426/https://www.usace...

At least some of them were produced at the Idaho Nuclear Engineering Laboratory, and one of them suffered an accident there due to operator error. That site was later renamed to Idaho National Laboratory when being "nuclear" became bad, and they're making these "new" ones, too.
Switching to PlatformIO is a nice way to go if you want a more sane version of Arduino package management.
Most RSS readers still know how to find RSS feeds (through the autodiscovery headers that used to power things like Firefox' old navbar support). So people still using RSS feeds in 2022 (such as myself) generally still know how to find them, icon or not.

But yeah, bringing new users to RSS in 2022 is a hard advertising/teaching experience. Instead of your RSS icon pointing directly to your feed in 2022 (because just about no browser today does anything nicer than wall of XML) you might try a more curated approach and link to an RSS reader you prefer and trust such as The Old Reader or Newsblur or something as.
Moving from the East Coast to the West Coast destroyed my ability to be competitive in counterstrike (not counting ranked queues) because the server I used to play on regularly was in Kansas or something and the added 50 ms of ping was enough to throw my aim off.

No offense but either you're at a really low level or else you're playing games that aren't actually very dependent on reaction time.
You’re better off becoming super fit and staying young. He might let you be his blood boy, way better odds this way.
Point Nemo, the Most Remote Location on Planet Earth
If the people in the company want to be good (and they should, because being good makes you happy), they will ensure the financial success of their workers. If the people in the company want to be bad (and they shouldn't, because being bad makes you unhappy), then they will callously disregard the needs of their workers, and say it's someone else's fault.
In a heavy fireproof box along with the birth certificate, and other important papers. If you want extra protection put that box in a larger safe. This really isn’t a difficult question to answer. If you are trusting a third party to store your things, when something happens to their service or they terminate your account randomly you have only yourself to blame.
It mainly seems to be Docker causing the problems. We run node.js apps, and all we had to do was update to the latest version node and a couple of dependencies (those with native modules). No app changes.

We run macOS aarch64 locally and Linux x86 on production and have yet to have a single compatibility issue (and we run a staging environment that’s identical to prod, so if there was occasionally an issue it probably wouldn’t make it to production.
> But that it occurs in India does not mean that it’s been carried forward in the US.

It doesn't mean that, certainly, but it seems plausible that it would be, to some extent. And while some lower-caste Indians in the US don't believe they've suffered caste-based discrimination, other do. So... it's here?
there were huge protests against vaccines and mask mandates not too long ago
(not making a moral judgment here, just saying people are definitely not afraid to voice their opinions loudly in public on some issues)
Lol "the hidden language of computer hardware and software" imagine calling Chinese a "hidden language" on an intro text book just because it's not immediately obvious how to speak it.
That's a ridiculously short time. If someone takes a position in another part of the world (perhaps behind the wheel of a large automobile), for a year or two, they could trivially find themselves coming back to a government they were unable to vote for, which will govern their lives for up to 4-5 years.

I'm not advocating for the rights of expats to be expanded, and I'd probably support some of them being shrunk somewhat, as a general rule.

I just think that a once-in-several-generational essentially constitutional vote is different, and that the normal rules (which I support) should be modified for such a thing.
Also, it seems like just knowing some of the dead ends would be a huge step up.

Like maybe we don't waste a ton of time and resources trying to turn lead into gold, or teaching left-handed kids to be right-handed, or trying to figure out which ritual to perform to which deity to make the crops grow.
I’m having the same issue on azure devops. The only way forward seems to be is running your own ado agents on arm machines you managed to arrange. Arm on Azure is a private beta that you have to subscribe for.

That wouldn’t be too much of an issue if you could just cross compile like you can with go. However graalvm can’t do this yet.
I am entirely free to have my own opinion which does not necessarily lie nicely aligned with various American political parties or groups. The whole idea that because my worldview does not align perfectly with yours that you get to start generalizing about 'Europeans sounding like neocons' is a bit strange.

As far as I'm aware the country where I live - and plenty of others - have contributed to various NATO exercises, budgets, weapons spending and in fact combat missions.

If you think that it was 'too little' then that's fine with me but it still does not align my world view with that of the neocons or any other American political organization. The world is a little bit more complex than that.

The Bush administrations reasons for interfering in Iraq had absolutely nothing to do with Iraq threatening their neighbors, you really should read up a bit on that particular chapter if you want to start arguing about it. And in spite of all the bullshit that led to that particular war there - again - were plenty of people from countries besides the US involved. Though, it has to be said, not at the same level but this in part had to do with the fact that the evidence that led to the Iraq war was about as dodgy as it gets.
Go 1.19 Release Notes (for 1.19beta1)
I can't find anything about Twilio's layoffs. Was OP fired? Or did the company laying off people?
You could be ambitious and fund the effort with a nonprofit. Maybe a Foundation of some kind.
I dunno. There are a lot of gas stations and truck stops last time I checked. Stuff stored in tanks underground tends to be usable for quite a long time.
DALL-E Mini – Generate images from a text prompt
Very much this. An external dependency gives you the free puppy, but the ongoing work is still yours.

One of the items, as you describe, is that external dependencies introduce unpredictable change on a timeline which is entirely out of your control.

A particularly annoying example that has happened many times is there is an exploit in library A which is now fixed in the latest version so we much upgrade. Oh but the latest version also bumps the dependency of some other library it uses to a version that removed a key feature we need. Infosec says you must fix the vulnerability immediately and of course the product team isn't willing to compromise on the feature loss. Oops. When you own the code you own these decisions.

Of course, some library projects are run very professionally and maintain a strict observance of compatibility within major releases, a long deprecation announcement process and so on. Other library projects, not so much. Definitely favor depending on the first kind and avoid the second kind.
They can avoid bufferbloat and they can use equipment on the last mile that doesn't add 20-30+ milliseconds of latency. Those are big problems on many ISPs.

Some of that is configuration, some of that is equipment, often you could instantly solve the problem with fiber.
I think the difference is that this book in about 200 pages or so, starts from two boys using flashlights to attempt to "communicate" with each and goes through simple circuits to logic gates to CPU, ALU, volatile memory, rudiments of assembly language to a high level language. That's the difference, hand holding you through the explanations with the emphasis on pedagogy rather than being a dry theory book.
Yes, I think that's very likely. Curious when the 'A' bit started being used, though.
Better get my next order of 'Dave's Insanity' in quick, in case it goes the same way!
Slices may just be one of the best and worst parts of Go. They're cumbersome, their behavior sometimes feels 'inexplicable,' and even as an experienced developer you are likely to eventually fallen into one of the traps where your 'obvious' code isn't so obvious.

That said... when programming in programming languages without a slice type, I always want to have one. And though it's confusing at times, the design does actually make sense; without a doubt, it's hard to think of how you would improve on the actual underlying design.

I really wish that Go's container types were persistent immutable or some-such. It wouldn't solve everything, but it feels to me like if they could've managed to do that, it would've been a lot easier to reason about.
A reason in favour of expats voting is that they should have a say on things that affect their citizenship.

You can definitely argue how far that argument holds sway - after all, any government could change its citizenship rules for expats.
But Brexit clearly was a different case than regular elections. The government was embarking upon a sea change for expats - changing the rules of the game while playing.
Something really annoying about this is that for some reason docker can't seem to easily switch platforms for base images. If you have an x64 base image and try to run an arm64 image on top, it'll complain. Why doesn't it just download the right version automatically instead of forcing me to solve it? Seems like there are still some rough edges here.
> People still prefer "hand scooped" ice cream enough that it's on billboards.

This is a circular argument though, you say people prefer people and therefore we will have a lot of people around.

Today leaders and rich people requires humans to wage war and to produce goods, those are the main thing creating stability today. When those are removed we are likely to see a sharp decline in number of humans around. Companies cutting out humans and just using machines as leaders and decision makers outcompete humans in peace time, and robot lead armies outcompete humans in war times, and soon human companies or countries no longer exists.