Readit News logoReadit News
estebank commented on C isn't a programming language anymore (2022)   faultlore.com/blah/c-isnt... · Posted by u/stickynotememo
Gibbon1 · 4 days ago
I've started describing what C does is breaking the third wall. Which in theater sis when the actors acknowledge they're in a play.

C totally accepts breaking the third wall. And Pascal doesn't.

Problem with C currently is the language is controlled by people that think programming languages should be like Pascal.

estebank · 4 days ago
That would be the fourth wall

     ________
    |        |
    | actors |
    |        |
     audience

estebank commented on U.S. life expectancy hits all-time high   scientificamerican.com/ar... · Posted by u/brandonb
ch4s3 · 10 days ago
> It's said to be excellent

This is laughably untrue.[1][2][3] They're lacked basic supplies for 30 years. Frequent blackouts also complicate or prevent many types of care.

[1] https://www.france24.com/en/live-news/20250709-bitter-pill-c...

[2] https://cuba.miami.edu/business-economy/a-close-look-at-cuba...

[3] https://en.wikipedia.org/wiki/Healthcare_in_Cuba

estebank · 10 days ago
> They're lacked basic supplies for 30 years.

Cuba has been under embargo for 66 years.

estebank commented on How London became the rest of the world’s startup capital   economist.com/britain/202... · Posted by u/ellieh
adastra22 · 13 days ago
The question was what the train network is like outside the cities. And the answer is we don’t use trains because it is not efficient for the scale of the country. This is correct.

Most people ARE interested in coast to coast travel. It is called flyover country for a reason.

There are a few exceptions like the Baltimore corridor, or the San Francisco peninsula, and these are in fact serviced by good trains.

estebank · 13 days ago
Train travel from LA to NY wouldn't be efficient, but there are plenty of population poles like LA to SF where train travel would make sense and a network of those could make cross country travel feasible if not in a hurry. But as the GP pointed out, it is not that useful if you can arrive to LA by train, if then when you arrive you need to rent a car before you've even left the station.

It is always shocking to me when I land at an airport in the US and there no public transport available.

It is common for conversations about good local public transport to have a retort in some sub-thread about how big the US is, as if the feasibility of long distance travel affected the feasibility of other modes of local travel.

You mention the SF peninsula. When I first moved there, I lived in the westside of SF and had friends living in Sunnyvale. On a weekend, it took 4 hs to get to Mountain View (~40miles, at the time, checking now it seems like Caltrain weekend service might have improved, so the same trip would take about 2hs), and then had to be picked up by car to finish the rest of the trip. It was faster (~3:30hs, if more expensive) to go from Paris to Amsterdam (>300miles) by train.

estebank commented on The '3.5% rule': How a small minority can change the world (2019)   bbc.com/future/article/20... · Posted by u/choult
monero-xmr · 16 days ago
It’s true that large leftist groups fund protests. 100% true. Here’s a recent ABC News report on the No Kings protests https://abc6onyourside.com/news/nation-world/no-kings-protes...

Also they completely stopped once the new anti-ICE thing became popular. Where are all the new organic No Kings protests? Everyone wrote about it in all the major publications and now we forgot(?) and the Tesla dealership protests? No normal person engages in this stuff, it’s hyper activists part of organized groups with real financing

estebank · 16 days ago
> No normal person engages in this stuff, it’s hyper activists part of organized groups with real financing

I guess I'm not a normal person then. I didn't realize that I was a hyper activist because I drew on some cardboard and that my group of friends was being financed. I better go demand for my Soros-check from them.

estebank commented on American importers and consumers bear the cost of 2025 tariffs: analysis   kielinstitut.de/publicati... · Posted by u/47282847
tzot · 23 days ago
I always have been using em-dashes with specific spacing:

1. replacing parentheses —given that the em-dash in pairs for me mark more-relevant-to-the-main content than a parenthesized expression would— so I use the same spacing as `()`

2. replacing colon or just finishing the sentence with a subsentence— so the spacing goes like for a colon.

Probably unfounded grammatically and against any style guides, but this spacing makes sense to me.

estebank · 23 days ago
I am pretty sure an em-dash in case 2 should not have spaces in either side.
estebank commented on Is Rust faster than C?   steveklabnik.com/writing/... · Posted by u/vincentchau
pjmlp · a month ago
Games are, anything based on Qt/KDE, UWP/WinUI (even if it is mostly Microsoft employees).

