skysight-inc/HackerNews huggingface dataset:
It's a bit more complex than "swift is slow". As you say, ARC can lead to some performance cliffs when using reference types (class), but Swift manages memory statically for value types (struct, enum).

Modern idiomatic swift uses reference types quite sparingly, and Swift can be quite performant, but usually requires prolific use of profiling and optimization to get there.

Best case performance for Rust will probably always be better, because even for statically managed types, Swift leans more heavily toward copying values where Rust tries to leave them in place whenever possible.
Is humility the secret of smart leadership?
Thanks for your write up. I will definitely check out precessional help if I need to.
>In the brave new Rust-powered software world, does your day-to-day computing experience change? It is materially better?

A simple example would be that heartbleed and dirty CoW would not have existed in a rust world.
Why it’s so hard to read in times of distress
A similar article was on HN a few days ago:

https://www.bleepingcomputer.com/news/security/list-of-well-...

Here's the discussion about it:

https://news.ycombinator.com/item?id=23361823
In Switzerland, on one side we had unions who said "OK, no May Day parades this year", and on the other side we had bank CEOs who collected donations from their entire management team and took part in videos whose message was "all for one, and one for all".

eg https://www.youtube.com/watch?v=zPLx4cVJW10

(Koch may be retired now, but don't think we're out of the woods yet — we're still in double digits)
AirConsole and XL Home Partner Up to Transform AndroidTVs into Gaming Consoles
fzf is so amazing. it basically replaced filemanagers completely for me.
$125k. That's 2-3x Cybertruck price, so it better have some unique selling points!

Bollinger's design is very cool indeed. It'll be interesting to see what EV manufacturers will come up with without limitations set by combustion engines.

That said, also Cybertruck seems pretty innovative for me. Starting from $40k, practically indestructible shell for everyday purposes and likely still only about as heavy as Tesla Model S (probably around 4500-5000 lb — the real figure is not publicly known yet). That's because unlike most other vehicles, it doesn't need an internal frame but uses an "exosceleton" for structural support instead.

Cybertruck has also a climate controlled bed, as well as an obligatory AC (240V!) socket. Should be pretty amazing for camping, even in freezing temperatures.
The official testing result is 3.6% positive rate in the SF Bay Area, but we have so many flights from China weekly that it could easily be 50% or more. (fairly unique region)
That must've been a fun project. Did you write some sort of test harness for this? How did you build up this web page? Did you use the Objective-C compiler? Will you add the Swift compiler?
Who's James Mason?
The startup penalty is because you have to run the VM itself. After all optimizations there is really no benefit in having the code in binary.
Thanks for the feedback -- I really should've edited before publishing at 1am!
It's decent and getting better. I'm using Swift for computer graphics projects on Linux and it's working great and it's quite pleasant to use.

Currently it's only officially supported on macOS and Ubuntu, but the next major release (5.3) will add official support for Windows and more linux distros.

Tooling still has a ways to go. XCode is still the best way to write Swift, but, SublimeText, vim and VSCode are usable with Swift thanks to LSP support.
Building REST APIs with Quarkus
Thanks very much. My cyondolesenes to your daughter, hope she is in well place now.
This is really excellent, what a nice thing to do. Also interesting for others of us; I'd not heard of 86box before
Timing attacks can be used to determine if the TCP connection was successful, even if no data could be exchanged because the WebSocket failed to negotiate.
> IMO Rust has much better FFI than Swift, but that's primarily due to Apple.

How so? Swift has a stable ABI that, among other things, enables it to expose FFI bindings to many other languages. Rust has made the pragmatic choice of having no stable FFI beyond the C one, so if you want to setup FFI to a Rust library you'll have to write C-compatible wrapping code in Rust and expose that.
> The article on Wikipedia doesn't support your assertion that the scholars who coined the term "social science" did so "fairly recently,"

Fairly recently is subjective. But the article showed that they coined it because of the cachet attached to science at that time.

You can downvote and find things to nitpick, but ultimately I'm right. Just like creation "science". Political "science" is as much a science as creation "science". That isn't to say political "science" is nonsense like creation "science". It's an academic field that belongs in the "arts and humanities" category.
https://github.com/fogleman/primitive is a favorite of mine.
I think the reason such a magic wand can't exist is actually why it would be a material improvement if it did - it would fix swathes of bugs that rustc would refuse to compile, and that require understanding the application semantics to fix.

I don't know when I last saw a kernel oops or data corruption either, but iu certainly routinely experience bugs that could be manifestations of memory mismanagement.

And if everything written in Java would be transpiled, with no `panic`s, bells, or tracebacks :vom:'ed into the GUI, oh how I'd celebrate.
The Stock Market as Entertainment
>Plenty of those can be better expressed in C++20, alongside clang tidy and VC++ analysers.

Aside from lack of C++20 support on many targets, Clang tidy and extra analyzers require other people to take the same care as you do, an assumption that, as somebody mentioned in that article, is unreasonable to make in a non-solo project.

>Compile time reflection and metaclasses already exist as VC++ prototype, demoed at Visual C++ 2020 virtual conference.

A prototype in a Microsoft dialect of C++? That's apples and oranges.

>While I enjoy using Rust, what I care about are the libraries and IDE tooling

IDE tooling has gotten better, but of course that does still lag behind. While C++ build systems IMHO lag behind cargo, so for me that's a tie.
I see this as sort of saying "Imagine you could cure Ebola, is the world a better place? Well, for me, no, I'm much more likely to get hit by a car".

While I am unlikely to be attacked through a memory safety exploit, I also:

* Have been attacked through one in the past, when the internet was a different place

* Wonder how much time and money could be better spent if we just eliminated that entire class of problems - perhaps solving some of those poor design issues?
Mask use is quite rare here. The government had a group of researchers do a literary review of evidence for mask use and found the evidence lacking. The review has been (rightfully) critiqued, but there is no formal recommendation for mask use. Hopefully they will reconsider especially if the infection rate starts rising again. The epidemic has been concentrated near the capital with around 80% of cases found there in the last few weeks. I for one would advocate mask use around there even now to keep the rates declining.
Probably some group checking to see if their stolen credit cards are working, by ordering pizza to this guys address.
I sort of felt compelled to post this. An OS written in Crystal. [1] Which got quite a bit of discussion last time it was on HN [2] .

I know this may sounds strange but I would not be surprised once Crystal reached 1.0 there will be a Ruby implementation written in Crystal.

[1] https://github.com/ffwff/lilith
[2] https://news.ycombinator.com/item?id=21860713
That's an excellent quote; and 100% true based on my experience. The only language that I've struggled even more with is Prolog.
Signal's crypto is an incremental improvement of existing algorithms with good reputation, OTR and SCIMP.

Telegram's crypto is reportedly designed from scratch, with questionable choices such as SHA1 and MAC-then-encrypt.

https://www.cryptofails.com/post/70546720222/telegrams-crypt...

https://eprint.iacr.org/2015/1177.pdf
"ARC can lead to performance cliffs" is quite optimistic. Obligate reference counting ala Swift has even lower performance than obligate GC, at least wrt. throughput. It's pretty much a dead end in many ways.
The truth is probably that no one should use Facebook or Instagram in the same way that people shouldn't smoke or drink too much. Mental health ya know.
Sharks Thrive Inside an Underwater Volcano (2017)
Research Shows Students Falling Months Behind During Virus Disruptions
Wouldn't it take only a few minutes for the police to get the phone number(s) and find out?
I can only assume this is a #MeToo reference as he was the male lead in Lolita - c.f. https://www.theguardian.com/film/2018/feb/16/times-finally-u...
Have you ever witnessed an object moving?
Reply All did a show about this https://gimletmedia.com/shows/reply-all/z3hgd2
Amazon Deforestation Soars as Pandemic Hobbles Enforcement
but then they would already be paid, right?
By no means is it only about Actix; that’s just one of the more notable times that something like that has happened. The eminently reasonable criticism boils down to baulking at people undermining Rust’s safety guarantees with demonstrably wrong unsafe code, while publishing said code in such a way that you’re suggesting that others use it (i.e. it’s not just private code). It is also then often taken further to a general unease at gratuitous use of unsafe code, which I consider fairly reasonable because it’s so hard to get right (it’s unsafe for a reason). Then sometimes a few people take it beyond what might be considered socially reasonable.
> then if it performs even basic optimizations—this isn't a sufficiently smart compiler[5]-type case—it will elide all the reference counting overhead. Granted, most reference-counted code isn't written like this, but it means that reference counting isn't a performance dead end, and it's not difficult to squeeze your rc code to remove some of the rc overhead if you have to.

This is only the case if the compiler can effectively inline all functions. When compiling a function on its own, the compiler has no idea if the function incrementing a reference count is the first to do so or not. In rust the type signatures of the called functions are all that is needed to verify the type and lifetime correctness of a given function implementation.

> Correctness improvements from strictly defined lifetimes are a myth. Lifetimes aren't an inherent part of any algorithm, they're an artifact of the fact that computers have limited memory and need to reuse it.

Rust's lifetime analysis and 'mutability xor shared' semantics are also useful for correctness, both in threading (as you mention), but also in the case of unexpected mutation in the same thread: iterator invalidation is probably the most obvious case of this (and it's not just because 'computers have finite memory', it's intrinsic to how a lot of datastructures work).

What's more, Rust's lifetime and ownership system works neatly with pools and other special-purpose allocators, and implementing such patterns in a safe manner is frequently done in rust (in some cases Rust lets you get away with patterns which would be so wildly unsafe in C++ as to be impractical). If Rust didn't care for allowing such control over memory allocation it probably would not have much of the features it does have.
The Old Wizkid and the Present Day Soundman
And how would the server know the desalted hash?
Ok, then that is the exact thing where you misunderstand.

The mask is not protecting you. It is protecting others from you.

If you were right, and wearing masks badly would have been worse than not wearing them at all (i.e. w.r.t. touching your face and all that), then countries that opted for mandatory mask wearing would be worse off and they aren't.

Related: https://www.preprints.org/manuscript/202004.0203/v1
I started my career 10 years ago doing exactly this (also from a 3rd world country). Within 3 months I reached 1.5k/mo while finishing my engineering degree. It wasn't that hard (not sure about now) since all you had to do is demonstrating that you're capable of completing the project in your bid. I did this by describing what kind of stack that I'll use, potential problems that will likely arise and how to address it, or even try to steer the project owner to use stack I'm more capable of by describing its benefits compared to their chosen stack (if they requires the project to be written with a specific language/framework).

I imagine those freelancing sites is 10x more saturated now than 10 years ago, but perhaps it's still possible to reach 1.5k/mo in a few months. Like other people said, it's probably best to pick your niche to narrow down potential projects and reducing competition. I was mostly bidding on python projects back then (not as many python programmers back then and a gazillion of php programmers).

After I got my degree, I emailed one of my past client that I'm now available for full time work and he connect me to someone that was looking for full time developer and the rest is history.
>given that many governments do have a history of letting lots of people die because it’s to expensive to keep them alive, the only reason this isn’t happening now is because it will affect those leaders personally.

AIDS is a good example of this. It's more deadly than coronavirus, but because it was seen as a disease of gay people, governments initially invested extremely little in treatment or stopping the spread. According to WHO, 32 million people have died of AIDS since it appeared, and most of those deaths would have been prevented with easy access to and faster development of the antivirals now used to treat it in rich countries.

Malaria is another one. It kills hundreds of thousands of people each year (mostly in Africa), and is largely preventable by relatively simply approaches like mosquito nets. For a small fraction of the trillions of dollars involved in trying to stop covid19, most of these fatalities could be prevented.
This is the kind of thing the webkit team at apple raised as privacy problems with webrtc. They got called IE.

But seriously, many new specs are very obviously abusable, yet on HN people seem unwilling to accept "this feature is trivially abusable" as a reason to not give developers a new feature, even when it is user hostile.

Web specs, and the webdevs he frequently want them, need to consider abusive developers being the default users of the API.

When working on WebGL it took an absurd amount of work to get non-web folk to understand that the spec had to be very tight and verifiable. I literally had to deal with people arguing that "developers won't ship shaders that crash the machine". It was painful.
How Bill Gates became the voodoo doll of Covid conspiracies
Sounds a lot like programming in Haskell. Applying higher-order functions or condensing a parser into a oneliner just makes me feel smart in a way that generating a new Rails controller never does.

My personal theory is that a lot of Rust and Haskell (and many other "advanced" languages) usage is caused by people chasing that feeling. The publicly expounded benefits like memory and type safety are true, but the real reason is that people want to use the language for their own reasons and "I really like it" usually does not have enough weight in a business context.
Implicit clones are enabled using the `Copy` marker trait in Rust.
Seems like the hosts files of old and one kind of Alternative root. https://en.m.wikipedia.org/wiki/Alternative_DNS_root
Of course it can. When a material with a highly inelastic but until now sufficient supply experiences a demand spike or supply drop, and mitigating investments in equipment and new sources are capital intensive and take a significant amount of time to implement, you can have severe shortages. I can't see how that's a contentious concept. Markets can often correct for supply/demand imbalances, but not instantly and perfectly.

Also market prices rising with demand don't themselves increase supply, again not instantly anyway. It doesn't matter how high the prices goes, if there is insufficient supply to meet the demand some people will be priced out. That's not even got anything to do with markets and certainly not a market failure, it doesn't matter how allocation is determined, not everyone will get what they need, at least for a while.
Good list of resources here:

https://github.com/tayllan/awesome-algorithms
As long as it is paid for I would not mind. I can't eat gluten, maybe they could switch to gluten free pizza or sushi?
Matthieu Ricard: ‘Eternity is awfully long, especially near the end’
And it'll improve. There was a helium find with absolutely insane natural concentrations in South Africa recently.

>Helium is found within natural gas in concentrations typically up to 1% by volume of the gas released; however, the updated reserve review shows that the latest well drilled in the Virgina project contains a concentration of almost 11%.

https://m.miningweekly.com/article/south-africa-to-become-ei...
Rust and Swift are my two go-to languages when I have free choice for a given task. I love both, and I miss things about Swift when writing code in Rust and vice versa.

What I love about Swift is that it's an incredibly expressive language which is easy to write, so it's possible to be incredibly productive in it. The type system is awesome, the syntax is super clean and consistent, and thanks to a lot of well-thought-out syntactic sugar it often feels like I'm almost working in a DSL for the problem I'm working on.

What I miss from Rust when working with Swift is the level of specificity. Swift makes some assumptions about how values and references are handled, which makes things easy to code, but can often result in unnecessary copying and reference counting which can only be avoided by bending over backwards in the implementation or resorting to the unsafe API. I like how Rust gives me precise tools for specifying exactly how memory should be handled.

To be honest, I think my perfect language would have something like Swift's front-end, and something like Rust's memory model.
At one point in 2003, my CRT monitor died and I didn't have money to buy a new one for two months. I was still using my computer to play music, by blindly typing commands in the console - I remembered the folder names.
The original post about this seemed to indicate it might be being used to track, identify, and/or verify a client is a real system vs. a bot
Yeah was thinking the same after reflecting on your message. Have to tweak the system for that a bit, but it's worthwhile.

For a while I was thinking of setting myself the rule of only using my own images to circumvent this.
Why do they keep using the same address again and again?
If that's true, why would they use the same address that often? isn't it the best way to be flagged and uncovered? it would be so easy to pick random addresses
Intel sold low core count, repackaged CPUs for ridiculous prices for years, because they didn't have any competition.

Now AMD's managed to claw black some of the market for itself, but it is still at a huge disadvantage compared to Intel. And AMD's only lucky that IBM insisted on two independent OEMs for its PC CPU's and that Intel wanted that deal bad enough.

When it comes to the desktop CPU market itself, x86 has an unquestionable monopoly and no new player can attempt to design x86 chips without getting sued. But without x86 there's no point designing desktop chips in the first place.
Could just be a geocoding issue? Some data bug in a database somewhere that unfortunately ends up "redirecting" a load of addresses/postal codes etc to this guys house?
New study reveals cracks beneath giant, methane gushing craters
He said his friend also gets a lot of these deliveries, sometimes on the same day he does. He suspects it's someone they know.

It's been happening for 9 years and yet none of these businesses have managed to put him on a blacklist?

I smell something fishy. The article started to read like The Onion at one point, and I suspect it's not even real.
Also, eventhough the phone numbers were not always the same, I guess over so many cases, there must be a way for an investigation to find useful information
> Purity is not on a scale. Either a language is pure, or it isn't.

This is not quite right. "Purity" mean that with respect to some unspecified by fine-grained semantics various pairs of programs are equivalent. For example, in the denotational semantics of Haskell the following are equivalent

let x1 = rhs
x2 = rhs
in body

and

let x = rhs
x1 = x
x2 = x
in body

But they are not equivalent under the operational semantics. The former allocates two closures, the latter one. The "scale" of purity then is measured by how fine-grained the semantics is. Haskell is pure at the "scale" of denotational semantics, but not at the scale of operational semantics.
I find it very hard to not look at my phone every 5 min (to check HN, emails, or anything). I wish I didn't, and I feel quite like the author (at the beginning of its article): lack of concentration, mentally tired..

Do people have any advice to help ?
Reminds me about this Reply-all[0] episode about a mysterious $2 coke that is orders at Domino's all over the USA:

[0] https://gimletmedia.com/shows/reply-all/z3hgd2
Sure they're shady and that needs to be blocked, but security implications? Pretty much nil.

Fingerprinting. Vulnerability discovery. Messing up programs that don't know how to deal with unexpected HTTP requests.
You defeat your own cause by insisting that only people of the same race can help solve it.

"Would you refuse to be treated by a doctor for cancer, unless he himself has had cancer?"
sars-cov-2?
This is the exact kind of gotcha look-at-me-i-am-smart rethoric that I was talking about, you do not engage with what I wrote. "He said 'listen' without technically qualifying it further so let's reframe this so that listen also covers listening to racist view points, something orthogonal to the essence of his post, gotcha!". We both know what you are doing here, and honestly I expect better from people. I have no idea why you are doing that however, I'm interested in what led you to reply in this manner.
Love that episode. Every time I order from Dominoes I use the name Adam Pisces now
It may be a bot? Either one with a bug, or a way for the authors to kill some competition?

The article doesn't say if the pizzas were ordered online or by phoning directly the shops.

At the begining, the bot would not have been able to call, but I assume now it's possible to make bots smart enough to handle pizza orders. It may even be a nice way to train one.
A picture of your mother-in-law on your home screen?
I wonder how long it took local pizza restaurants to figure out that this address is problematic and flag it, refusing service? I'd tolerate no more than 3 times. So, how many pizza restaurants are there in the area? 20? 50? 100? I don't know how this could last for years.

(That comes from an assumption that pizzas are not paid for in advance, which the article kinda implies)
> Spotify. You pay us for the music, we don't pay the artists.

To be fair, it's not like the major record labels paid artists well when you bought a CD previously.
Moderated in scope, not in opinion. Except the downvotes of course, which are easily the worst part of HN.

I too miss the old forums you had dedicated to one thing and set up by volunteers who liked that one thing and weren't interested in growth above all.
All available data indicates that China is by now among the safer countries for travel in regards to COVID19.