skysight-inc/HackerNews huggingface dataset:
> So your incomplete explanations are based on a single language model instead of a single processor model?

It's the language memory model incorporated by all major programming languages. That you are unaware of this tells me that you are a hardware engineer, not a software engineer.

> I've worked on many CPU architectures

And I've worked on computer architectures where it's not clear how to even translate "volatile" correctly because the memory system is that weird. I didn't bring that up before because I'm not interested in appeal-to-authority until people start accusing me of being an idiot who doesn't know what they talk about. I could bring up more bona fide credentials, but what's the point? You've already dismissed my expertise.

> You should at the very least qualify your statements to say that they're only true for application level programmers like yourself.

I did. Every single message, in fact:

> what most programmers would need to understand about memory ordering

> Furthermore, my focus is on a software memory model, not the hardware memory model.

> It's the C++ memory model

And actually, I would go further and suggest that kernel programmers might be better served by adopting the language memory model offered by their compiler rather than insisting on rolling their own and yelling at the compiler when they mess it up.
Less state changes the better.

Managing state is the number one enemy on software.
Thunderbird for Android / K-9 Mail: May 2023 Progress Report
Library of Congress has a large silver plate image of SF from a few days after the quake. A panorama from up in a balloon. Cool picture.

Edit: this one https://www.loc.gov/item/2007663901/
Carbon monoxide. https://www.ted.com/talks/carrie_poppy_a_scientific_approach...
> Good luck getting that to run in different environments because static or not, nearly every executable has dependencies.

Go compiled with CGO_ENABLED=0 disagrees, especially since embedding was folded into the standard library.

> Which of course you'll need to setup, patch, figure out how to restart apps when they go down and on and on. There's no easy out.

Recompile, upload, restart. If the VPS server goes down, that is what their tech support is for.

> And how do you back that up?

Either use LVM snapshots and tar or sigstop/tar/sigcont, and rely on whatever embedded storage engine you are using to be able to recover from what will appear to be a bog standard recovery from unexpected shutdown. If you are nice, arrange for an API to be able to take a complete snapshot of your running data.

> Postgres, Docker, Infra as Code and Kubernetes are pretty much best practices on any development.

That is debatable. There is a whole lot to be said about the virtues of a single binary that has no dependencies beyond a vaguely modern Linux distro.
I think there’s this concept in language theory that those speaking or writing strive for more complex concepts as it matches better their thoughts, while those receiving strive for more simplicity as it takes more energy to make sense of complex concepts (think about it as adapting the language to your audience).

But I think the main problem here is the famous debate of statically-typed languages vs dynamic ones. As statically-typed languages add more and more features to be more expressive, they have to work around the compiler limitations and create very bizarre syntaxes if they want to keep performance.

But maybe this is a tooling problem? What if we could see the code in a simpler way even if the actual code involves macros and templates?

