skysight-inc/HackerNews huggingface dataset:
"Rust enums make defining errors so simple with arbitrary payload."

enum variants are overused in Rust and are highly expensive in memory IMHO. One tends to run into problems like: https://github.com/serde-rs/json/issues/635 in Rust projects when used at scale. Value is an enum variant: https://docs.rs/serde_json/latest/serde_json/value/enum.Valu...

Comment from that issue:
"For example, ElasticSearch returns a 8,683KB document, I deser it into Value and the next RAM reading gives me delta of 98,484KB of RAM use. That's more than 10x the original size."

Compare that with a similar issue in simdjson (written in C++), where people are complaining about parsing 4GB documents into a tree !!!
https://github.com/simdjson/simdjson/issues/128. serde-json has trouble moving a bullock-cart while simdjson is moving a container ship.

I don't like some parts of Zig - I think not having RAII in the language is a terrible mistake. But I do love that anything and everything that can be allocated needs to be passed an allocator. I do think they could have introduced an allocation context for RAII cleanups though instead of forcing the programmer to manually coding defer base cleanups - this is a major source of errors even for advanced programmers.
thanks, I'll check this out!
Andor is pretty great IMO (surprisingly)
Remember how, just a few months ago, one could get banned from Social media for suggesting Covid-19 originated in a lab? "Fact Checkers" were hard at work silencing that content and attributing it to "conspiracy theorists".

Now the lab leak hypothesis is mainstream, with experts supporting investigating the labs in Wuhan and bringing in evidence that the disease indeed originated in a Chinese lab.

Sometimes, it seems the difference between facts and conspiracy is 6 months or another presidential administration, whichever comes first!
He never really left, he kept his office for years after "stepping down" while having meetings without his replacement. He literally saw covid coming and decided to "step-down" to save his image before taking back control last year
The document you shared, and that which they link to referring to SK, sort of comes to the conclusion that I stated: SK would probably not allow the US to use its bases. It's the least bad position for them. Aside from securing the peninsula, any support to the US would leave SK exposed to China encouraging NK to make trouble.

And even if China doesn't, NK would be emboldened by the lack of focus from the US and Japan. If there's a large scale conflict, SK might be able to hold off and defeat NK, but this wouldn't be without massive pain. That might be less likely, but small scale skirmishes already happen and I would expect much larger ones to take place under the umbrella of a wider US/China conflict.

And yet, SK also doesn't really have a choice but to follow the US in a wider conflict, because of mutual defense treaties. Breaking from those agreements would ruin the long term prospects of SK, unless China prevails in the long term.

It strikes me as really not an easy position for them to be in. The SK population would hate losing capitalist US as an ally and becoming closer to communist China. And yet if the US doesn't look like it'll prevail over China, geopolitics pressure would almost require SK to break from their defense treaties with the US.

Yeah, to me this strikes me as an area that is really overlooked. Any conflict between the US and China would involve Tokyo, and Seoul. But Tokyo isn't as exposed to hard power from China as Seoul is. And yet, Seoul is barely mentioned in those articles.
I would love to have enough time and money to go to an office to work all day
Come on. Further down in the op-ed you linked, he cites evidence in the complaint about Binance being used to launder funds for Hamas and Russia. The feds happened to get Capone on mail fraud; if they see that they can pinch off such laundering with the help of some ostensibly consumer-focused CFTC authorities, that's what's going to happen.
I bought some forest land, and I'm restoring it to riparian habitat. It's not world changing, but if a few hundred acres can be returned to a natural state and grow large, carbon sucking trees, I feel like I'll have done a net good over my life.

This required giving up on some other goals though. I don't know that there's a lot you can do that is sacrifice free.

