HackerTrans
TopNewTrendsCommentsPastAskShowJobs

ndesaulniers

no profile record

Submissions

Rust Foundation Welcomes OpenAI as Platinum Member, Announces Donation to Rust

rustfoundation.org
1 points·by ndesaulniers·25 dagen geleden·0 comments

The Reason Anthropic's Models Are Offline: A Six-Year-Old Trump Grudge

techdirt.com
13 points·by ndesaulniers·25 dagen geleden·0 comments

[untitled]

1 points·by ndesaulniers·vorige maand·0 comments

Google, Blackstone plan AI cloud venture with $5B backing, WSJ reports

reuters.com
2 points·by ndesaulniers·2 maanden geleden·0 comments

Boosting Android Performance: Introducing AutoFDO for the Kernel

android-developers.googleblog.com
3 points·by ndesaulniers·4 maanden geleden·0 comments

Robinson–Patman Act

en.wikipedia.org
1 points·by ndesaulniers·5 maanden geleden·0 comments

[Clang] Add support for the C defer TS

github.com
1 points·by ndesaulniers·7 maanden geleden·0 comments

Hardening the C++ Standard Library at scale

queue.acm.org
158 points·by ndesaulniers·8 maanden geleden·107 comments

Software engineer tricks a car dealer chatbot into selling him a truck for $1 (2023)

upworthy.com
7 points·by ndesaulniers·9 maanden geleden·2 comments

comments

ndesaulniers
·20 dagen geleden·discuss
> There's no control flow out of the inline assembly.

So no `asm goto` support yet?
ndesaulniers
·vorige maand·discuss
I find this point to be generally why C can typically beat C++ in terms of code size; generic functions operating on void* are much less type safe, but the tradeoff is code size. Those template instantiations add up.
ndesaulniers
·2 maanden geleden·discuss
> it took significant effort to e.g. get clang to compile the Linux kernel (needing patches in both projects).

Tell me about it. :-)
ndesaulniers
·2 maanden geleden·discuss
I spent a bit of time implementing parts of a C runtime for the brief tenure I had maintaining LLVM's libc. I quickly came the realization that a lot of the interfaces that made it all the way to standardization were trash. How the language is standardized is still comical to me. I agree with TFA that C style strings are trash.
ndesaulniers
·2 maanden geleden·discuss
Good then that Amazon sells it by the 55 gal drum then.

https://www.amazon.com/Passion-Lubes-Natural-Water-Based-Lub...

> This product is out of stock

Ah, shoot, there go my weekend plans. Bummer.
ndesaulniers
·2 maanden geleden·discuss
I find it ironic; George Orwell was English!
ndesaulniers
·2 maanden geleden·discuss
It's a shame we never got a package manager for C (or C++).

EDIT: perhaps I should have been clearer; by not having one early on, we now have multiple competing package managers, with no clear winner. Responses prove that point.
ndesaulniers
·2 maanden geleden·discuss
A long time ago, I wrote a small chapter in a WebGL book on asm.js.

https://webglinsights.github.io/

It was fun to see the rise of asm.js, which was a precursor to Web Assembly. Some of the early demos were so cool to see; Unreal Engine running in the browser. :) Bitter sweet to see the sun set here, but it did lead to much better things.
ndesaulniers
·2 maanden geleden·discuss
Dig the posters in the background; I just saw Burning Ambition in theaters last week. Up the irons, Earth dog! Ghost opened for Iron Maiden a few years ago; I saw them all together in Oakland.
ndesaulniers
·2 maanden geleden·discuss
There was a recent class action suit against GM for this.
ndesaulniers
·2 maanden geleden·discuss
Interesting. This past weekend, I got a chance to speak with Corvette's chief engineer Josh Holder at Chevrolet's Corvette Corral for the IMSA race at Laguna Seca.

I asked him if we'd see an all electric Corvette in the C8 timeframe, or would have to wait until the C9?

He confirmed (to the group) there would not be an all electric C8.

GM has long done "crate" engines, where people swap their cars OE engine for one of GM's small block v8s (an "LS or LT swap") frequently found in Corvettes, Escalades, and probably Silverado/large trucks/SUVs.

Seeing an electric crate engine from GM shows me that they plan to do the same with an electrified power train. Cool.
ndesaulniers
·3 maanden geleden·discuss
I run it in a docker container behind traefik in another container. Getting that wired up and working in podman was quite the challenge. Docker container mounts my media as read only.
ndesaulniers
·3 maanden geleden·discuss
Also, https://web.archive.org/web/20260407181432/https://www-cdn.a...
ndesaulniers
·3 maanden geleden·discuss
It was a page turner. I recommend it.
ndesaulniers
·4 maanden geleden·discuss
When you buy movie tickets, you go see the movie.

When I purchase a game, I generally don't have time to play it.

We are not the same.

This may be why gaming is a few multiples larger an industry than film.
ndesaulniers
·4 maanden geleden·discuss
Consider amending those references to your post!
ndesaulniers
·4 maanden geleden·discuss
Happy to see discussion of LLVM's interesting implementation of Static Polymorphism using CRTP. Some recommended reads:

1. https://en.wikipedia.org/wiki/Curiously_recurring_template_p...

2. https://david.alvarezrosa.com/posts/devirtualization-and-sta...

3. https://llvm.org/docs/ProgrammersManual.html#the-isa-cast-an...
ndesaulniers
·4 maanden geleden·discuss
I still remember summoning flesh golems as a necromancer! Too much of my life sunk into GW1. Beat all 4(?) expansions. Logged in years later after I finally put it down to find someone had guessed my weak password, stole everything, then deleted all my characters. C'est la vie.
ndesaulniers
·5 maanden geleden·discuss
I took a look at the schematics for the two fuse boxes in my 2023 Chevrolet and _could not tell which/if any_ fuse was dedicated to a cellular modem.

This was in regards to: https://www.ftc.gov/news-events/news/press-releases/2025/01/...
ndesaulniers
·5 maanden geleden·discuss
Was looking at the llvm case with the dead store to the stack.

https://godbolt.org/z/Kb736onb4

  \*\* IR Dump After Expand memcmp() to load/stores (expand-memcmp) \*\*
  ; Function Attrs: mustprogress nofree norecurse nounwind willreturn memory(argmem: read) uwtable
  define dso_local noundef zeroext i1 @isAllZeros(ptr noundef nonnull readonly align 4 captures(none) dereferenceable(8) %0) local_unnamed_addr #0 {
    %2 = alloca %"struct.std::array", align 8
    call void @llvm.lifetime.start.p0(ptr %2)
    store i64 0, ptr %2, align 8
    %3 = load i64, ptr %0, align 4
    %4 = load i64, ptr %2, align 8
    %5 = icmp ne i64 %3, %4
    %6 = zext i1 %5 to i32
    %7 = icmp eq i32 %6, 0
    call void @llvm.lifetime.end.p0(ptr %2)
    ret i1 %7
  }
It looks like expand-memcmp in the backend converts a call to bcmp to multiple loads/stores. Perhaps expand-memcmp should then do a round of store-to-load forwarding.

Filed https://github.com/llvm/llvm-project/issues/180991 which I think is what the author should do in cases like this (rather than a blog post).