skysight-inc/HackerNews huggingface dataset:
Show HN: a Rust intro for experienced programmers
Hey everybody, it's Sarup and Paul, co-founders of CodeCrafters (YC S22).

Today, we're excited to launch the CodeCrafters Rust Primer.

https://app.codecrafters.io/collections/rust-primer

It's a free intro to Rust designed with experienced engineers in mind.

What problem does it solve?

As an experienced engineer learning a new language, you don't need yet another coding 101. You simply want to find out what's unique in the new language, and get to the actual work.

So we built a Rust intro that:

— jumps right into what's important

— reveals one idea at a time, with code examples

— can be interactively used on your phone, with "taps"

Why we built this?

Our core product CodeCrafters, is a set of interactive challenges for experienced software engineers. e.g Build your own BitTorrent, Git, Docker, or SQLite. The challenges can be done in any language, but Rust is our most popular.

Our customers often tend to dive right into our challenges, believing they can pick up a new language along the way.

They're usually right too. Except with Rust — especially with Rust — most developers realize soon enough that they could have used some introductory help.

When we began going through available intro resources, we saw that they were either too dense — or in trying to be beginner-friendly, they focused on motivation too much.

Today, we're launching our solution, a mobile-friendly, no fluff intro to Rust that respects your prior programming knowledge.

We're starting with 6 modules and will be releasing new modules based on feedback.

https://app.codecrafters.io/collections/rust-primer

We'd love for you to try it out and give us feedback. What other modules would you like to see? How can we make your mobile journey smoother? What can we explain better?
Same goes for Steam though, especially for multiplayer games.
Baldur's Gate 3 dev shows off the level of optimization for the Xbox S port
Intuiting Latency and Throughput [video]
It was the least toxic social media cycle I'd seen in years
I've worked with plenty of managers who are entrepreneurial within large companies. Every year we have to propose new ideas and then (when approved) go deliver on them. That's not "just manage, and shuffle around value"

I have also worked with those "just manage" managers too. But one shoe does not fit all
> most oil is used for frying, or other high temperature applications.

This is incorrect. The majority of olive oil is used in foods that are cooked in the oven, or on the stove top (or pressure cooker)

source: decades lived in (around?) the Mediterranean
Sounds like a win-win-win situation for gamers (buyer), developers (seller), and valve (marketplace).
Show HN: I redesigned my landing page, what do you think?
Fair. It's a serial problem with some accounts.
> In Germany, workplace injuries have gone continuously

In the UK our safety films just had John Cleese standing on a swivel chair. But the Germans had Forklift Driver Klaus [0], which is much more compelling: "Cruel but informative accidents happen". Never have I seen a forklift and a chainsaw cause so much carnage.

[0] https://en.wikipedia.org/wiki/Forklift_Driver_Klaus_–_The_Fi...
pretty clever mission patch:

https://en.m.wikipedia.org/wiki/Apollo_8
I don't think there are philosophic problems that require strength. There are pessimistic misconceptions indeed, but therapy here is finding optimistic truth, then there's no reason for pessimism anymore.
As someone who has only done small projects in Rust, I'm curious how many LoC are we're talking? And were you splitting your project into crates where it made sense?
I use Excel on my mac just fine.
If someone else doesn't understand why painters would have a problem with Tesla (like me), you might be interested in this: https://www.ifmetall.se/aktuellt/tesla/background-informatio...
There it is mostly an interop for doing JNI calls into the OS APIs, as people keep forgeting NDK is only for game developers and Java native methods.
They’re funded by the state.
I don't have a bath, so can't test that theory.

But trust me when I say I have more-or-less tried everything as far as I'm aware. Cold showers. Hot showers. Magnesium etc.
It’s an annoying corporate political model.

The heads of the subdivisions of the company “own” their smaller units, and the units own the people. I think of it as feudal governance. “Sharing” people ultimately makes the overlord look weaker.
New Outlook, which forgot to notify me that I had a meeting coming up despite having notifications set for it.

In a corporate office environment, that’s one of its two jobs.
Not on mobile, which is where Apple GPUs come from. FP32 is not necessary for many computations related to graphics, it is just simpler to deal with one data type.
> They're likely W-2 employees of some sort of staffing agency, who are then placed at Google.

This is precisely what Samsung does in Austin at its fab, via Randstad. I was a supervisor, and had about 50:50 FTE and Contractor. They were treated exactly the same, including getting pizza parties and the like. The main – and largest – difference was FTE benefits were awesome, and Contractors got the bare minimum required by law (Texas, so basically nothing).

I often complained about this to management, to no avail. My main argument was that we were training people to quit and go work for Intel or GloFo as FTEs. Didn’t seem to matter.

I hate this model so much. Just pay people if you want FTEs.
> seems like a strategic goal to capture our data.