I've also gone to a mostly vegetarian diet -- preferring to source meat only from local farmers I've met in person. If I haven't met the farmer, I won't eat the meat. This reduces the amount of meat I eat, but still lets me seek it out. Maybe this helps, maybe it doesn't, but it's a pretty easy rule to follow that doesn't require me to be a strict vegetarian. I can have my beef stew as a treat, but also know that I'm not contributing to a massive industry of wasteful excess with every meal.
I had a DSLR camera which was very good in 2005, yet when I bought a 2012 mirrorless, I was born away. It isn't about the megapixels, the staggering difference is the high ISO performance.

I just met someone with a new full frame mirrorless, a very expensive camera. The shooting experience use worlds apart: huge luxurious viewfinder, fast autofocus with face tracking, it's a monster.

But at the end of the day, if I put in the work with my 2012 camera paired with a cheap but great manual focus Samyang 85mm f/1.4 I'll get almost the same results.
> I think I like it better than my kids.

You would choose a cartoon over your kids?

:)
You can easily reach this number if you are doing something like storing json/xml user data from some service. But I just can't imagine you could ever hit this limit as a normal user. And if you do, just zip some old stuff in to one file and carry on.
new architecture looks dope. i'm sure performance is going to be better than using electron.
let's wait and see how it will be for people running the app in the wild.
That's how all dark patterns are constructed. Present a plausible cover story. Keep the underlings in the dark about the true reason for the system architecture. Don't write anything down.
PopOS doesn't let me tinker with the UI? That's a shame. It was a big contender for me. But if it's Ubuntu-based, shouldn't it be just as configurable?
I'll be living in a cabin in the woods by that point.
Also considering that every MCU (Marvel Cinematic Universe) movie made since 2008 is a Disney movie it's hard to agree with that particular statement. According to [0], the budget for all MCU movies since Disney purchased Marvel has been a little over $6B and the "worldwide box office" sales have been over $28B.

To be fair to the parent commenter, however, "Disney is making movies nobody wants to see," (the converse of the actual statement) seems like a less controversial statement which may be closer to their intended meaning.

[0] https://www.the-numbers.com/movies/franchise/Marvel-Cinemati...
I'm neither Canadian nor an immigrant, but I absolutely loved Turning Red. I felt it was 10x better than Encanto. But the latter has catchy meme-worthy tunes, so here we are.
Proxy contracts are necessary to perform upgrades to functionality over time. However auditing the proxy only is shady
A little outdated, though. I consider them to have renamed the model, since there's no such model as ChatGPT available via API and the docs now explicitly mention gpt-3.5-turbo is the model name (again with no mention of ChatGPT). You have Chat mode in the Playground, but no model like that. And in ChatGPT interface itself they say things like "based on old gpt-3.5-turbo model".
From the Garbage Collector handbook I got a very great quote about what automatic memory management really is. I will butcher it up, but the basic essence is that automatic memory management is above all a software design tool — well designed programs are built from components that are highly cohesive but loosely coupled. What it means for memory management is that a component shouldn’t have to care about how other modules handle memory for correct working. This is possible with a GC, but isn’t with manual memory management, and RAII doesn’t change it — function signatures leak memory management concerns in both Rust and C++.

Ongoing refactoring and maintenance costs are also higher in low-level languages due to this reason.
> Greta Thunberg probably felt helpless. But she turned that feeling into anger, and that anger into action.

Serious question.

What impact has she had? I haven't seen any changes from her actions. People knew about climate change before she came around. What changes did she create?
Ah yeah you are right, I had selected terabit instead of terabyte in the converter.
The film industry has been pointing cameras at screens for decades. Trusted hardware won't work.
I think the post title should be called “Production is hard” (as the author talks about later on). Pick up any technology out there: from Python, to C++, to K8s, to Linux… Do the analogous “Hello world” using such technologies and run the program on your laptop. Easy. You congratulate yourself and move on.

Production is another story. Suddenly your program that wasn’t checking for errors, breaks. The memory that you didn’t manage properly becomes now a problem. Your algorithm doesn’t cut it anymore. Etc.
I've been using Keychain since 2003. Only now am I aware that it does TOTP. I've been avoiding TOTP like the plague this whole time because I don't trust the other apps not to somehow get me locked out.
Feel bad for those employees, being on the line of fire myself at Google and waiting to find out if I have a job next month.

