skysight-inc/HackerNews huggingface dataset:
> (And the number of times I've watched a dev attempt to implement some standard while steadfastly refusing to read the standard. Then I proceed to find bug after bug, trivially … because I am reading the standard…)

This is a large part of why I expect the binary protocols HTTP/2 and HTTP/3 to be more reliable and less buggy than the textual HTTP/1 once all the dust settles: you won’t get far without reading at least parts of the specs, and they’re harder to implement, so there will be fewer implementations, with a higher average quality.
It's not easier to write "super complex stuff" in C++ than in Rust, precisely because C++ has much more cruft that the compiler can't check for you.

And so what if Rust is lowering the bar for entry to systems programming? I'd much rather fresh ideas and fresh blood enter the field, than it slowly dying as the only people with arcane C/C++ knowledge slowly retire/die.
I don’t want my drive to handle encryption. That’s what operating system is for. It’s not only much more flexible, but also much more secure.

Have you seen quality of the code that runs in most of the embedded devices firmware? It’s a huge surprise that any of the devices actually work. I don’t trust them a second to implement any secure encryption.
For figuring out how to build complex systems I’ve started doing something like this too, but in prose form, in a separate document, purely as a form of thinking through how the pieces will all fit together. Most recently, it was for building a multitrack video player, and working out how to organize the various parts (decoders, mixer, compositor, player, handling seeking, etc etc). I drew out a TON of block diagrams while constantly feeling like they were missing the how and the why, and then I sat down and wrote out my thoughts it helped a lot with getting clear on how it would work.
Unlike C++, the Rust compiler actually helps you when you encounter those complex concepts, first by refusing to compile in tricky situations, and then by providing helpful suggestions.
I've been using an app called Calctape[0] for years that sounds similar to what you're describing.

It's essentially a 4-function calculator that records every step on tape, but you can edit any digit anywhere and all related steps are immediately recalculated, like on a spreadsheet.

[0] https://calctape.app/
That sounds like a way to guarantee your relationships are transactional? And sounds a bit pessimistic of the value in other humans? The article resonated with me quite a bit, and reading your comment made me reread the article deeper to better respond.

To your points:

1) the article kind of says this. Their "T1" friends are very small. 2) are they? I have people I really connect with on computers, tech, etc and others I am friendly with and we can hang but past that there's just nothing except two civil friendly ppl hanging out. This is aside from the people I'm _really_ close with. 3 & 4) why would anyone want a variety of acquaintances, that's just aiming for everyone in your life being transactional? I loathe this idea, to just be surrounded by people who have varied interests but so much emotional distance as to not be there. I have had fun in groups like that, but if that was _all_ my social relationships I would feel terrible.
Alt reason why "Apple continues to support old hardware":
If some people found out that they NEED to get a new phone every 2 years that costs $1,000, then they might look to another cell phone manufacturer.

I'm sure the store is a factor though!
No, they shouldn't. Higher education should be accessible to all.

If the "higher taxes" argument is what's implied, the return on an educated populace would show in GDP, likely reflect in lower crime rates, improvements in quality of life, among other things.
Also if you aren't a citizen and your immigration status is dependent on your employment (or you are
an illegal immigrant), you can be deported.

But also, given the rest of the post I suspect it was a typo and prottog meant to say "it's likely that most employees in this kind of circumstance can't tell their employers to stuff it without any adverse consequence"
It seems that what really happened was that this novel coronavirus became just like the common cold: endemic and benign.

It's often said there is "no cure for the common cold", and millions get it every year, but they don't close schools because of it. The common cold is also a coronavirus, that was probably quite novel around 100 years ago, but now the vast majority of people have enough immunity to it that the only variants that spread are benign.
Given today's low cargo crew counts, it isn't crazy to think about the calculus of sinking cargo ships vs fighting an actual war, in order to prove ones seriousness.

Say, because Taiwan was being invaded?