Swift has just implemented macros that Xcode expand to show the generated code in a collapse/expand way, making it easy to understand what it does.
Music publishers are suing Twitter for $250M
This little bit of physics, electronics, material science or whatever is my major concern re: EV and why I prefer the hybrid concept (ie, carry one's charger). I do some fraction of my time going elsewhere on a 4-8 hours distance frame. I'm not interest in extending that trip due to frequent or extensive recharging times.

Also, from an emergency sense, they still haven't figured out how to carry a gallon of electrons when trying to get stuck motorists to move. All of this is solvable unless they collide with some energy-density problem that ultimately limits battery technology. Would be ironic if EV's are heavier than their corresponding ICE's...
>multi-threading is the future

Haha, reminds me of an image I saw with a farmer from some developing country saying "irrigation is the future".

For everyone else multithreading has been the status quo for quite a long time.
They'll pay any politician willing to prevent them to be exposed to competition.

They don't care about red or blue, only green matters.
After having the displeasure of visiting Frankfurt and having to spend about a month using the main train station... I have to agree. I didn't really understand why junkies would line up at pharmacies until like the 3rd day... until I realized "oh, they get clean needles here". I used to be fairly libertarian on drugs, but having experienced the state of it in the U.S and Germany, and comparing with Asian countries like Singapore and Taiwan, I prefer the latter. I'd rather not see it. I'd rather the streets be clean. I'd rather feel safe going to the metro and having it not smell like urine and feces. If these are the two paths I have to choose, then ban the damn things.
> These chips are intricate enough to potentially contain backdoors. While it is something I never thought about with respect to Espressif, it does seem plausible that they could be a target.

They could indeed be, as already are all PC's, phones, TVs and any smart connected household appliance, no matter if they're built in China. I would never ever consider building a IoT home system wthout putting it behind a dedicated and firewalled hardware subnet that protects from the outside and from the inside. Ok, the firewall hardware itself could contain tampered chips with firmware instructing them to encapsulate and redirect certain traffic outside of the rules without reporting it, but that's another story; when in doubt, I prefer to consider every piece of hardware that is closed and connected as potential spyware.
> If your program needs an improvement in speed, you can multithread it. The opposite isnt true.

What do you mean by "the opposite"? "If your program doesn't need an improvement in speed, you can't multithread it"? "If you can multithread your program, then it doesn't need an improvement in speed"? Well, yeah, obviously both of those statements are false but they're also quite useless, so who cares?
Oh yes, sorry, thank you, good correction!
I don't think you should even been playing those mind games with yourself. Focus on what you can control which is leveraging the tools available to you and have some grounded perspective. There's a lot of noise. There's also a bunch of coincidental events happening simultaneously (economy, post-covid recovery, company right sizing, etc) that are obscuring things.
Mega was a re-thinked Megaupload trying to accomplish the same thing but they are very different as Mega is built with a different tech/business architecture to try avoid crossing the lines into illegality that Megaupload crossed.

The original Megaupload was built to take advantage of the market opportunity existing in the grey area between copyright infringement and personal sharing. They were not trying to make something illegal, instead they were trying to make something as close as possible to illegal while still being able to argue that they are technically legal, which they failed, as the powers-that-be decided that they crossed the line into illegality and persecuted them. After the failure of Megaupload they tried to do the same thing again with Mega, but armed with the new knowledge of what is now considered clearly illegal, what will get the persecutors knowing on your door, they redesigned the new product to not cross those new lines.

More specifically, Megaupload fell because it was provable that they knew about the individual instances of piracy, so they designed Mega around end-to-end encription, so Mega users can still pirate things but Mega can always claim ignorance as a defense. There was/is no difference in persecutor priority in regards to copyright (copyright infringement is still a top priority evil today), just a difference in what they can prove against those two different companies.
Having more than one way of doing things is good when it's a consequence of a positive, well-curated language evolution. I think that's Rust case. It doesn't mean that it will become more readable ("beauty"?) in the future, there's a lot of line noise already: <'a>, foo::bar, #[define(...)], etc.

Or, ehem, JS. I think the JavaScript -> ES6,7,8,9 evolution is a good example of positive change: the language improved immensely at the cost of having even more idioms, TIMTOWTDI and transpilers like TS. The old parts are now marked as bad practice and optionally linted to hell. You still have to put up with W3schools-level code once in a awhile though.

Perl and C++ to me would be some bad examples. TIMTOWTDI hampered their evolution way too much. Perl froze for 10 years+. Python was much braver: their folks evolved (from 2 to 3) by breaking compatibility in order to remain true to its Zen.

Zig and Go are examples of rigidity, one-way-only extreme, which is a pain sometimes but, in Zig's case, maybe a good practice for a young language project. Readability in Zig is excellent and I like the choices with the @ functions ie. @as or @ptrToInt() instead of piling-up parens and asterisks. Definitely a case-study of readability and evolution for the future to come.
It’s not just you but it is you. :)

You’ve engaged with it so they keep throwing it at you. My kid broke my YouTube when he was little watching awful kid videos. You need to find something high value to reset or break the profile. Stuff like crypto and gold coins are easy to spot and skip and high value. So if you leave a gold coin playlist running, you won’t see political ads.

Over time, the gold stuff will go away.
I find the root premise flawed. I have known many people that loved working on cars. The plethora of very old vehicles where I live kind of holds that up, as well. My truck is 23 years old, and I'm positive it isn't even close to the oldest around here.

Even closer to the general idea, the radio show "Car Talk" was less about cars than the name would have implied. Would love to see it revived in spirit.

That said, still a fun read. Not entirely sure there are general learnings that can't be found anywhere. Such that I would push for the takeaway of "don't stop looking for lessons when out of the job or classroom."
> FYI Rust doesn't stop you from writing bugs into your code

You are committing the perfect solution fallacy [0]. Rust won't make you have no bugs in your code but don't conflate some number of bugs with a reduced number of bugs, a reduction is still a meaningful outcome, otherwise we'd still be writing in assembly.

> We're talking about control systems, life saving technology, technology that's running in outer space.

Indeed, that's why we should use more memory safe languages, because we are dealing with critical systems. Just because they were written in C does not mean that they should continue to be. It's like digging a hole with a stick, and when someone suggests a shovel or backhoe, you mention that all previous holes were made with a stick. There is no relationship between the previous work and what should be done in the future.

[0] https://en.wikipedia.org/wiki/Nirvana_fallacy#Perfect_soluti...
One HTML Page Challenge
> That provides an explanation for why the consumer might choose to buy from a dealership, but not a reason for why they must.

The same could be said of basically anything. Consumers could choose to do anything. Suppliers anything. Now we are anarchists. yay!

