News for hackers. Stuff that matters.

hammil

Re:It's over C language is officially improved on Sunday November 17, 2024 @07:44AM (#42163911)
> "Where you see a big difference is TrapC doesn't have malloc. TrapC has new, like C++ does. And so you need to change all your malloc calls. But TrapC doesn't have delete. TrapC does the memory. There's no memory leaks in TrapC because the compiler handles free memory. Also, in that way, it's like Java. Java you call new, but you never call delete."

Word salad aside, how is this achieved? RAII? Some super-secret static analysis? Are some allocation patterns just not allowed?

Re:Ask HN: Would you recommend a framework laptop on Sunday November 17, 2024 @07:14AM (#42163782)
I've been using mine (13-inch) for a couple years now. Like others, I would've got the AMD mainboard but it wasn't out yet, so I settled for the Intel 12th gen.

When I first got it, the touchpad didn't click properly. There was a bit of back and forth with support (they wanted to see video of the issue) but all in all, they shipped the replacement part within 3 days of the report. That's acceptable, in my book.

Then there was a very strange issue where the machine would randomly shut down while sleeping, seemingly related to using Windows 11 with the 12th gen CPU. Turns out you need to disable 'connectivity in modern standby' if this is the case:

    POWERCFG -SETDCVALUEINDEX SCHEME_CURRENT SUB_NONE CONNECTIVITYINSTANDBY no 0
    POWERCFG -SETACVALUEINDEX SCHEME_CURRENT SUB_NONE CONNECTIVITYINSTANDBY 0
Anyway, aside from that, I've had no issues.

The main benefit in my view is that you don't need to worry about 'timing', in terms of generational improvements in the hardware. In my case, I didn't get the AMD CPU I wanted, but when I decide to upgrade, I can do so for a pretty reasonable price: https://frame.work/gb/en/products/mainboard-kit-amd-ryzen-70... . Likewise, if any component breaks, I can be confident it's not going to cost me the whole machine, and I can do all the servicing myself.

This would be inconceivable in any other laptop, especially one of this form factor.