skysight-inc/HackerNews huggingface dataset:
One thing that rust doesn't (yet) have is a strong presence and toolbox for usage in scientific computing. In scientific computing, when speed matters, Fortran/C/C++ still very much rule and rust won't take their place anytime soon. Julia has a better chance at that, in fact.
Hilarious. Someone said block China and Russia, and we have a long response "USA bad! China not as bad!".

No mention of Russia, and the original poster probably has nothing to do with the US.

Here's the thing, China and Russia are the wild west of the internet. Someone starts to DDoS a UK IP from the US, and it gets shut down hard and fast.

Someone starts to DDoS from Russia or China, and reports are dropped on the floor. Same for hacking attempts.

And yes, if someone from Russia or China reports to me, errant acitivty, they are listened to.

There is absolutely no comparison. These zones are useless for most companies. No one in China or Russia is buying anything from much of the rest of the world. Russia spews more spam that the rest of the planet combined.

Dropping their IP space on the floor, is the smartest thing a startup can do.

And the manufactured outrage is hilarious. These two countries block everything they can already, meaning legit traffic is rare. The great firewall of China means few will visit your site anyhow.

Drop Russia, China, and even Brazil (whos network ops never ever ever respond to spam reports).

Your admin life will be immensely better, and it will cost you nothing, nada, zilch. All upside, zero downside.
The Python 2 to 3 transition took a while, but I'd say it was successful in the end, wasn't it?
It is derivative in the extreme. I'm allowed to be bored by mediocrity, sorry, it doesn't take anything away from you if you enjoyed it. Quite ironic the implied peer pressure implicit in your reply - I must like it or I am so stupid as to confuse it with a knockoff.

I also am not a fan of Harry Potter. These are the sort of books that are wildly popular amongst people who otherwise don't read anything at all. So I suppose it is better than nothing.
That's true, but if they know/learn, they will be able to get it, one way or another, and they don't have to be in the UK :)
I think painting Rust and Haskell as similar languages is very misleading.

Haskell has a garbage collector for a reason.

You can't program naturally with closures unless you have a garbage collector, because closures introduce cyclic references.

Also, Haskell has a type inference system that allows e.g. the IO monad to work seamlessly with the rest of the language.

EDIT: and laziness of course.
C++ is (primarily) used where there aren't any other viable alternatives (other than C).

Browser frontends (in general) set not such demands (size, memory, speed guarantees) and its bloat more often comes from things outside of code (images, videos, trackers), so there's freedom to use whatever floats ones boat.

Combined with the ever increasing demands on app complexity, frameworks and born left and right. The strong movement into functional programming in this area has also led the way for other languages (SMLs, Lisps) that better fit that model.
Yonz- here, one of the people helping to gather and connect Local-First builders.

Today's internet is broken due to the fragmented and siloed nature of products. Once you see that user owned data is the solution you can not unsee it.

My journey started with the
https://www.inkandswitch.com/local-first/ that caused a stir on HN https://news.ycombinator.com/item?id=19804478. With https://lfw.dev we are making it easy for others to learn about, discover and build the Local-First world.
Is that him again in the bottom photo, mid pack on the left, wearing sunglasses?
Bug of the Sprint
About Haskell's function type annotations: "But it usually results in a warning, and adding a type signature is a good practice."

I prefer Rust's way of doing this. When you're a beginner it ensures that you're passing and returning the proper type to and from the function, you kind of have the function as a guard which ensures that you're using the correct types.
I do not support any party in this war, though I'm not really pacifist.

It's not worth dying for NATO membership or an ukrainian Crimea. And nobody should be forced to fight in any war.

It is about cost/benefit.

If Ukraine would tell:
We are looking for a compromise (no NATO membership, Crimea belongs to Russia, ...), I could change my mind and support them.

If Russia would invade another country there's a new cost/benefit ratio.