That being said, how on Earth has Disney managed to screw up 10 years of Marvel success? They spread themselves too thin trying to create too many shows without proper planning. And that's only focusing on Marvel. They also managed to piss people off with their half-assed Star Wars trilogy, to the point that you can clearly perceive directors going into different and incompatible paths for films that should build on the predecessor.

Edit: They should be two franchises that print money, but instead we get the current headlines.
same thing :)
Not for another couple of days!
Reminds me of some of the NSA leaks.
I think you'll find it very difficult to convince people to make a sacrifice that you are not willing to make yourself. Or are you talking about forcing them?
When I’m looking for cars to buy on fb market or Craigslist, I use very general terms and never the feature filters like transmission, drive train, body style, even fuel type. So many people enter the wrong thing (it doesn’t matter if is done knowingly or on purpose because the result is the same), or don’t enter any information at all and it is unclear if the search function will include null fields (usually it does not). Instead, I browse the list and now that Facebook curates it via some opaque algorithm, it is unclear if I get to see the “full list”.

I would guess people on dating sites are using the same logic. If I can’t trust the filters, just give me everything and I’ll sort from there. When the stakes are as high as finding a life-parter, or even someone you can trust to be intimate with, the cost of a missed opportunity is just too high.
the #1 problem with corporations saying things is that many things they say are not regulated or are taken on good faith. What happens with OpenAI are acquired and the rules change? These comments are often entirely worthless.
You mean WebAssembly?
You mean you like your templates to be explicitly defined as a JS/TS render function.

JSX is a templating language.
I used to have that back when I had a Macbook, but now my son as confiscated the gaming PC because it's more powerful than his laptop.

I've tried to set my laptop to dual boot Windows/PopOS, but it refuses to boot to PopOS.
Not to mention all of them are becoming increasingly authoritarian.

It’s an alternative for sure. Not sure it’s desirable or preferable.
So I looked through Climatebase, and I found it hard to evaluate the companies listed. There's plenty of listings, but no (easy) way to say, "Show me one entry per company, for every company hiring engineering leaders." I either got drowned in "this company has 35 reqs open, so here's 35 entries" or "you've narrowed your filters so much that you only see two companies".

Not quite easy to figure out "Which set of companies are hiring for a role I can fulfill?"

