(no title)
meisel
|
11 days ago
Why did Ladybird even attempt this with Swift, but (I presume) not with Rust? If they're going to go to the trouble of adding another language, does Rust not have a better history of C++ interop? Not to mention, Swift's GC doesn't seem great for the browser's performance.
mlinksva|11 days ago
archargelod|10 days ago
ckcheng|11 days ago
Why not D?
refulgentis|11 days ago
Fascinating.
They've shown the idea it is better on C++ interop is wrong.
I don't know enough to say Rust has same OO support as Swift, but I'm pretty sure it does. (my guess as a former Swift dev: "protocol oriented programming" was a buzzy thing that would have sounded novel, but amounted to "use traits" in rust parlance)
EDIT: Happy to hear a reply re: why downvotes, -3 is a little wild, given current replies don't raise any issues.
diath|11 days ago
Probably the same reason why Rust is problematic in game development. The borrow checker and idiomatic Rust do not go well together with things that demand cyclic dependencies/references. Obviously there are ways around it but they're not very ergonomic/productive.
lukeh|11 days ago
[1] https://www.swift.org/documentation/cxx-interop/
palata|11 days ago
Said differently: the C++ interop did not support calling the C++ library I wanted to use, so I wrote a C wrapper.
jll29|11 days ago
He even made an attempt at creating his own language, Jakt, under SerenityOS, but perhaps felt that C++ (earlier with, now without Swift) were the pragmatic choice for Ladybird.
stingraycharles|11 days ago
password4321|11 days ago
20240810 https://news.ycombinator.com/item?id=41208836 Ladybird browser to start using Swift language this fall
gardaani|11 days ago
- Excellent for short-lived programs that transform input A to output B
- Clunky for long-lived programs that maintain large complex object graphs
- Really impressive ecosystem
- Toxic community
https://x.com/awesomekling/status/1822241531501162806
alper|11 days ago
bergheim|11 days ago
rvz|11 days ago
carefree-bob|11 days ago
elcritch|11 days ago
LeFantome|11 days ago
saagarjha|11 days ago
generalpf|10 days ago
myko|6 days ago
It isn't a _tracing_ GC
ozgrakkurt|10 days ago
sparky4pro|11 days ago