skysight-inc/HackerNews huggingface dataset:
By far the biggest changes to Rust in recent times are non-lexical lifetimes (IIRC, introduced in the 2018 edition), and async functions (introduced in Nov. 2019). So if you're reading any introductory material after Nov. 2019, or anything after 2018 that isn't related to asynchronicity/futures/etc., it'll be reasonably similar to modern code.
> This is often repeated, and I believed it myself in the past as being self-evident, but the Russia/Ukraine war has changed my mind. Russia was selling gas, the west was buying gas. Other countries produced e.g. iPhones and Russians were buying them. It seemed to be a classic case of a situation where everyone loses if there's war, but yet the war happened anyway.

I think you will find that this was an actual example until out outright invasion was made, because since 2014 the EU was buying gas (to the major benefit of Germany) while the US and UK who signed the Budapest Memorandum looked the other way in order to keep 'business as usual' going in the EU while hand-waving about the whole thing.

Putin made the grave mistake that the West would capitulate to this once more and Kyiv would fall, instead it finally unified the West to finally see the threat for what it always was (Russia has invaded or outright attacked nations 7 times since '99).

What you saw was the deterrence taking place, you probably just didn't realize how detrimental it was because you measured it's success in iphone sales rather than total casualties and displaced people (look at how Syria kicked off the current diaspora out of the ME and Africa).

Personally speaking, Globalization did work to a limited extent for a while but the issue is that the Western powers enabled their corps to hallow out their domestic manufacturing Industry/workforce and benefit from labour/regulatory arbitrage and allowed it to have record profits: it ultimately funded these despots who felt all to comfortable relying on Western greed and fecklessness when it came to geopolitics.

Cheap trinkets from China aren't worth living in a World with a nuclear capable despot thinking he can kick off WW3 if we don't indulge them at anytime because we rely on them for a broken supply chain, and it never was worth it despite the ability to rationalize this Stockholm Syndrome so many are under.
It didn't feel like "meet and mingle" in the mission... more like a strange outlandish transition from people living in tents on the street and three blocks away Valencia street filled with nice shops and restaurants. Walking to work was like "oh this is nice" interspersed with needles and feces in the sidewalk.
I wonder how much of Windows' profusion of archive formats is a hangover from the MS-DOS archiver wars.
Good luck to them but $100/yr sub is the cheapest tier. oof!
I glanced at motor vehicle fatality rates in the U.S. previously and didn't see a clear impact of seat belt laws myself, instead the major drops seem to line up with economic recessions:

https://news.ycombinator.com/item?id=35833165
Love this approach of forms. It's so easy to apply and has great results.
That's perhaps the most pressing problem of Rust: not providing a concrete specification that can be targeted by projects and implementations.
Show HN: I build a self-service, fair, predictable oncall scheduling solution
The way most of us do oncall scheduling kind of sucks. Most automated solutions are just a round-robin list of people who get scheduled in that order. When someone leaves the team, their slots are filled by just moving everybody else up, which scrambles everybody's plans. Some teams use a spreadsheet with some self-service entry of preferences, but then someone has to create a tentative schedule, talk to everybody about whether it works, and then iterate, which takes a lot of time and is not a joyful process. The most caring orgs have built some kind of automated system, but it's one of those internal apps which doesn't get much love because it's a low-priority side-gig for someone.
To fix this, I build https://oncallscheduler.com. It gives self-service control to everybody to both pick shifts they prefer to work, and to enter preferences about dates/holidays they want to avoid working. It solves the "person left the team" scenario with something of an auction for the shift. People who work less desirable shifts, including taking on shifts from someone who left the team, end up working fewer shifts in total over time.
Check it out! And let me know if you think there's something missing from how it works.
Nice work!

How does it compare against FAISS?
I've spent the last several weeks porting a backend I had written in Go over to Rust (using Axum) and so far so good. But I don't know if I can call things in the Rust world like Axum/Actix/etc. "frameworks" anymore considering all the time I've had to spend researching/vetting crates to get the same functionality that comes out of the box in Spring/ASP.net/Django/etc.

Take handling datetimes for example. Do I use time or chrono? The initial developer/maintainer of chrono left[1] and for the longest time the crate was unmaintained while a CVE remained open[2] until a new maintainer finally came along and addressed it (I think?). All right, so, time it is then... but it uses its own custom format specifiers[3] that I had to get used to coming from the more familiar strftime used by other languages.

Or how about input/form validation. One of the most popular crates for that, validator, had its maintainer admit that they don't even use it themselves?[4] Of course I can already hear people yelling at me, "well, why don't you contribute then?!", and I certainly would love to if I could! But I have to finish what's in front of me first.

That being said, I still very much enjoy using Rust. Maybe less so for web-related projects. I just have to stay on an even keel despite the growing hype.

[1]: https://old.reddit.com/r/rust/comments/qamgyh/is_the_chrono_...

[2]: https://github.com/chronotope/chrono/issues/602

[3]: https://time-rs.github.io/book/api/format-description.html#v...

[4]: https://github.com/Keats/validator/issues/201
You forgot: automatic, but never verified if they can be restored.
Or two other types - tested or non-existent.
Previous discussion with 333 comments (2021):

https://news.ycombinator.com/item?id=25610741
Not really relevant to the discussion, but those are some lovely looking buildings!
The memory usage can in fact be optimized further with a small change:

https://gist.github.com/scythe/5fb962722934c58c60430180beab8...

In the spirit of the blog post, I'll let you guess how it works :p
I enjoyed this, but I am a little stuck on how stuck the author is on yield. If one ends up creating a large list of prime numbers with this generator, why not just return a large list of prime numbers? The author clearly notes how optimizing Python code is "odd" when you can more easily switch languages, but languages like C/C++/Rust would not have pretty code because it does not have yield. It is obvious that returning an array of prime numbers is what one would do in C/C++/Rust.

I understand that not using yield would mean it is not strictly a "generator", but the spirit of this problem is generating the sequence of primes (unless I am missing something).
Ya I told showed someone meatspin for the first time at a party a couple months ago.

Everyone else had already been traumatized by it, the reaction was exactly what we were expecting.
Complexity and simplicity are... Complex. Brainfuck is simple in its own design but using it to do anything in particular is not.

Some Java code bases are borderline patronising in their apparent simplicity but are actually built on many layers of complexity which is then hidden.

So when you say you want "simplicity" I have to ask what you mean by that. Where do you want simplicity and where can what you think of as simplicity arise as complexity elsewhere? I think there are more nuanced trade-offs than unqualified notions of "simplicity" and "complexity" don't capture very well.
I wonder if something productive could be done by expanding the options beyond "guilty" and "not guilty" because someone can be found guilty by a jury for almost any reason. Perhaps if there was a further status of "guilty by egregious evidence" that required a higher standard of evidence such as direct recording of the commission of the crime by the perpetrator and the death penalty was only applicable in those cases. I'm not ok with a one percent chance of executing the wrong person for any crime no matter how horrific, and our justice system trends at least 4% wrongful conviction. I'm fully ok with a 0.001% chance of executing the wrong person for even second-degree murder.
> There will be ...

How does this help someone today?
Automatically adjusting media display in a personal display system
Very nice photo--good composition! Amazing for a newbie's first shot (literally) at street photography.

Until you think a bit and realize the photographer's probably seen a lot of "street paintings" and could have learnt good composition that way. Still, very impressive achievement artistically (on top of technically).
Making a JavaScript Plugin for Unity
Yes - if Go had sum types (and they were idiomatically used in the standard library), it would take it from a pretty good platform to a first class one.

The library ecosystem is already excellent, and the tooling is good, lack of sum types is the single wart that makes me regret it every time I pick Go up for a project.
That would be icing on the cake, but the real success was to get there. It's a big step forward that'll help humanity, not just India.
That's done through a SEPA transfer that shouldn't take more than 10 minutes to complete, last time I paid a contractor more than 4k€ it was in their account in seconds.
> Computer Organisation and Design and Computer Architecture: A Quantitative Approach, both by Patterson and Hennessy

What's the main difference between the two?
> They are called "breadboards" for a reason.

I literally never made this connection until you pointed it out. Thank you for an "aha" moment!
Also useful is the "Learn X in Y Minutes" page for Rust.

https://learnxinyminutes.com/docs/rust/
Well, I think you are putting off many serious users by not having pricing, so you may be left with the "tire kickers".

And are you giving infinite videos for free if they don't need translation? I would suspect most users wouldn't need the translation, so you might be giving too much for free. It should probably be limited to something like 10 mins for free (Loom gives 5 mins free, but if you give a bit more, that is a competitive advantage).

Then, I would suggest offering payment per video (or, have credits, where 1 credit is 15 mins or something) as well as the subscription, and allow people to upgrade to the sub later.

Maybe also have a self hosted version.
It always bugs me in CSS and HTML that "auto" does not equal "default"
Sony’s portable Playstation Portal launches later this year for $199.99
7zip is great if you are zipping up your own data.

RAR is used on the internet because large files get broken up into smaller parts to get transferred and you can use RAR to determine whether your compressed fileset is legitimate or if it needs repair. That's where recovery volumes come in. If it won't unrar, then you can just add enough recovery files until it does.
Can you contrast between both approaches? How can i use indices instead of pointers? Where can i learn more?
I can’t tell if this article is AI generated or just sloppily written. The organization is really weird. There are just two (very specific) subheadings in the piece: “Bunny Bear Booster Seat (1933)” and “In the 1970s Car Hammocks for Babies Were a Thing (1970s)”, but these sections discuss multiple different car seat designs besides the title ones, making me think these “sections” were LLM-generated.

None of the photos are specific to the sections of the article they appear in—it’s as if the author just did a google image search for “old car seat” and sprinkled them throughout the article with no particular chronological or contextual significance.
The issue with bazel is having to roll out your own build definitions for every package you want to use that doesn't already provide bazel files.
ZFS is life-altering.
The budget with which this mission was accomplished is something.

Less than a typical hollywood movie budget.
Yes, terrific books. Absolutely recommended. I look forward to celebrating his 100th birthday. If you've not come across him The Vision of the Anointed would make for a interesting introduction.

'Dangers to a society may be mortal without being immediate. One such danger is the prevailing social vision of our time - and the dogmatism with which the ideas and assumptions and attitudes behind that vision are held.'

https://en.wikipedia.org/wiki/Thomas_Sowell
It is. But head on over to the CNC forums at PracticalMachinist.com to hear the machine programmers bitch about how little they're paid and being nothing more than babysitters for large machine tools.
Any reason that LZMA support isn't build into Windows? I think there's maybe some licensing issues with RAR perhaps.
> Any method or function which is not guaranteed to succeed by the language specification should, generally, return an error.

Most Go programmers are too scared to panic and abort when invariants are violated. I think most codebases contain at least 2x as much error handling as is really necessary.
In the UK, Wilko has gone into receivership because it's been borrowing at cheap rates, and the bill's just come due. It's widely believed that it's just the first of many.

No idea if that's what is happening with this company or not, I haven't chased any further than a revenue graph (and even that isn't from a source I trust much).
The local government failed at every possible level, resulting in so many tragic deaths.
I'm late-30s.

About to start working on a personal project involving cement: making planters for small fruit trees.

The reason: to learn more about cement, since my plan is to set up concrete piers for a future cabin. And, to eventually learn masonry for making a concrete + rock house.

I do have a bit of back pain already from a desk IT job. However I am relatively fit and I think with more calisthenics I'll improve my back & ab muscles to reduce my back pain.
I used to really like Motherboard, so I'm rooting for them.

I haven't been totally happy with my tech newsfeed the past while but I'm clutching onto my Defector subscription for all that it's worth. I hope they can make this work similarly.
Special cases broke Microsoft Zune and can ruin your code base too
Some thoughts on special cases, a love-hate relationship, I guess :)
I think title is not confirming to the guidelines.

https://news.ycombinator.com/newsguidelines.html

> Otherwise please use the original title, unless it is misleading or linkbait; don't editorialize.
It didn't work exactly right of course because the docs weren't exactly right.

Indeed. That approach also won't pick up changes to the remote API that break your integration.

An alternative strategy in this situation if you have access to some kind of remote sandbox - but maybe just a single stateful one that must be shared by your whole org - is to factor out your integration with that service into its own component/service and deploy controlled updates to that service less frequently and after running through a comprehensive integration test using the real sandbox.

This probably involves a much lower release frequency but it also keeps your integration as stable as possible for your internal clients and tested against the real external service. If you're talking about remote services that do things you can't trivially revert - like physically transporting some object or causing money to change hands - then the strategy you described of trying to manage expectations while testing in production is probably not an acceptable alternative anyway.
You can't get a good screen setup at your office?
this joke would fly on reddit not here.
(I'm learning Rust by implementing a simple Lisp interpreter in it)

I think TFA is a great resource in terms of presenting syntax and idioms. My biggest problem with learning Rust though has been understanding how to do things when the borrow checker prohibits the solution that would be 'obvious' in C#, C++, etc. I started to make progress when I bought the O'Reilly Programming in Rust book, and then thoroughly read and re-read the chapter on memory management.
ID and a decent credit report. I have been through times in my life where banks wouldn't give my spouse an account at all. No bank in Oregon or credit union would give her an account. To this day she still hasn't had a bank account in the last seven years. I can't even get a card in their name.
> how do you identify/kindle these interests

Hm, I don't know how to answer that. Maybe some examples will help?

For example, I'd kind of like to learn about some web programming. I have some ideas for a photo file browser/slideshow application that would be useful for me, so making a web app to do that is an idea I could use to explore some web framework.

Another example, I'm into Street Fighter 6 lately. I've been thinking about how it handles input for choosing moves in a way that "feels good," and how to specify hit detection, handling move priority, etc. If I wanted to learn a new language or graphics library, I'd probably try to write a simple fighting game to explore those challenges. This would just be a toy, not a serious project. The end goal would be to learn whatever library or language, and then forget about the project, except as an example of something I made with the library/language.

So... I guess I just kind of keep a list of stuff that seems useful/interesting in my head, and grab something from that list when it's time to go learn something new.

> but now my interests often take me away from the computer screen

Yes. I'm the same age, though I don't have any kids, and I feel the same way. With programming as a job, it's stopped being a hobby for me. I kind of miss it. Now I do guitar and woodworking instead :) but that doesn't help with the career.
3D printers printing without consent is a cautionary tale on cloud reliance
I find 7-zip is a lot faster than the Windows Explorer Zip handler.
Samsung's 57-inch ultrawide dual 4K gaming monitor arrives in October for $2,500
Yeah, the experience is obviously different if you're at 16th and Mission compared to 24th and Folsom -- but there's a reason the neighborhood has been one of the more desirable in SF despite the very visible problems.
Feels like every language should have an introduction like this. It's frustrating that lang intros are either your very basic and trivial example, or a full-blown set of tutorials, nothing in-between.

I also chuckled at the "20 minute read".
> LibreOffice developers are moving to a year.month based versioning system.

Great. Now the next logical step is having the file format in sync with every release and to give up backward compatibility.

And a ribbon is more modern, no scrollbars, flat everything and dark theme by default.

And no bug fixes, only rewrites. /s
How would memory management work without the borrow checker?
Fixed, woops.
I'm also very curious since they're in Europe and pay a lot more for energy.
Use web components for what they’re good at
Vagus nerve trauma is how liver shot KO's happen in striking arts. I always wondered how this worked. https://middleeasy.com/guides/dissecting-the-liver-shot/
Chandrayaan-3 mission costed half of Interstellar
Which libertarians, American or other? Very different.
I don't understand why Wolfram is so pleasant on his talks and videos, including interviews, and so much less so in his writings.

The subject of this essay had some salty opinions on the author, according to the author.

>>
In writing this piece I asked Steven Levy what Ed had actually said in the interview he did. His first summary in reviewing his notes was “He says he considers you a friend and then goes on endlessly about what an egomaniac you are”. But then he sent me his actual notes, and they’re somewhat revealing. Ed doesn’t claim he introduced me to cellular automata, perhaps because he realizes that Levy knows from the 1980s that that isn’t true. But then Ed tells the story about showing me reversible cellular automata, which I’d explained to Ed wasn’t true. Ed goes on to say that “Everyone who’s in science wants credit, driven probably by wanting to become famous. [Wolfram] has a larger than normal dose”. Ed says that when he had said that cellular automata underlie physics, I’d said that was crazy. (Yup, that’s true.) But then Ed said “Now he denies this”. Huh? Ed went on: “He’s a prisoner of some kind of overactive ego. I believe he might not know. Wolfram deserves loads & loads of credit, but he has this personality flaw”.
<<
That is a dead on take.

You dont have to kill everyone in nuclear strikes. Destroy every single powerplant, radio station and port in a single strike and watch them going back to dark ages in matter of minutes.

No electricity and no communications means mass chaos. every city becomes a unsustainable trap with no supplies.

It would be terrifying to be in a middle of that. A nation that would tear itself apart for self preservation while all supplies are somewhere far out, 'in a place where food comes from'.
Another thing that can be added is that you aren't paying VISA 2% of the purchase when paying in cash.
> You need proof of address too, it's not enough to have just an ID.

Yes, but you don’t need a bill for that, you can just get it from the municipality where you are registered.

> A passport is good, but you should also be aware that not everyone has a passport or drivers license.

Anyone age 14 and up is required by law to be able to show an ID when asked. So yeah, everyone here has an ID.

> My first bank account was a deal my mother made with the bank where she acted as guarantor.

The rules for children are different. Once you turn 18 you need to ID yourself to the bank. If you don’t do this your account will be blocked. You will be informed of this shortly before you turn 18.

> having a right to a thing is not the same as actually getting it; there is a lot of anti-fraud legislation that exists and must be complied with. The bank isn't just going to fully open an account with nothing but an ID

You have a right to a basic account, not necessarily full service. You can send/receive money and get a debit card. Anything else, credit cards, loans, etc. are of course not included.

And sure, if you’ve been convicted of fraud or anything like that, that’s an exception.
> No, he's just an elected representative of the people, a government servant.

Yes. The elected leader is the boss of the executive branch of government. One doesn't negate the other.
What is the difference compared to IPFS and Torrent?
> Take your card, phone or watch and hold it to the terminal for one second and you're done.

I'm not sure I'd feel safe if anyone could pay an amount above € 3000 after stealing my watch / phone / card and putting them on a terminal.
There is a lot of friction in this market. Owners take a long time to reduce prices, and many just take their properties off the market instead of selling at what they subjectively consider to be a low price. Also, in affluent areas many purchases are cash deals without a mortgage by investors or wealthy private buyers. So, middle-class buyers are essentially being shut out of the market.
Yeah, it took a strangely long time for Safari to get a date picker.

Now if Chrome could come onboard with hanging-punctuation{}, I'd be set!
The state does indeed try to rob you of your Freedom to Choose Paying Taxes.
Web3 projects on Gitcoin that are shaping the future of open Internet
If you're interested in discovering new Web3 projects, supporting them, and making the world a better place, take a look at these 9 projects