Sure is good they're not an ad company then. /s
China is investing heavily in nuclear power. I believe they are even trying the new modern designs (cannot remember the name, but it's the latest generation that the US doesn't have because of over-regulation). Why would they go so large on nuclear if they are the capital of production for solar panels?
>It fixes most modern afflictions of sedentary < 60 years old people

Under physical therapy supervision, my >60-year old mother is exercising fairly vigorously (for her age) and has been seeing great improvements in her overall health and strength, so don't let age be a factor and get professional help if needed.
Thanks, I wasn't aware of them.
Well a definitive press of the power button seems the good way of killing a window, as such notion simply shouldn't exist. One could also argue that those who complains in sarcasm about such unnecessary longings should do the same.
Many have tried and failed. But Finally a Ruby JIT that is shipped and enabled by default. Discourse is now on YJIT as well [1], Still hoping we could get much larger performance improvement down the road.

[1] https://blog.discourse.org/2023/05/running-ruby-3-2s-yjit-in...
This also includes the following sympathy strikes:

* Ports will refuse to load Tesla cars

* Post and package delivery denied

* No office/factory cleaning

* Electricians won’t do work on office/factory/superchargers
It’s at least a small intersection. I had it set up and I think it’s the only social media company that supported this.

Comically I forgot all about it until I had to reset my password and got an encrypted email. Was a pain to dig out my keys and decrypt it, but it worked.
You might have made a mistake, but your next relationship should be better because of it.
Man vs. Musk: A Whistleblower Creates Headaches for Tesla
That is really cool. I've been in the industry for over 25 years and I've never been to a fab. The number of jobs and specialization is so high that you need thousands of experts in their area but they have little knowledge about someone else's job. I know very little about all the equipment used to make chips. The people next to me that write Verilog know very little about DRC violations that I described. It takes a team of thousands of engineers to make this stuff.
I thought thin was meant to be the opposite of fat, not that it did anything to do with parallelization.
https://archive.is/7jHR6
Curious, you are email host for what? If it is a corporate entity, can't you control devices your employees can access mail from or what client is whitelisted? If it is public, why do you care where is the mail server hosted.

I agree that changing an app from offline to online, without appropriate messaging is wrong. But, it is not different from how Gmail works as a mail client.
Which? Are they consistent? Are they useful?

From wikipedia:

> The incompleteness theorems apply to formal systems that are of sufficient complexity to express the basic arithmetic of the natural numbers and which are consistent and effectively axiomatized.
Hey, I'm one of the developers working on Deno KV. Happy to answer questions!
> Orders of magnitude more grooming and misconduct is done over SMS

Yeah, you should bring up snail mail next.

Even if we imagine someone using SMS in this day and age, still no one uses it to send photos or videos or broadcast live abuse.

> Is it up to telecom engineers to “wake up”

For better or worse a lot of what they do is considered essential service (calling emergency, disaster response etc).

e2ee messaging isn't essential, and yes ordinary non-tech people are waking up to harmful uses of it. If tech industry doesn't own up to that and work to combat those, someone else will and in that case rest assured you will not like the result:)
To be fair, it's the author's fault this time. They brought it up at the very beginning in the third paragraph.