And in the form of a blockade, of course.
Yeah, suicide by cop is a thing.

My point was that the comment about divisiveness between teams red and blue in this regard was divisive as well in how it was framed.

Police are granted incredible powers and have historically not had the best oversight, let alone relations with "minorities".

There are real problems and they can be addressed but that will never happen as long as we can't even agree that the "what" exists, let alone if the "how" is correct.
Intro to satellite image classification with neural networks
Perhaps I'm naive but if I'm reading this right the market for their products went up 46% and has now fallen 0.9% and this predicts the failure of plant based faux meat market?

"In the US, meanwhile, the tougher economic backdrop has depressed a market that had started to struggle last year. Sales were down 0.4 per cent in the 32 weeks to early August, according to data provider Spins, after they fell 0.5 per cent last year. Sales had surged 46 per cent in 2020."
Artist is dominating AI-generated art, and he’s not happy about it
When it suits their agenda, it seems they are quite happy to make statements.

I wonder who issues those statements, absent a media department?
Let's be honest, `y_i(array, 10)` is much less readable than `array[10]`. Sure, you can program with bounds checking, but it's less readable, and less newbie-friendly.
> which is often easiest to conceptually think about

Absolutely, but is also the easiest to shoot yourself in the foot with. Trade-offs! I'm biased though, I'm a big fan of deep-copy channels (which for small shallow objects is still fast), though not having the option at all for shared memory here will be a bit of a pain for certain things of course.
Imagine if, after criticising the panel gaps on a Tesla, a representative from Lego points out that Lego cars don't have this problem and that Lego has a steadfast commitment to precise tolerances. As someone who uses (and is continually appreciative of) multiple AirGradient-derived devices throughout my house, my immediate reaction was one of confusion given how monstrously incomparable your product is to an iPhone.

AirGradient hardware is little more than a plastic box and a relatively basic PCB which makes around a dozen connections between few off-the-shelf prototyping components which need direct exposure to room air — they can't be sealed or weatherproofed. Repairability is literally the default state for this class of product; making it less repairable would have required more effort.

Apple devices weren't made difficult to repair because Apple actively despised repairers. They were difficult to repair because Apple lacked sufficient concern over repairability and had other priorities such as as thickness, weight, simplification and efficiency of manufacturing.
So, the reason these systems use something like Bitcoin (or Ethereum, whatever) is because the goal is to build programmatic money, and you can build that on Ethereum and you simply can't directly build that on a "traditional currency" without first writing an adapter (such as some stable coin, as either a centralized regulated entity or as a decentralized protocol) to some decentralized programmatic system that you can then piggy-back on top of as a settlement layer.

The way that then, for example, (and this is really glossing) Lightning works is to provide a number of hypothetical signed Bitcoin transactions that rely on each other in a way where, if someone attempts to screw you over, you can put down one of the other transactions and move to a different state. You make it sound like Bitcoin is purposefully crippled to prevent this kind of performance enhancement, but one of the few and subtle big changes to Bitcoin was to support this!