Edit: And within moments, I of course find the URL to do exactly what I want: https://climatebase.org/organizations?l=&q=Engineering%3A+So...
That's also how all patterns are constructed: present a plausible cover story (because it is true). Keep the underlings in the dark about the true reason for the system architecture (because the delta between the true reason and apparent reason is null). Don't write anything down (because there's nothing else to write down).

Suspicion of dark pattern is not proof of dark pattern.

(ETA: at Google in particular, the dark-pattern-conspiracy you're describing between two unrelated teams, in this case Drive and static storage, is hard to pull off because coordinating those teams requires documenting design, and it turns out a lot of folks working at Google are Hacker News-type personalities who will ask inconvenient questions if they come up. But what they have that we lack is observation of the larger security picture and the ways failure to, for example, 3PC-guard your static files can result in failure modes).
Let It Snow
> which means that there are crates for just about everything

There is definitely momentum, but it doesn’t make Rust’s ecosystem big relative to the top 5 in any way.
"layoff" is not a verb. it's lay off, and the title should be "lays off"
I do this for pretty much everything. I prefer not filters at all, but if there's too much data to manually scan through, I'll use the bare minimum necessary to get the dataset down to a size I can manually deal with it.

The reason I started doing this is because there are too many tagging errors, and setting filters wide reduces the accidental omission of relevant items.

Also, as you mentioned, setting the loosest possible filter allows for serendipitous discoveries.
The logic is that if a bomber carrying a nuclear payload crashes because of corrosion, then that would be a lot more harmful than whatever danger the cadmium poses.
Try writing or coding for fun.

Caffeine, while increasing focus, ups anxiety and cardio load.

Exercise (HIIT) I find is better at increasing focus and decreasing anxiety.
Ah, so you mean most be actually enjoy it and don't share your concern.
I didn't realize it was a per capita problem. Maybe we can breed our way out of it so the global emissions per capita will be better and the environment will be happy.
Cool and useful site! How often does it check for changes in stock?
Consoles tend to have very limited controllers. Nothing beats mouse+keyboard.
Still no WebXR support :(
I'm slowly but surely beginning to buy DVDs of my favorite movies...Because I'm so tired of having streaming services remove them!
As I’m sure someone will point out LLMs aren’t intelligent.

But then again, I don’t think humans are either.
Right, because it has very poor component-level isolation for styling. React basically punted on CSS, and that's truly not a blessing in its favor.
I added a clarification to the benchmarks section:

"The macOS/Windows implementations are currently equivalent to the *_rayon implementations shown in the benchmarks."

Rayon is pretty good, but clearly suboptimal as evidenced by the benchmarks.
>"In English, schwa is the most common vowel sound". And yet, there's literally no way to represent the most common vowel sound in English. Instead, it's 6 different ways that heavily depend on context, using letters that have no relation to the sound to begin with.

I watched a video about this recently I found fascinating, I'll link to it below, but to summarize: the schwa isn't a letter because it occurs only in certain stress positions of a word, which changes depending on the surrounding words. But notice when you "talk slowly", that is, fixate on each and every word, you actually don't pronounce the shwa very often, if at all.

Couldn't find the video but it turns out there are a million on the topic: https://www.youtube.com/watch?v=vp_WJAQ9fus
they are, but I think it's interesting how people feel the need to hide this. it's not like only skinny people can go hiking.
All the Ways You’re Risking a House Fire (Without Realizing It)
> that Disney is simply not making movies anyone wants to see

I can't completely discount what you're saying, since I have no interest in Lightyear (the toy from Toy Story, but it's not a toy? Why?) or Strange World (it looks fine, but their ads didn't make very clear anything about it).

But I will say that Turning Red was wonderful, and my family has happily watched that a number of times. Not surprised it flopped in the theater, though, given I didn't even know it was in the theaters. As far as I'm concerned it went straight to Disney+, like Pixar's previous 3 movies. It's been one of my favorite things about the service.
> Dating apps have minimum allowed age ranges.

It's been a long time since I've used dating apps, but when I used them, you could set any arbitrary upper and lower age boundaries. Has this changed?
On the bright side, it's not a very convincing rendition of a human.
Biking is demonstrably more efficient than walking. And electric bikes are even more energy efficient than biking.

Sure, manufacturing a bike takes some energy, but there's huge value in people using e-bikes to get everywhere.
Hopefully they remove the ability to accidentally call 30 people in a chat without warning.
"Any profit-driven company would literally feed its employees into a meat grinder if it were not illegal and it made the stock price or valuation go up."

This is uncomfortably true, at least for too many companies.

Unfortunately, though, our society lets them get away with it. Too many people are willing to just shrug and say "that's business" and act like there's simply no other way to be.
> Suddenly your program that wasn’t checking for errors, breaks. The memory that you didn’t manage properly becomes now a problem.

Yeah, nobody deployed anything and ran it for months, even years, before Kubernetes.
Linux is just another way for Microsoft to make money.

They will never embrace it fully. It's a dish rag they wring out and use.
> For instance, they used to have unpaid interns do full days at theme parks in-character and people would fly all the way from Australia for that privilege because, you know, you get to be Peter Pan for a summer.

Want to hear one even crazier than this? I literally have to PAY a company in order to go there and move heavy weights around to the point of exhaustion. Insanity.
Are you talking about a web server running in somebody's basement, or a web server running in a data center? Because the SSDs in a real server wouldn't have SLC caching in the first place.
This is a misrepresentation of Levine’s article. He explains that it’s illegal to operate a derivatives exchange without being registered at the very least.
Exchange student
If you are just doing cold mailing on one-to-one basis, you can use migadu.com for it. Everyone has to do that at some point and it is not spam. 500 mails is not a lot. Just cap it daily to e.g. 50-100 or you could hurt your own domain reputation.

> Email spam, also known as junk email, refers to unsolicited email messages, usually sent in bulk to a large list of recipients.
Young Jewish man runs into a Buddhist or at least Buddhist ideas in his twenties, spends a while learning about them, comes back to the temple in his thirties and starts telling people how great it would be if they were just nice to each other and maybe focus less on rules and hypocrisy. Gets killed by a Roman state that’s worried about uprisings and local Jewish leaders who don’t like different ideas. His followers tell stories about him in the following decades focusing on it being better to be poor, repressed, the Roman state feels threatened by a powerful underclass religion so they coopt it, make it the state religion, and shape it to be useful to empire. Ultimately it kind of contributes to the already crumbling empire.

All conjecture but reasonable enough.

If you start with the premise that Jesus was a real person but not divine, I think the real story would look a lot like that.
> How do you know? When Binance’s own Chief Compliance Officer was primarily in the business of helping customers avoid compliance, it doesn’t seem like they would know very much about what ultimately went down on the platform. The complaint quotes an internal email that read: “We close our eyes.”

I don't, but obviously the CFTC doesn't either, otherwise they'd have spelled it out. So, considering the party investigating is ignorant of any significant terrorist financing activity, I see no reason to think otherwise.

> Binance was a major counterparty of Bitzlato, a crypto exchange that existed primarily for Russian money laundering: https://www.reuters.com/business/finance/binance-moved-346-m...

There is nothing in the complaint stating that Binance knowingly facilitated any criminal activity of Bitzlato, afaik. The fact that criminal actors had an account at a financial institution is not prima facie evidence of any crime on the part of the financial institution, especially not for one that isn't registered in the US. Even for US registered entities, plenty of criminals have bank accounts. It's the bank's job to perform a certain level of diligence to stop them, not an infinite level of diligence.

If the CFTC believed Binancing knowing facilitated criminal activity on the part of Bitzlato, that'd be in the complaint. It's not, therefore, they don't. Or at the very least, they have insufficient evidence for it.

So any suggestion that significant terrorist financing is being stopped here is pure speculation, unsupported by anything in the document itself.
A chatbot that pretends to be Jesus, much like the Biblical Antichrist
The crucial trick is that it's not just the constructor, it's everywhere which might allocate.

Rust's proposed allocator API (what the article calls future Rust) takes an allocator for constructors, but the effect is the type parameter is just inferred during construction, the same way if you say OK, make me a Vec of this array of Strings, Rust infers the Vec's type Vec<String>.

Zig's standard library provides both conventional compound structures like those I described for Rust, and "Unmanaged" variants in which you must provide an allocator every time you do anything which might allocate, so e.g. addOne on ArrayListUnmanaged requires the allocator, which it will only actually use if adding a single element to the ArrayList exceeded its current capacity. It will assume this is the correct allocator to de-allocate the old backing storage and allocate new storage, so you can't use this design to move from one allocator to another.

Interestingly Zig's ensureTotalCapacity not only avoids the problem of C++ reserve where it destroys the amortized growth behaviour, but it actually insists on exponential growth even if that considerably outstrips the growth requested.

Say we've got 15 Foozles in an ArrayList with capacity 16 (or Rust's Vec or C++ std::vector). We know we want to put 20 more foozles in, for a total of 35, although maybe more.

Rust's Vec says OK, reserve(20), we were thinking of next growing from 16 to 32, but 35 won't fit in 32, so 35 it is. Capacity becomes 35.

Popular C++ std::vector implementations likewise will pick 35 here. But Zig's ArrayList says 16 + 8 + 8 = 32 not big enough, try 32 + 16 + 8 = 56. Capacity becomes 56!