Now even if it is Flutter, React Native, or Chrome/Electron, they are powered by C++ graphics engine, and language runtimes.

estebank · a month ago
The engine being written in C++ does not mean the application is. You're conflating the platform with what is being built on top of it. Your logic would mean that all Python applications should be counted as C applications.
estebank commented on Is Rust faster than C?   steveklabnik.com/writing/... · Posted by u/vincentchau
johnisgood · a month ago
I think Rust projects will accumulate their own cruft over time, they are just younger. And the Rust ecosystem's churn (constant breakage, edition migrations, dependency hell in Cargo.lock) creates its own class of problems.

Either way, I would like to reiterate that the comparison is flawed at a more fundamental level because hash tables and B-trees are different data structures with different performance characteristics. O(1) average lookup vs O(log n) with cache-friendly ordered traversal. These are not interchangeable.

If BTreeMap outperformed his hash table, that is either because the hash table implementation was poor, or because the access patterns favored B-tree cache locality. Neither tells you anything about Rust vs C. It is a data structure benchmark.

More importantly, choosing between a hash table and a tree is an architectural decision with real trade-offs. It is not something that should be left to "whatever the standard library defaults to". If you are picking data structures without understanding why, that is on you, not on C's lack of a blessed standard library (BTW one size cannot fit all).

estebank · a month ago
> constant breakage

Can you mention 3 cases of breakage the language has had in the last, let's say, 5 years? I've had colleagues in different companies responsible for updating company-wide language toolchains tell me that in their experience updating Rust was the easiest of their bunch.

> edition migrations

One can write Rust 2015 code today and have access to pretty much every feature from the latest version. Upgrading editions (at your leisure) can be done most of the time just by using rustfix, but even if done by hand, the idea that they are onerous is overstating their effect.

Last time I checked there were <100 checks in the entire compiler for edition gates, with many checks corresponding to the same feature. Adding support for new features that doesn't affect prior editions and by extension existing code (like adding async await keywords, or support for k# and r# tokens) is precisely the point of editions.

> dependency hell in Cargo.lock

Could you elaborate on what you mean?

estebank commented on Is Rust faster than C?   steveklabnik.com/writing/... · Posted by u/vincentchau
johnisgood · a month ago
> He straight ported some C code to rust and found the rust code outperformed it by ~30% or something. The culprit ended up being that in C, he was using a hash table library he's been copy pasting between projects for years. In rust, he used BTreeMap from the standard library, which turns out to be much better optimized.

Are you surprised? Rust is never inherently faster than C. When it appears faster, it boils down to library quality and algorithm choice, not the language.

Also worth noting that hash tables and B-trees have fundamentally different performance characteristics. If BTreeMap won, it is either the hash table implementation, or access patterns that favor B-tree cache locality. Neither says anything about Rust vs C. It is a library benchmark, not a language one.

estebank · a month ago
> Rust is never inherently faster than C.

The opposite is true too. Which is the point of the article.

estebank commented on Is Rust faster than C?   steveklabnik.com/writing/... · Posted by u/vincentchau
dwattttt · a month ago
I'm curious if this is tracked or observed somewhere; crater runs are a huge source of information, metrics about the compilation time of crates would be quite interesting.
estebank · a month ago
I know some large orgs have this data for internal projects.

This page gives a very loose idea of how we're doing over time: https://perf.rust-lang.org/dashboard.html

estebank commented on Chromium Has Merged JpegXL   chromium-review.googlesou... · Posted by u/thunderbong
WhereIsTheTruth · a month ago
> Rust certainly calms security fears

No, memory safety is not security, Rust's memory guarantees eliminate some issues, but they also create a dangerous overconfidence, devs treat the compiler as a security audit and skip the hard work of threat modeling

A vigilant C programmer who manually validates everything and use available tools at its disposal is less risky than a complacent Rust programmer who blindly trust the language

estebank · a month ago
> A vigilant C programmer who manually validates everything and use available tools at its disposal is less risky than a complacent Rust programmer who blindly trust the language

What about against a vigilant Rust programmer who also manually validates everything and uses available tools at its disposal?

u/estebank

KarmaCake day5598June 6, 2012
About
hn@kuber.com.ar
View Original