But we don't we live in a heavily regulated society, and what seems to work fairly well is having a dealership system. Now we could just remove the word dealership and require OEMs to provide everything that the dealership does, and I would be fine with that, but IMO this is a shorthand for that.
No that's not what I'm saying.
Taibbi is paid by his subscribers. The end. He's not influenced by the vendors of his pen or his pc or any of his other suppliers. Each of those supplier companies has owners and nobody need care.

If substack the company don't like his writing and try /anything/ at all, he takes _his_ business away from substack. Substack work for Taibbi. Taibbi is the customer. Substack have as much influence on the stories he reports as your bank rep does on your work. Substack's owners are wholly irrelevant.

The point is that Substack is completely, totally and utterly beside the point when it comes to journalistic influence & integrity. It's unclear to me how you are missing this point. The ownership of substack has zero relevance here. None. As opposed the ownership of the WSJ and Fox News (or msnbc, cnn, nyt, etc) which clearly and obviously is extremely relevant to the output of any journalist /employed/ by those companies.
> I do want to note that since I host many of my own local services and many devices are local only. I only lost the ability to use Alexa.

What a nothingburger
Thanks for a detailed response!

I also use Nim quite a bit on linux/windows for machine-learning purposes.
But even on these systems, It is generally a pain to try to trick Nim into using a compiler not directly supported, as some original hard-coded flags would be incompatible with the one i am trying to use,for example NVCC .

Follow up question, Do you generally use Nim on ESP like chips which run some form of a RTOS, or also on bare-metal micro-controllers ?
Probably Go. It is really well suited to this sort of thing.
what is a bind cache? always assume most of us have terrible knowledge of networking
> Boom, less engineers needed to produce novel products or features, more engineers on the market, depressed wages.

Possibly. But software is funny - increased software productivity tends increase demand for software. Perhaps the job market will be saturated, but perhaps the market will simply grow.
>One time, when a customer asked him to help revive a beloved 1983 Honda Magma V45 that hadn’t been driven for two years, Crawford responded harshly: “Assuming it’s got all the usual problems from sitting, you’re looking at a thousand dollars to get it back on the road.

First, it is the Honda Magna. Second, this mechanic took him to the cleaners. The Magna isn't nearly as complex as a Goldwing. $1000 for cleaning the carbs and a new battery simply isn't honest.

https://www.youtube.com/watch?v=q7txrxM-NCc
The GIL will never be removed from the main python implementation. Histortically, the main value of GIL removal proposals and implementations has been to spur the core team to speed up single core codes.

I think it's too late to consider removing the gil from the main implementation. Like guido said in the PEP thread, the python core team burned the community for 10 years with the 2-3 switch, and a GIL change would be likely as impactful; we'd have 10 years of people complaining their stuff didn't work. Frankly I wish Guido would just come out and tell Sam "no, we can't put this in cpython. You did a great work but compatibility issues trump performance".

Kind of a shame because Hugunin implemented a Python on top of the CLR some 20 years ago and showed some extremely impressive performance results. Like jython, and pypy and other implementations, it never caught on because compatibility with cpython is one of the most important criteria for people dealing with lots of python code.
Cheng Yuan, Liu Dazhi, and Wu Gejianxiong, the three founders of 996.ICU anti-overwork project, was sentenced to prison for "subversion of state power", citing involvement with "oversea powers"

(Posted in Chinese, translation available via Twitter)
> your AI only has access to data that the end user already has access to.

That doesn't work for the same reason you mention with a DB ... any data source is vulnerable to indirect injection attacks. If you open the door to ANY data source this a factor, including ones under the sole "control" of the user.
Cadet Blizzard emerges as a novel and distinct Russian threat actor
Welcome to hacker news! It can take some adjusting to get used to how we do things around here if you’re coming from somewhere like Reddit. If you have something to add to the conversation, please do so. Otherwise, avoid posting flame bait comments like this which are entirely void of substance. Frankly most people couldn’t care less about your (or the person you’re responding to) opinion on colonialism. The proper place to express your angst is with your therapist, not in a hacker news thread.
This seems to happen all the time though; schools, churches, larger companies all seem to have their own legal system. That is, if your kid gets beat up at school, it's dealt by the school (and parents), not the police (because assault); if a priest diddles kids, they get moved elsewhere and the whole case is silenced.
I have no idea how a speedup appears to you. On the graph it is quite clear that, with time (and therefore experience), the average amount of time needed to build one is raising.
Oh no, half of hackernews population will be jobless!
https://en.wikipedia.org/wiki/1960_Valdivia_earthquake
No, it's more restricted than that. Think of 2d planes in 3 space: There are an infinite number of planes that you can construct on a line from A to C (they're all rotations of a plane extending out from that line).
Same reason most people don't write Rust: The talent, best practices, and vendor ecosystem are less accessible. Similar to Rust it's much more accessible than people _think_ though
The "relevant From trait implementations" are the ones defined on the value wrapped by the Option or Result.
> contractor and never has to deal with the repercussions of their actions.