And I think Russia will not invade any western country. I live in Germany and I'm not scared of Russia. They (Soviet Union actually) left East Germany peacefully.
Fascinating Inventor Blew Away His Competition
Some languages feature support for this. F# has it built-in and refers to it as units of measure. Julia has it available as a package named Unitful.jl.
How would the equivalent linked list in c++ be unsafe?

The problem with c++ was never writing simple data structures, but was writing complete programs without a single mistake in the informal contracts between functions. Static analysis tools and other crutches help but having a stricter ruleset to enforce is what makes rust a winner.
Honestly, I don't front to upper management either. I ask what the strategy they want to try is and if they ask me if I think the strategy is correct or not I give my honest answer. If they don't get honest feedback from us then why would we think they could make wise decisions?
Completely agree -- I just went into the cloud manager to spin up some boxes for a new project, and the instant sinking feeling in my stomach upon seeing the Akamai logo up there has changed how I'm going to respond to Linode's acquisition. When it was announced I had a panicky half-day of looking at what it would take to migrate to Hetzner or OVH, but ultimately decided to punt on that giant task until Akamai's rot started to set in.

Changing the logo and branding is purely cosmetic, sure, but it turns out that having to look at Akamai's logo and colours up there is enough to push me over the edge. Those new VMs are booting over at Hetzner as we speak, and I'll be migrating everything else over the next few weeks once I put a migration plan together. It's a pain in the ass, and I'm sure Akamai won't actually miss my ~750€ / month -- but I guess sooner is better than later.
... and if you're not aware, Saleae clones are widely available on e.g. Amazon, prices before shipping seem to start around $7 in the US. This is possible since the original Saleae is basically just a CY7C68013A [1] in a box, and once others realized that cloning it was not difficult. No idea about patents and so on here, obviously it's not OK for clones to use Saleae's firmware without licensing it.

I have one, it worked fine and is of course highly recommended since the combination of a cheap way to get signals into the computer and Sigrok's protocol analyzers makes things really neat.

[1]: https://www.infineon.com/cms/en/product/universal-serial-bus...
Yes, but with granularity at the "node" level instead of being across the whole container. Imagine a linked list.

If you add prepend an element to an existing list, no copy is necessary. It's just a new head with the tail being the original list. That's an easy case.

If you add a node in the middle of the list you can still share the unchanged tail between the two slightly different prefix sequences.
Pydantic is much much much slower than normal dataclasses. However, they have to be because they do validation and dataclasses do not. So, I use normal dataclasses for internal constructs, which need to be fast and pydantic for anything that comes externally, can't be trusted and has to be validated.
I wonder if Polylith would be up your alley?

https://polylith.gitbook.io/polylith/
I’m more annoyed about the lack of science and maths books in libraries in general… nobody cares about political takes at the age of 13. That university level organic chemistry textbook was so much more interesting.
OrbStack’s website 404s. Read into that what you will.

Further, the link shared here seems to be a referral url, but I might be wrong.
Waah Waah Waah the BBC is in bed with the tories

Waah Waah Waah the BBC is massively left wing

Same old same old.

BBC Employees tend to be younger than average (as there are very few over 65s at the BBC), tend to be more educated that average (most jobs will require a college level degree), tend to be more metropolitan (most staff are employed major cities)

Of course there are very few tory or leave voters amongst BBC Staff, probably between 1-in-4 and 1-in-3 if they are demographically representative [1]

The question is how those views come across in the reporting, and generally it seems fairly balanced to me (I usually vote Lib Dem fwiw)

[1] https://lordashcroftpolls.com/2019/12/how-britain-voted-and-...
The whole need to encrypt likely only exist within rudimental newborn civilizations like Earth (on a universe scale) where species are fighting their own for survival and growth.
Can someone explain why/whether a language like Rust requires mutability? Wouldn't it be better if we could just have the compiler guarantee that functions marked as such are doing TCO, so algorithms would look better and had the full benefit of persistent data structures?
As someone who has only worked in "right to work" states, it always strikes me as absurd that people seek "job security" through a 3rd party agency rather than by individual performance and developing personal relationships.

