Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
josephg
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
18 ms
·
241.
▲
by
josephg
3mo ago
So Fil-C is competing with Go, C#, typescript and Python. If I’m writing a greenfield project where “bare metal” performance isn’t needed, why would anyone choose Fil-C over a more mature GC language? C is more verbose and more error prone
242.
▲
by
josephg
3mo ago
> The only part the compiler actually enforces is that you mark the specific spots where you make use of the operations that 'unsafe' allows. Yes, I wish there was a way to mark code as unsafe without also allowing unsafe opera
243.
▲
by
josephg
3mo ago
> In short, if you use an unsafe block, then potentially any part of your code is unsafe. The way I think about it is that the unsafe keyword is a promise that you’re going to maintain the safety invariants yourself, manually. The progra
244.
▲
by
josephg
3mo ago
People are so funny about rust. “Safe rust isn’t expressive enough!” -> then use unsafe rust. “Unsafe rust lets you do anything! Even crazy things!” -> then use safe rust. Or just don’t write crazy code? Does bun actually do anything
245.
▲
by
josephg
3mo ago
Sure; but I bet raw pointers are used very infrequently in the new codebase. The code was ported from zig to rust. I bet a lot of pointers became rust references in the process.
246.
▲
by
josephg
3mo ago
I’ve never used the telegram app. What do you like about it compared to signal / WhatsApp?
247.
▲
by
josephg
3mo ago
> I’ve never seen them for sale except the US one Apple - at least used to - sell an international plug pack if you’re missing some. I can’t even remember where I got some of my plugs. They’ve been doing this for decades, and the interna
248.
▲
by
josephg
3mo ago
If you’ve got one of the older style Mac chargers, the part which plugs into the wall physically separates from the rest of the charger. You can connect different plugs for all the different countries. There is a plastic seam where the char
249.
▲
by
josephg
3mo ago
If the readme is anything to go by, this doesn't look like it was written by hand. Codex if I were to guess. I wonder the coding agent "improved" the code. The readme hints at the prompt: > It keeps the original system
250.
▲
by
josephg
3mo ago
Eh, that argument cuts both ways. Lots of the defaults in C++ are bad. Like, most people don’t know how compiling all your code in a single code unit will improve performance. Or how to do it. In rust it’s a single flag in cargo.toml which
251.
▲
by
josephg
3mo ago
How is this different / better than Leptos or Dioxus? https://leptos.dev/ https://dioxuslabs.com/
252.
▲
by
josephg
3mo ago
If you have a hot loop where it matters, you can put an assert outside the loop which lets llvm remove the bounds checks. Or use unsafe { get_unchecked() } to remove the bounds check entirely.
253.
▲
by
josephg
3mo ago
I said rust is just as fast as C++. Not safe rust. Use unsafe where it’s appropriate, obviously.
254.
▲
by
josephg
3mo ago
I don’t know what you’re referring to. Unsafe seems pretty well defined for 99% of use cases. Unsafe blocks allow you to dereference raw pointers and call unsafe functions. Thats about it. Remarkably, even in codebases which need a lot of u
255.
▲
by
josephg
3mo ago
Chat control doesn’t make the internet any less stupid.
256.
▲
by
josephg
3mo ago
Yep. And array bounds checks have a miniscule performance impact at runtime because they're so friendly to branch prediction.
257.
▲
by
josephg
3mo ago
> I can understand when you need the absolute best performance and you decide to drop to down to C++ Rust is just as fast as C++.
258.
▲
by
josephg
3mo ago
Perhaps a lot of people should change their cabin filters. Air quality should be good everywhere. But its not. You can't tell if you don't measure it.
259.
▲
by
josephg
4mo ago
I disagree. Rich text editors on the web are already a massive hack, because there aren’t any built in input elements which support rich text. There’s just contentEditable and textarea (plain text). There’s no such thing as “doing it proper
260.
▲
by
josephg
4mo ago
Should… Whenever I travel, I bring a CO2 meter with me. It’s amazing how often the air is bad. Often in unexpected places. My meter hit 3100 in an uber once. I didn’t even notice until I got to my hotel room and looked at the data log. It w
261.
▲
by
josephg
4mo ago
Yeah I did a review of web based rich text editors a couple years ago. They all seemed fine on desktop, but on mobile every one I tried was junk. I couldn’t select. Autocorrect was broken. Tapping text didn’t move the cursor. Typing would s
262.
▲
by
josephg
4mo ago
I had an 11” 2011 air. An incredible machine, one of the best I’ve ever owned. I stupidly replaced it with the 2016 retina touchbar MacBook Pro - which is hands down the worst Mac I’ve ever owned bar none. My modern M1 is fine. But that lit
263.
▲
by
josephg
4mo ago
> Where are the dozens of European tech winners? Seriously. They have the best education system in the world, strong social safety nets, cheap healthcare, and great lifestyles. Why have they not created innovative technologies that turn
264.
▲
by
josephg
4mo ago
> If the EU takes the DPA 'independence' seriously, they will end up marginalized in the tech space. If NVIDIA can't sell GPUs to China, will that marginalise chinese technology? Or will it help supercharge a local industr
265.
▲
by
josephg
4mo ago
Me too. It’s output was fabulous. And it acted like a senior engineer - actually coding up hypotheses, testing them, finding problems and presenting good, usable recommendations backed by solid evidence and wisdom. It can probably do most o
266.
▲
by
josephg
4mo ago
Probably just stole it by the looks of those screenshots.
267.
▲
by
josephg
4mo ago
FOSS doesn't mean you give up all rights to your work. In this case, the software is AGPL licensed, which imposes huge list of requirements on copies - including attribution and sharing back changes. FOSS != public domain.
268.
▲
by
josephg
4mo ago
Thats not what you said. You said "copy the license terms". Copying a license isn't the same as complying with one. Though it looks like in this case they didn't do either.
269.
▲
by
josephg
4mo ago
> HTML is human readable as a text file. It's horrible to read compared to markdown and typst. <p>Some cool <em>sentence</em> in <b>html!</b></p> Some cool *sentence* in
270.
▲
by
josephg
4mo ago
Yes, I agree. But not all technical writing is README files. For books and long form articles, markdown simply isn't powerful enough. And for stuff like this, nobody cares whether or not the source is readable as plain text.
More ›