We've been evaluating a number of C++ successor languages for @ladybirdbrowser, and the one best suited to our needs appears to be @SwiftLang 🪶 Over the last few months, I've asked a bunch of folks to pick some little part of our project and try rewriting it in the different
@awesomekling @ladybirdbrowser @SwiftLang This is interesting. I only hear complaints from people that write Swift professionally, but that might just be how Twitter works.
@charliermarsh @ladybirdbrowser @SwiftLang As Bjarne likes to say, "There are only two kinds of languages: the ones people complain about and the ones nobody uses" 😅
@awesomekling @ladybirdbrowser @SwiftLang What were the other languages you evaluated and what makes them less viable?
@Zitroney_ @ladybirdbrowser @SwiftLang In the end it came down to Swift vs Rust, and Swift is strictly better in OO support and C++ interop.
@awesomekling @ladybirdbrowser @SwiftLang as a Swift theorist I agree as a Swift practitioner I welcome you to the hell
@awesomekling @ladybirdbrowser @SwiftLang Huge!! We’re so excited about this at @browsercompany :) happy to lend a hand with any Swift issues you run into!
@awesomekling @ladybirdbrowser @SwiftLang Unexpected! Swift is promising but seems immature (I mean, more mature than Zig or Carbon or whatnot). I'm a fan of it though and look forward to it maturing. Your evangelism will be good for the Swift ecosystem. I'm looking forward to seeing your team's writing as it goes.
@awesomekling @ladybirdbrowser @SwiftLang Try the #dlang D programming language! Best metaprogramming of all the languages.
@awesomekling @ladybirdbrowser @SwiftLang Excited to follow along the progress! Arc browser is also written in Swift:
@awesomekling @ladybirdbrowser @SwiftLang Welcome! Excited to have you join the community!
@awesomekling @ladybirdbrowser @SwiftLang Ever since I wrote my first line of Swift code, I fell in love with the language. This will be a lot of fun for you!
@awesomekling @ladybirdbrowser @SwiftLang swift is the future!
@awesomekling @ladybirdbrowser @SwiftLang Are you worried about the compile speeds of swift? https://danielchasehooper.com/...
@awesomekling @ladybirdbrowser @SwiftLang What’s your plan for the JS GC?
@awesomekling @ladybirdbrowser @SwiftLang This is probably going to kill this project. I see zero justification for this kind of reckless move, except being funded with the attached condition to promote Swift. The language is a mess, compilation time is horrendous, and you have no experts on the team.
@awesomekling @ladybirdbrowser @SwiftLang Rewrite it in Common Lisp immediately.
@awesomekling @ladybirdbrowser @SwiftLang Building the most independent web browser with the most dependent tech?
@awesomekling @ladybirdbrowser @SwiftLang It's unfortunate you did not choose C# which has smaller AOT binary size, better application code performance, better cross-platform support and tools. The downside is it's not at its home turf on macOS, but with coming Swift ABI integration (no one else has it) that will change.
@awesomekling @ladybirdbrowser @SwiftLang I'm all for new browser engines anyway they might come about, so either way I'll celebrate it. But on the very unlikely chance this might sway something, I'd like suggest swift is bad for this. I think you've come to the wrong conclusion here because your list of requirements is
@awesomekling @ladybirdbrowser @SwiftLang Won't this divert a bunch of resources away from progressing the project? And isn't it going to result yet another sluggish and memory hungry browser? It was so nice having the optimism of finally having a lean and quickly evolving alternative to the old ones.
@awesomekling @ladybirdbrowser @SwiftLang I have experience in developing high perf Swift against a Linux target, and I mostly, but some contra points: - Not memory safe in a multithreaded context - Testing too tied to Xcode - APIs and documentation are not performance focused, a lot of hidden memory allocations…
@awesomekling @ladybirdbrowser @SwiftLang I would love to see Jakt get some traction. Contributing to it was one of the most pleasant experiences I’ve had in over 20 years of software development. I still have high hopes for the language.
@awesomekling @ladybirdbrowser @SwiftLang This might be the beginning of something new and amazing for Swift outside the Apple ecosystem. I have worked with Swift before on macOS and iOS apps, and the developer enjoyment is immense. It doesn't get in your way. It's not perfect (yet) though but what is.
@awesomekling @ladybirdbrowser @SwiftLang FYI - Fairly sure @browsercompany wrote the Arc Windows client in Swift
@awesomekling @ladybirdbrowser @SwiftLang When even the Swift creator says that tis gotten too big and complicated out of hand, this is surprising. I agree with picking an application language and not a systems language. I hope the perf is there for you.
@awesomekling @ladybirdbrowser @SwiftLang I did not see this coming.
@awesomekling @ladybirdbrowser @SwiftLang Just the ergonomics of writing Swift vs Rust makes this the better choice.
@awesomekling @ladybirdbrowser @SwiftLang I fear this will end up being a waste of time
@awesomekling @ladybirdbrowser @SwiftLang C++ is usually chosen because the people who are able to contribute to such a code base know C++. The number of browser developers knowing Swift is a lot smaller than for C++, so it may become difficult to get contributions from them.
@awesomekling @ladybirdbrowser @SwiftLang You can also use Swift on the backend too https://github.com/swift-cloud...
@awesomekling @ladybirdbrowser @SwiftLang Been using Swift for years for C/C++ interop. If that's your goal, and performance && safety is on the short list, nothing can beat Swift today. Perhaps it's that good, because it was Apple's highest priorities, to move away from ObjC. Compilation speed is better than Rust,
@awesomekling @ladybirdbrowser @SwiftLang Arc browser is already using Swift in production and it's all platforms!
@awesomekling @ladybirdbrowser @SwiftLang *sobs in BSD*
@awesomekling @ladybirdbrowser @SwiftLang huge fan of Swift personally but, have you listened to recent Chris Lattner (primary lang author) opinions on it?