The author's joy will also be short-lived because static typing is coming and will likely win out if the implementation is solid.
Agreed, mostly. Bitcoin is still in a proof-of-concept state, and as a concept, it has its significant flaws (transaction rate and proof of work's carbon footprint). The concept isn't near being proven yet and that hasn't stopped all the other crypto coins coming into being, the vast majority are pure scam/money printing scams. There is no crypto market; just Bitcoin and blockchain bullshitters.

Over time, Bitcoin is slowly building up a base of people who are buying in and not selling (hence the long-term slow gradual price rise). There's a danger that as the more liquid coins dry up, whales can manipulate the price by selling but market forces (via slowly steadily buying in) should, bit by bit, eat those attempts up.

If Bitcoin's proof of work model doesn't work and Bitcoin eventually fails, nothing exists at the moment that would replace that failure. A proof of work model and fully (and entirely) decentralised replacement might not be possible.
Why not just use mold?
Top analysts break down the 'meltdown' of the global electric vehicle market
You're talking about LOC per feature or project. GP is talking about LOC averaged over the whole organization, over all features and projects. I actually think you're both right.
No, Tesla is against unions so unions fight back.

https://www.nytimes.com/2023/11/07/world/europe/sweden-tesla...
To be fair, Austria had a pretty decent navy that used to give the Italians a run for their money. They probably did a bit of surfing here and there, too.
Then I hope I just didn't defend one of those haha
Also, chimpanzees ... haven't a few of them been sacrificed for space exploration?
But regulations don't say "fire this person". They're normally far more high level than that, like, "when something bad happens, trigger a corrective and preventative actions process and write down what you found and what you're going to change, if anything".
No love for Switzerland?
Probably because it has become increasingly apparent that an aquihire isn’t all what it’s cracked up to be.
the website looks pretty awful on mobile. Jfyi
Limit Azure connections to 500 b/s. Make them wait and keep slowing moving connections active.
> I would go even further, if car model is sold more than 100k times and more than 5 years

This will just result in a "new" model every year similarly to how (not car) retailers who supposedly offer price matching will often ask manufactures to supply whem with "unique" models of various devices.
Switzerland and Estonia have somewhat lower taxes than eg UK, France and Germany.
https://archive.ph/JOQ8E
It's simple - the praise is predicated not upon Rust being good, but how comparatively shit everything else in the same category is: C, C++, higher level languages for system programming (Go is extremely inadequate, and slow).

Rust gets a lot, a lot of small things right. The things you usually use as an excuse as to why one language or another is better - I found Rust does much more of them in a good way. In most other languages you can have let's say good package management but not fast iterator expressions, or you have compile-time iterator expressions but they are ass to write and package management does not exist, or you have both but all other features are missing, and etc.

Arguably, because Rust is also verbose and sometimes a bit ceremony-heavy, it's not a perfect language, which is why I use C# daily (which is similar and familiar enough with the tooling, package management and critical features like generics and async). But when I need lean and mean applications, there is simply no reason to pick anything but Rust except maybe out of curiosity.
Don't risk having your keys copied. Blur them in the picture.
> Those random linux annoyances you need the terminal for?

Generally, if you want hardware that you don't have to fight, the only option is to buy computers with Linux preinstalled, with support. Modern computers are sufficiently complicated that they really only can support one OS. And, for consumer hardware, they even half-ass that.
> And there's no doubt that Shenzen has a concentration of resources and talent in electronics manufacturing unmatched anywhere else in the world.

How long did it take to build that concentration?
That was the time when credit and finance flowed like water. Not anymore.
I can't watch that unfortunately but I know someone who should have. I worked at a shitty hardware store when I was a student and someone got an air conditioner dropped on them off a forklift palette. It wasn't secured to it. Poor guy lost his left leg just above the knee.
I recently rented a car, and the built-in navigation wasn't enabled. The assumption seemed to be that you'd connect your phone.

Driving in the country was fine with just audio navigation, but I had to connect my phone to get the display once I was driving in a big city. "Take the freeway exit" "Use the right lane" "Use the left lane" was coming too quick if I relied only on the audio.
> not because they think they will be our overlords in 20 years or whatever.

Isn’t that what fruit companies like delmonte did to Central America in the mid 20th century? Seizing all of the farmland with the support of the government to grow fruit for Americans?
Calling Dick Tracy!

He had a two way radio watch.
Many webmail services offer this, but the difference is that the Windows program is a local program, not a cloud service.

The Outlook app for Android does the exact same thing, copying your email to the Microsoft cloud and then serving the emails to your phone from Microsoft's servers.
I’m a proponent of dynamic typing. I’d say the same thing. I don’t have enough working memory in my head to store the compile-time type information about every relevant variable, in addition to the actually important information about what the runtime data could be.

The way that I write static-typed code is by imagining how I would write dynamic code to solve the problem, and then additionally imagining what types and type constraints I need to add.

I honestly think it’s a kind of an instance of Paul Graham’s Blub Paradox. I know JavaScript and I spent years writing JavaScript. So if you ask me to write TypeScript, well, I write the JavaScript that I want to write and then go back and add types to make the typescript compiler happy.

There are a bunch of other things I could talk about. I should write a post.
I'm far away from a point where I can make an informed decision about that yet. Thanks for your offer!
Just corresponding to the actual fiat money .. I also can lose my investment with fiat, but it's not that possible.

With fiat, I can put it under my pillow and have just the inflation. With Bitcoin I always have to keep an eye on.
That's my problem. Otherwise, money is money. No matter if it's in paper or bits and bytes - as long I can pay my things with that, I will use.
How do they make money if its free?
This is unquestionably a hit piece. I’ve been to Boca Chica and their safety standards seem leagues ahead of oil and gas.
I've in fact always been afraid to vote my shares against the recommendations of the board. What if someone finds out and takes it personally? I need the job much more than I need any potential upside of the shares I own, so even if all the proposals amount to "let the executives steal whatever isn't nailed down", I figure I'm better off going along with it or just throwing my proxy card away.
> Really, it's just bewildering to me that having a death wish is considered common-sense, normal viewpoint.

I wonder if being selfless in that sense is not actually the "norm" when we consider most of the people who live and lived. In-between all the ones willing to sacrifice themselves for a descendant, a cause, those with a tightrope life, those who have spiritual beliefs etc.

Most people I know are at ease with their death, which is very different from having a death wish.
It's what you get if you try to break a strike by hiring scabs. The unions will try to break you right back. Elon is going to have to hire a lot of scabs if he still wants to do business in Sweden.

And if I'm not mistaken, business for Tesla has been pretty big in Scandinavia. I've heard they've got a significant chunk of the market in Norway. No idea if Sweden is the same, but I think Elon's confrontational approach could really hurt Tesla.
Come on, could we get minimal bootstraping rust compiler instead of 350MB on x86_64 linux? Namely, the rust-written compiler executable to generate simple .o ELF object and that's it. And bootstraping: namely a static PIE ELF executable.

Rust has the opportunity to be serious, not lost like gcc.
The black swan big disasters have to be taken seriously too.

A nuclear accident creates a big and costly disaster suddenly. People don't like sudden big problems but can live with continuously growing ones.

Burning hydrocarbons is much more acceptable in that regard. CO2/dust pollution is accepted by society, because it is continuous and dilutes well. Killing millions is socially acceptable when it happens randomly all over the planet. Radioactive pollution due to coal burning is/should be negligible, most is(should be) filtered out in the smokestack scrubbers.

I don't like fossil power plants, but they are much easier to build and more acceptable to people than nuclear ones. That's why regulation and security have to be high with nuclear, to make it acceptable to most of society.

> civilization-ending danger

I don't think climate change is a civilization-ending danger in the coming decades. It already creates political problems, migration. If we keep pumping CO2 then maybe in hundred years.
Single anecdata point here. In the early 80s I remember it being called "Adventure" when playing it on Apple 2 and I think IBM PCs. But not sure on the latter.
ssshhh non-inflammatory common sense replies have no place in a Microsoft hate discussion
I expect this to continue to expand indefinitely. Tesla's going to end up being driven out of Sweden. Musk would rather (locally) bankrupt it than cave.
I love elixir, but I would also love it more with a sort of laissez-faire type system akin to TS. Glad to see they're working in that direction.

One of the best features of type systems is they make editor completions and navigation work better. Elixir's LS is pretty good, but editor support just isn't nearly as good as what you can have in a good (read: Jetbrains) IDE with a strongly typed lang like C# or Java.
Sorry I can't read german but do I understand properly that you give your gmail password to outlook (microsoft) and you are surprised that outlook does whatever it likes with the password ?
The difference here seems to be transparency.
You don’t make a test submission, you make a link submission and add a comment.
This is not very informative at all, the first sentence is a vague statement about “decent and safe working conditions” without any detail or elaboration and the rest is basically an ad for the union complete with a “join today” call to action.
contrast that to Jobs' "use my private jet to get first dibs on a healthy liver so I can try alternative medicine and die anyway"
cashier optimizes for speed and efficiency, if it takes more than a couple of minutes to check out the it took too long.

waiter, it varies, but if they spend as much time on the table as a cashier, that is usually seen as poor service.

there are also plenty of businesses with cashiers with tip jars, or tip screens. have been for years. some places, and this gets a bit wild, some places don’t even have tip jars. you just put the extra money in their hand. the employee may ask if you meant it, or may just understand that you did. some assume, but they tend to lose tips over time.

whether tips should exist and whether tips exist are two separate things. loosely coupled at present.

not to say tipping is good, but neither is your argument against it.
Unlocked gift link: https://www.nytimes.com/2023/11/07/world/europe/sweden-tesla...
They don't. They're on several rounds of VC.
Yet the most popular editor is vscode which is browser based and has all the rendering tech just sitting there, largely unused.
You are talking about a throughput part of problem only not even a word about latency. If you are going to not think about what finger will press "A" key then your brain the bottleneck is going to be less like a bottleneck. Not touchtyping while typing means misusing your limited neocortex resources instead of just utilizing your muscle memory.
I mean that's not a totally unrealistic situation, if there was a city that was plagued such behavior and the police/justice system as a whole weren't able to tamp it down to the point where it was commonplace when going out I bet someone would sue the city to do something about it.
I didn’t even mention the means of obtaining the app, all of which you said applies to all operating systems, I was simply talking about the difficulty of installing one once you already have the app. In Windows it is mostly always an .exe file and that’s it, on Mac it’s a .dmg or .app file and that’s it.
Yes, but the problem, as discussed in TFA and this thread, is that it’s really common among non-experts to believe the entire medieval period was somehow "dark" in the sense of being backward, primitive, culturally and technologically regressed.
Can't more emphatically recommend Collins' book. Having read my fair share of Apollo stuff, this, and the Blye Cox Apollo books are easily the best.

Also, I'll add that apparently Charles Lindbergh spoke with Jim Lovell at the 11 launch and also expressed that, in his mind, the most significant leap was also 8, which I have sympathy for. There's something about being on that spacecraft for the first TLI, having nothing but the math to trust, that is deeply exhilerating, incredibly scary, and awe-inspiring.
Perhaps the US can learn something about the power of labour unions from this.