This doesn't match my experience of contracting.

Not caring about code quality and then leaving others holding the bag of sh*t is frequently what "ladder climbers" do, and those are, by definition, on payroll rather than contractors. For a contractor, there is no ladder to climb, but willingness to get one's hands dirty is definitely part of the job description.

Contractors are quite frequently the people who are brought in at extra expense to maintain mission-critical infrastructure when the employee who made it is no longer at the firm, or has moved on to different responsibilities. After having gone through several contracts, a typical contractor will often have a lot more experience with different coding practices and their respective outcomes and a deeper appreciation of good engineering.
Applying the Gestalt Principles of Design – Proximity
Hmm, I think I got my math wrong too.

What is a proper distance function is (1 - |a*b|). That's proportional to the distance between those points on the plane spanned along the circumference of the circle/sphere/hypersphere as it's projected onto that plane.
But do they actually get better performance out of a it then induction? That's why OP mentioned woks they are one of the rare things that is somewhat better on gas vs induction.
They SHOULD be on separated infrastructure.

Sometimes your separated infrastructure is not as separate as you think. True story. Northwest Airlines (prior to merger with Delta) was grounded for a couple of days in the 90's due to a backhoe cutting through their data and communication lines about 300 yards from their control center. Both vendors were using the same utility right of way. So separate systems, separate vendors, separate cables buried in the ground next to each other. One backhoe operator took them both out.
There’s also a long history of fire brigades not fighting fires but instead demolishing homes to keep the fire contained.

For small wooden construction that’s a bit easier than for large victorian mansions though.
On the contrary, our current lens is much more diverse and inclusive due to how much exposure we have to different cultures and viewpoints.

It's also much more accepting and empathetic to those who were bullied for being different.
Do you think Elon Musk turned into a hardcore Republican just for the political favors? It just seems so blatant.

There has to be some kind of conflict of interest here. Elon was literally blasting out the DeSantis presidential announcement to his millions of Twitter followers, and he continues to act as a mouthpiece for Republican ideology.
The "and that's OK" part of the sub-title of this post needs some support!
The idea that periodic replumbing and rewiring and replacing roofing felt costs less overall than a complete rebuild is questionable enough in terms of financial cost, even more so in terms of carbon output cost.

Sure, the [carbon] accounting looks a little different if you're having to pull out most of the load-bearing walls to accommodate a change of use and underpin to build on top or considering replacing old masonry with something built to maximise energy efficiency. But rebuilding entire houses to keep up with the latest fads in mobile charge ports and mixer taps is about as good for the environment as "fast fashion"!
Illegal in many countries such as France
a bit of context - posted this because i found it via https://twitter.com/willdepue/status/1669074758208749572

if they replicate it in 2023 it would be pretty interesting to me. i can think of a few times a year i need a good scraper.

but also thought it a good look into 2012 Michael Nielsen, and into thinking about performance.
YC W24 early applications have opened up
Psychedelics Unlock Learning Windows in the Brain
What Motorcycles Teach About Maintenance: fuel injection is great.
Embed GitHub Actions in Your Docs
I dont know, seems kind of silly. Surely people implementing a dead mans switch would do something along the lines of "if i dont ssh into this box every 12 hours" or something.

Destroying evidence is a crime, so they can always just arrest people who do that for that.
My prompts are pretty basic but also I have to spell everything out or the output will be wrong. I can poke and prod until I get something approximately correct, but I have to give step by step instructions for the simplest things like you would when coaching a slow student.
Was recently in a fairly new construction house in a very cold climate state that did not have a full basement below the frost line. There was a partial 8’x8’ corner that sunk down to where the water line came in, but the rest of the footprint was a crawl space. Losing the basement does affect the style of building that is economical to build on top though, mainly due to building codes.
I've read ZATAOMM some time ago and remember it highlighting my bias in perception. Mostly you look at things for what "they are" or "how they look" but not "how they work" or "their potential uses". I found that quite insightful and thought it was applicable in my work as well. I can't tell if it actually was though. :)
I buy that dealerships are paying off state government officials as part of their lobbying efforts. Putting on my cynic hat, my question is, why aren't automakers? I mean, other than Tesla, Rivian, and Lucid, who presumably have no dealership footprint to protect. I know Ford also wants to sell direct-to-consumer, and I have no doubt they've got no ethical issue with lobbying politicians. So, why not shell out a few million?
The 'recycling' of plastic sure didn't happen to any promised level. We definitely need to ban single use plastics.

Flipside, I suspect there wont be much 'accountability' on this one. No blame or punishment needed, just improvement of the situation. Better future this way.
And SARS 1 itself was leaked from a lab four times. https://en.wikipedia.org/wiki/SARS#Laboratory_accidents