Honestly a big part of why I quit my last job was too many unproductive/unreliable coworkers.

Am I just Stockholm Syndromed?
> Unlike IRC which is basically just a bunch of sockets and IPs passing data without storing state

To be honest this is probably reason #1 why people stopped using IRC. We want to see the messages that were sent while we weren't here. Yes I know what a bouncer is, no this is not a good solution.

IRC as a protocol is simple and elegant but as a product it doesn't meet today's users expectations at all. And you can't just say users expectations are wrong and they should just align with what IRC provides, it doesn't work like that.
We always use dataclasses with frozen=True to make them immutable.
I imagine this speeds up development velocity and is easy to adapt to a changing environment.

I think Python is an example of the same pattern, you write your glue code in Python and the high performance code is in C called by C FFI from Python.

I just wonder how we can write code with development velocity of Python or Lua but actually evaluate extremely fast.
However many exceptions to the rule there may be, if it mitigates the number of rogue activity and you’re not doing business with those geographies, it’s still a net positive to your finances and cybersecurity.
what are you talking about? do you know where you are right now?
Link in first sentence is 404.

Looks interesting. The biggest problem I have with Docker Desktop on MacOS though is the constant cpu draw of 3-5% (or more, I can't tell if "kernel_task" seeming more busy when Docker is running is real). Wondering if we get any improvement there?
AI Content Detector – check if a text is written by ChatGPT
I know it’s not the focus of the article, but a personal pet-peeve of mine is when pandas gets mentioned in articles and discussions regarding alternatives to sql and data pipeline tools. Pandas was never meant to be a replacement for sql, it was meant to be a replacement for excel in highly dynamic quickly changing financial and econometric excel models. It just so happens there’s a lot of overlap between this and more proper data pipeline tools. But for its original purpose I don’t know if anything that still comes close to the useability of pandas.
There’s also something beautifully awful about blocking entire countries due to the reputation their IP addresses have, while making strange, sweeping xenophobic statements about the people that live there, meanwhile a non-insignificant percentage of some of those attacks originate from the United States (e.g., the Mirai botnet that compromised hundreds of thousands of IoT devices and also held the CloudFlare record at one point was created by an American and operated from the U.S. despite many of the infected devices being located in some of these countries).
Sounds neat, but no demo, no video, no evidence at all of it achieving the stated goals. Also they're doing a survey to see how much people would pay per month for what sounds like a single download app (not a service).

Tech-wise, would be interested to hear what this is using. I assume it's using the macOS Hypervisor framework?
Nah, their secret sauce is that they are sales behemoths first and foremost. They are adept at convincing any CEO/SVP to ignore any internal advice from the CEO/SVP's technical teams and sign large, binding contracts instead with them. Also used to work at a big 4.
No, because you don't copy the whole structure. You create a new partial structure.

E.g. let's say you create a map with keys A and B. You then insert a new key C. In memory you might have two objects: One is the origi al map with A and B and the other has "Key C and a ref to the first map".
Go and search "turkey earthquake" on youtube.

I agree that legacy media finally figured out that Youtube was eating their lunch. That said I think that most of the earthquake impacted areas would have very poor cell/data coverage until things are rebuilt. I don't have anything to back this up but I would assume that most of the survivors do not have internet at the moment. They have much bigger issues to contend with. News media are probably some of the few outsiders allowed in the damaged areas.
The fact that a person can spend a life in jail without having physically hurt another person is grotesque, though his case is obviously not the most egregious.
> you can target the latest bleeding edge features, and still be able to compile and run them on 20-year-old browsers through code re-writing

The problem with C++ is the other way: you can't compile 10 year old code because the language has "evolved".
Very cool, I wish I could do this sort of thing.
Burying the Lead: Understanding heavy metal exposure today and in ancient Rome
> If you specified units for the variables, you could identify mistakes in your equations and functions very quickly. For example, if you wanted meters, but you got m^(2/3), it was usually obvious where in the equation something went wrong.

You can take it even one step further and write tests to check the resulting units for you.
> OR open source your code

That is - offer your code to your customers under the agpl, not necessarily back to Lago or the community. But, since your customers get the code under AGPL, they in turn are free to distribute it. So, in practice, going that way - it generally makes sense to just open it up, and contribute back directly.

(imagine your only customer is IBM, or some other big company - they might not care/have an interest in re-distribution of the AGPL code - so you could be compliant (offer source to IBM) - but effectively closed off from the community).
That was similar to my initial reaction, but after trying some things in another comment I'm kind of sold on dataclasses. As long as it raised a syntax error if a class combined __init__ with arg: type, then I think you can still do everything else you would in a normal class. It's just a shortcut for when that's all you need.
The bizarre thing is how balanced the documentary actually is if you watch it. Many senior BJP officials are given plenty of time to defend their case. It focuses on provable events, things which were captured on video or public legal proceedings. If this has received such extreme backlash, I'd hate to see what happens to an actual opinionated news outlet
Yes it is true. You may be misremembering the fact that an infinite walk in 3D has less than 1 probability of returning to start. But returning to start is still the most likely outcome. How could anything else be more likely?

https://mathworld.wolfram.com/RandomWalk3-Dimensional.html
Curious what "mild" ADD looks like?

I've not necessarily had issues impacting my life but can be very forgetful (top of the stack always takes priority) which drives my wife crazy, and I often describe my work as "loading up for a few days to do a weeks worth of work in a 3-hour flow session" (which has worked well for me).
Please, I am very curious about the kind of "non boring" classes you are talking about. If you could show an example. I couldn't come up with anything that I would define as reasonable where we couldn't define the types beforehand.
> Further, the link shared here seems to be a referral url, but I might be wrong.

I think it's just the ID for the survey in the tool they've used to build the interest sign-up form.
We do fixed price contracts but in my experience the accounting works out such that the partners leading the work are incentivized to negotiate internally to get the best people they can, not maximize the margin with the cheapest folks available. I can’t say staffing as many junior people as possible resonates.

Maybe at a body shop like Accenture though.
Many data centers are on industrial estates; hardly in the middle of nowhere. For those who truly work in the middle of nowhere, I'm sure a permit scheme could be worked out.
> there are limits on what kinds of violence people are willing to accept in the supply chain. China is incredibly hard to divorce from, but we're doing it.

What may or may not happening in China has nothing to do with it. The issue is geopolitical and the seemingly collision course between an increasingly powerful China and the West, especially the USA.

Edit: Likewise, with China the #1 threat the West will want to keep India on side. An example is Russia: India has been keeping its trade with Russia, and even increased it since the war in Ukraine started. The West has been very quiet on that.
We should have some Large Language Model that translates C++ to idiomatic human-readable Rust, using correctness-preserving transformations of course.
somewhat related article regarding non-termination in c++ and c: https://stefansf.de/post/non-termination-considered-harmful/
> Tech-wise, would be interested to hear what this is using.

Especially due to the claim on “30Gbps networking” considering there isn’t a Apple Silicon Mac with over a single 10GbE port.
selective law enforcement truly undermines the rule of law and legitimacy of institutions.

it turns the rule of law into rule by law: rulers and the ruled

it creates a class of people who are not subjected to the law while unleashing "order" on the powerless.

it's all hidden behind the curtain and turn a society into nothing more than "might makes right".

the vail is lifted whenever the inconsistencies are exposed which is why the system always aims to avoid transparency to maintain its power.

instead of rule law, society becomes nothing more than a hierarchy of power with a lot of bullshit decorum

unfortunately, it's pervasive across governments, especially less subtle authoritarian governments.

I wish nothing more than true rule of law.
Much much more than that in case OP is not in the US.
> Can someone explain why Rust has mutability?

Because it’s target domain requires reliable efficiency.

> Wouldn't it be better if we could just have the compiler guarantee that functions marked as such

As such what?

> are doing TCO

TCO is worthless, and Rust does not have TCE, nor does it care about TCE.

> so algorithms would look better and had the full benefit of persistent data structures?

Rust does not significantly care for persistent data structures, there are crates which provide them, but not the standard library.

Rust is not a functional language.
Archive Link [1]

[1] - https://archive.ph/86W0t
Enh… I don’t think I agree. Financial fraud can do serious harm.

I’m also not sure why there’s a sense that the crime has to be violent to deserve such a sentence. Imagine if I methodically went house to house, ensuring everyone was safely out of it, and then liquidated the house until there was naught but a hole. And I did that thousands and thousands of times.
Beat the $5 wrench: multi-passphrase multi-content in a single encrypted file
The $5 wrench: https://xkcd.com/538/
You would still be vulnerable to a $10 wrench though, so don't use this.
Do they have terrible UX, though?

I'm also a vim user as my primary editor. My .vimrc does very little beyond the default .vimrc. I don't want to spend any time configuring my tools, I just want them to work. And that's what I get with vim, on any Linux system out there: a vim that works pretty much exactly the same as the config I use on my own machine and know well. If it's not already installed (and it often is), vim is just a package manager call away.

If you really think your tools have terrible UX, find/build better tools?

I'm not convinced time spent in my dotfiles isn't just time wasted. I don't want to hack my tools, I just want my tools to work. And vim does. Most of the tools I've come across for vim, are already in vim with good enough UX. The exception is language-specific tooling for stuff like highlighting compiler/linter errors or failing tests, but it's a massive amount of work to get that stuff working, and I'm not sure that pays off when I can just run that stuff from the shell. Sure, it takes a second to switch to another command line tab to run the tool from shell, but how many 1-second switches does it take to add up to 4 hours spent debugging my .vimrc? It's not worth it.

And, by the way, I'm not throwing any shade here. If you like fiddling around with your config files, that's an entirely valid reason to spend any amount of time that you want, fiddling around with your config files. Do what you enjoy--you don't need my blessing, but you have my blessing.

Just be honest with yourself about why you're doing it, and do it on your own time. If you need to complete a task in a timely manner, it's extremely unlikely that any step in completing that task involves your editor configuration. There's absolutely no way that all that Emacs configuration was the fastest way to reproduce that bug in the OP.
I have no idea and I don’t care.

What people should realize is that the discussion is a complete waste of time. Furthermore, no one here will be showing up to say they were wrong if it does happen in one form or another.

Remember when Apple Stores would never work?

https://www.bloomberg.com/news/articles/2001-05-20/commentar...
Most attacks are using a shotgun approach. DDOS generally are targeted but even then just badly behaved scrapers or vulnerability scanners can add up to be like a DDOS.
The third paragraph is most crucial. Having said that, as an Asian I'm super puzzled with Western countries tendency to moralizing and lecturing other countries internal matter.
This is very cool, but very expensive. For this money (€230 in EU) there are a lot of other options, however, for getting an oscilloscope that is useful and robust (unlike those €30 DIY kits that ... I'm too clumsy not to break).
I guess this involves training textual inversions which take quite a lot of computation vs other methods like instruct pix2pix which don't need to
This is a great business idea. No kidding.
imo very few industries need unions, and most devolve post union integration. it seems like there's no one size fits all union model and about a million ways to turn it into a kludgy fiefdom.

edit: downvote with your words you nerds
Lack of interoperability in chat and video conferencing reminds me what a miracle it is that email has worked so reliably and consistently for 40 years.
You know kids, remember to keep your panic trigger/duress on your phone to get basic security.

Feels weird but my last comment was about about things including a few times like this one. A few years ago(2019), WhatsApp and VPNs were outlawed and was a crime so I had my VPN toolkit behind panic apps so when I was searched a few times,once walking down a busy street and second while driving a car (was made to get out), duress password saved me.
Why the hell would you measure broccoli or kale in cups?