https://en.wikipedia.org/wiki/SegWit
Not really, rust has an excellent build system (better than any c++ build system I've used), great community accepted libraries for just about everything integrated well into the build system, catches a lot more "move semantic" and ownership type errors that are easy to mess up in c++. There are other things, but for me it's the excellently maintained and integrated libraries and build system that are kind of a joy to use coming from c/c++ land.
How do you do security updates on this virtualized flash?
> If the audience of HN is not able to make that sacrifice (not use some of the GOOG's website) then we deserve the monopoly of Chrome.

The audience of HN is unlikely to make a difference here.

Besides, we are not some political party who all need to vote in one way together. Each person individually here makes their own choices.

Personally I think making my life harder with pointless sacrifices is not useful. I ask myself, am I making this sacrifice to make myself feel good, or because I actually think it can make a change? In this case, I don't think it would make any difference and it wouldn't make me feel good so there's no utility in using Firefox, for me.

This subject - browser monopoly, and related things like OS or app store monopoly - needs to be tackled with regulation, not personal sacrifices.
Passing channels over other channels used to be a reasonably standard trick in Go, IIRC.
A Single Div: A CSS Drawing Project by Lynn Fisher
Yeah, in my experience with bad workers managers just want to be rid of them. The last thing they want is to be saddled with making sure he is punished after leaving the job. Maybe I just have not experienced the true psychopathic boss yet.
What? You can totally compile Rust for compatibility with python libraries or Ruby libraries or whatever you want. Rust can offer the same API that C/C++ offer, so it can be a drop-in replacement.
Using 'group:comp.lang.c "C/C++"', here's one of the first hits[1] I get, from May 17, 2000 and starting off,

> I'm just curious, but why is it that people in this group tend to reply with "the language C/C++ does not exist" or "C/C++ is 2, what do you mean?"

https://groups.google.com/g/comp.lang.c/c/bVBTSJ3KRrg/m/uv98... [2]

followed by 14 responses in that thread, most of which explain why that is, none defending the usage. One of the respondents is active on HN, I believe: kazinator (Kaz Kylheku).

I have a local copy of the UTZOO archives, with posts from the 1980s. Out of ~30,000 posts in comp.lang.c and comp.std.c only 284 use the phrase "C/C++". Many of those are discussing specific compilers, e.g., "Zortech C/C++" (this is especially true in other newsgroups). In a quick survey I couldn't find one where people corrected the usage, but if you read those threads most people are careful to provide answers specific to C and don't often repeat "C/C++". Presumably after C and then C++ became standardized people became more vocal about treating them as distinct.

[1] Results weren't sorted by date, and the first page of results spans 30 years.

[2] I wish I could also include a reference ID from the headers, but Google Groups apparently no longer makes them accessible even when logged in. Google Groups Usenet support is horrible, even when searching. It's a real shame. I think Google Groups has even blacklisted comp.lang.c for spam, though almost all the spam in comp.lang.c comes from Google Groups. I've filtered out Google Groups posts from my feed for the past 10 years or so.
Yeah fine tuning does sound promising here. I'm not sure every application that could be built using prompt concatenation can also be built using fine tuning though.

Could you fine tune a GPT-3 model to do the equivalent of the "Translate this from English to French: TEXT" example?
Second comment because I was responding without addressing your point properly: somebody in a crisis like that could possibly be helped if there weren't 50 SWAT guys eager to take target practice.

There's obviously violent scenarios that can only be addressed with violence, but bringing that on should be a last resort.
You don't need to know about about 6 different string types, arcane borrow checker workarounds, RefCell complexity, massive async cruft - acquired by Rust in just 2 years.

C++ will still be used heavily when Rust is buried 6 feet under and HN moves to the next hype language.
I think it could make sense to lower barriers to entry for some highly specialized vocations, like ones that require third party certifications. Especially in times when the job market is not as hot as it is now. In this market, the only explanation for TRAPs seems to be exploitation.
I would hazard a guess that principal professional software engineer would make around $350-600k USD. Let's say you need $10 million USD / year to run a fundamental embedded systems team and another $20 for specifics applications on a project. Call it $30 million. Suppose the economic damage of a $2.6 B fine, $ 1 B loss in intangible goodwill, $2 B in lost sales on top of the pandemic, and killing 346 people total say $8 B. That would fund about 5k top industry developers for about 5 years, or 26k person-years of effort. Or, 244k person-years of $9 USD/hr effort. Good luck managing the code quality and project management of such a large project where there is little investment or concern for who's writing code.

TL;DR: Don't competitively incentivize short-term cost savings by strip-mining fundamental capabilities to deliver by throwing human capital to the wind as an interchangeable "fast-food worker" approach.
Fun fact, floats are easier than `int` because `float` has a predictable size.
So... the original comment is not a weird flex at all then.
How about experience?
Only because the algorithm makes it so.
Vietnam’s ancient whale temples
Useful contribution, defending a cesspit of hate like Kiwifarm. Or Stormfront. Cloudflares stance is extremely admirable but there should always be a limit. Things like Kiwifarm don't need protection.
Seems like kind of a crazy thing to say. The first thing to note, is that we should obviously be free to write software like games and other utilities in whatever language we want, especially if they’re not connected to the internet. Second, why exactly are we demonizing people now? Suddenly declaring a language deprecated not only doesn’t actually make any sense, but also seems like a great way to influence people’s personal opinions about others. I can tell you from experience that sentiments like this breed hostility in the workplace. And finally, this is pretty short-sighted, considering the supply chain attack is clearly the attack of the coming age.
As other pointed out, if Arc is not an option, then a well encapsulated raw pointer might just be what's needed.

I've implemented several of such data structures, there is not that many tradeoffs available : safe and easy, or unsafe and fast.

The unsafe parts are still much better than raw C. I don't agree that the language and ecosystem is missing a "big piece". Everything is already there.
Israel's religion began its transition to monotheism a very long time after the period when this script was in use. Anyway, I think your approach sounds better suited to languages than to religions.
I had a lot of fun for the week or so I did some programming in Adobe Flex. A mix of nostalgia and that project being greenfield perhaps. It seems like doing C# coding on the front end, and was pretty nice at the time. Also built an Adobe Air app. Those technologies had a fun about them that I haven't seen since. (Compare that to building a web app or an Electron app!)
One does not "accidentally" write an entire series of baseless accusations derailing the conversation, only to say "oops" when the response is universally negative.
You can install whatever you want on an iPhone if you’re willing to compile it yourself with one or two shell commands. You do need access to a Mac.

Contrary to popular belief, you can even install a non-safari browser:

https://chromium.googlesource.com/chromium/src/+/main/docs/i...
Calctape.app
Zeal seems, complicated. It hasn't seen a release since 2018 (https://github.com/zealdocs/zeal/discussions/1308 they're switching browser engines at some point, which affects default zoom level, though customizable CSS injection should be doable if they keep static CSS injection), and commits are a bit sparse (https://github.com/zealdocs/zeal/issues/1336), so I'm not sure my feature requests will be fulfilled.

Worryingly, while updating my 5 docsets downloaded months ago, I hit a segfault, and trying to debug it in coredumpctl repeatedly hangs gdb and makes it eat all available RAM. I suspect it's a lifetime or multithreading issue.

EDIT: Reported at https://github.com/zealdocs/zeal/issues/1426. QAbstractItemModel is the gift that keeps giving.
Static modules are loaded as shared libraries/dlls. The way operating systems implement this is that each library is loaded once per process and that statically allocated memory is mapped into the virtual address space of the process. You can't load one so/dll multiple times in some sort of container, so each module would have to implement this isolation inside their module, probably through some sort of API that the python runtime offers to the module. It's not rocket science but it will definitely break existing code where it's common practice to use dll lifetime hooks as initialization code that allocated some global state that's conveniently shared throughout the module.
This sounds an awful lot like how everyone thinks they're an exceptional driver and everyone else is bad. Reality is no one's actually that great at piloting a ton of metal at speeds their brains can't keep up with in an uncontrolled environment.

Anyways, unsafe exists so that if rust is genuinely in your way you can still do what you need to do.
The point is that it's not a term invented by the author as the comment I replied to implied (and further, went on to accuse the author of doing it for sensationalism.)

I didn't think I actually had to explain that, but I guess I should have expected as much when I got involved in the token "attack the piece's author over terminology and motives instead o of the actual points of the article" thread.

Attacking something because it's "clickbait" or for its terminology instead of actually addressing its core positions is intellectual sloth.
Just Say No to Cast Iron Holdfasts (2010)
Or actual photos of Clinton at a certain island that are real but called deep fakes?

I thought of a Scifi series years ago where puppeteers could force politicians say anything they wanted just by the threat of a deep fake.
The airplane was invented by the Wright Brothers, does that mean someone on a flight from Japan to South Korea is bound by US law? I can understand if the SEC said that all compute nodes residing in the United States, and any organization likewise located here is under their jurisdiction. I'm not a lawyer, so I can't argue whether the SEC is legally correct, but it seems absurd to me to claim jurisdiction over an intangible idea whose related productive work occurs all over the world.
Seems like you're describing a lack of integrity. I think it important that we remember, people / institutions / things that lack integrity tend to fall apart.
Would Rust be able to replace C++ in HFT?
> Well half of NaNs are quiet, so that's easy to deal with

Which half varies by architecture (I'm looking at you, MIPS - and apparently RISC-V at one point was going to go the MIPS route with an all-1s payload for canonical qnans?) - so platform specific spaghet and requirements testing is in the mix.

> And the fast optimization flags are themselves violating the standard so those don't count.

Some jerk will enable them, standards-violating or not. While it's valid for the solution to disable the optimization, in practice you will need to debug and write defensive code when this happens. I know of at least one platform which enables such optimizations by default for it's "release" builds, and while I'm angry at them for doing so, I'm unfortunately relegated to existing in the same reality as them.

Perhaps you're lucky enough to exist in a different reality?

> I suggested memcpy because it's the safe way.

More generally, yes, but in the specific context of preserving a NaN payload I would not trust the optimizer to keep my NaN payloads untouched when stored as a floating point value. LLVM developers appear to agree that NaN payload preservation is not guaranteed - I guess you can quote me on my earlier "optimizers can butcher your NaN payloads", presumably even without fast math optimizations:

https://lists.llvm.org/pipermail/llvm-dev/2018-November/1276...

Which causes a good bit of awkwardness for Rust:

https://github.com/rust-lang/rust/issues/73328

The solution is to not attempt to store payload-laden NaN as any kind of floating point value, even via memcpy. A union is acceptable in the sense that at least, then, you're supposedly storing an integer, and the bit pattern of that would be preserved. A memcpy to a temporary float immediately before NaN testing / floating point usage - and never back to integer in a naieve attempt to extract the possibly discarded payload - would work, but is a hell of a caveat to omit when saying "memcpy from bytes to a NaN should work fine", especially when mentioning `nan` with it's payload argument, which is unextractable without doing the naieve "back to integer" extraction which, if the above is to be believed, is unreliable at best.
Memoize and precompute every calculation over a merkle tree distributed on a decentralized network using content addressable memory hashed to every calculation as the hash you say?

Yeah love it.
They used that for IRA. Seems ordinary citizens are equally or more dangerous.

This is also an argument for bombing ordinary citizens.
> Just cus they add a feature to a language doesnt mean u have to use it

While I absolutely agree with this in general, in practice with C++ if you're trying to use it safely you do in fact need to use those new features. But the old features are all still around too. It's a very, very large language in terms of mental space required these days.
I find it to be very japanese. elegance expressed in such a simple form. blindingly obvious ... now. so hard to arrive at this design choice. i love this. it's poetic.
Ask HN: Arvind Kejriwal vs. Narendra Modi
Who will truly represent future India?
I wish more people would use captions in public spaces, rather than setting their phones to maximum volume.
I don't even get what the incentive is to become an H1B nowadays. Work under some insane visa requirements with often fuck all chance of actually becoming a citizen unless you roll a magic dice roll over and over. Or stay home, contract out remotely for $10 an hour or whatever shit pay contracting gets which works out to be a god damn fortune in rural India or China (most H1B come from one of those two countries).
it's too bad i can only buy one copy of this app. if only apple would allow the purchase of 2 copies. but the universe might collapse then, having reached its poetic end.