Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jkelleyrtp
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
31.
▲
by
jkelleyrtp
2y ago
> So you have a DOM, but if the target renderer is not webview or browser, you create a DOM in some other way? Yes - we have a project called Blitz which is trying to emulate just the DOM without the browser. It's built on Servo
32.
▲
by
jkelleyrtp
2y ago
It's very much inspired by Jetpack Compose and SwiftUI. At the end of the day we just use the Rust Struct parser! It's very similar to JSON or RON if you're familiar. https://github.com/ron-rs/ron
33.
▲
by
jkelleyrtp
2y ago
I never know how to position Dioxus, so would be happy to have some 3rd party insight. When I say we use a webview, people immediately jump to Tauri. But we're very architecturally different than Tauri. No WASM on native, just a regula
34.
▲
by
jkelleyrtp
2y ago
Not sure if you grok 100% what we're building. Dioxus-web is basically React/SolidJS/Svelte. It writes to the dom and handles dom events just like any other web framework. Where Dioxus differs is on native platforms, where we
35.
▲
by
jkelleyrtp
2y ago
Both would help. Sledgehammer is fast because it batches and interns strings on the Rust<>JS boundary. Rust strings are utf-8 and JS strings are utf-16 (don't ask me why...). The Dioxus VirtualDom is ridiculously fast - it's
36.
▲
by
jkelleyrtp
2y ago
This is more of a culture thing with the Rust ecosystem more than anything else. If the culture of the Rust ecosystem was to publish a 1.0, we would do it. And frankly, I'd really like to have an extra "version" to play with
37.
▲
by
jkelleyrtp
2y ago
If you don't want to use web technologies but still benefit from the non-web parts of the ecosystem (SDK, hooks, build tools) there's Freya. The creator is a wonderful guy and has put a lot of great work into making a nice Skia-ba
38.
▲
by
jkelleyrtp
2y ago
Just chiming in because I think the discussion is interesting (creator/founder here). We don't need the OSS crowdsourced funding. Early 2025 I have plans to distribute whatever OSS capital we still have back into the Rust communit
39.
▲
by
jkelleyrtp
2y ago
There is a weird issue with `cargo`'s output that not all errors get emitted as an "error" - I just kicked off a new `binstall` build `cargo binstall dioxus-cli@v0.6.0 --force` that fixes the filtering issue. You can also pre
40.
▲
by
jkelleyrtp
2y ago
In, my opinion it's good for ambitious projects to have a stable financial foundation. What negative things one project does because of venture capital does not mean another will. There's no CLA. Dioxus is MIT/Apache-2 licens
41.
▲
by
jkelleyrtp
2y ago
The DSL is basically just Rust structs with optional fields. We essentially use the same struct parser rust uses but with some small tweaks. You want to use a macro for this so you can do hot-reloading - doing it with native Rust is current
42.
▲
by
jkelleyrtp
2y ago
Dioxus was awesome for a long time without money :) As my little side project, we pioneered html-templates, wasm-bindgen string interning, macro hot-reloading, macro auto-formatting, multi-platform builds, native HTML/css rendering, an
43.
▲
by
jkelleyrtp
2y ago
In the same way React Native still uses JSX, Dioxus uses RSX even if those widgets are rendered natively (say, on the GPU).
44.
▲
by
jkelleyrtp
2y ago
Our hot-reloading is "magic" for the Rust ecosystem (this post's original intended audience). Hot-reloading formatted strings and simple Rust code is basically magic in Rust land. I use blazing-fast tongue-in-cheek but Dioxus
45.
▲
by
jkelleyrtp
2y ago
Oh, my bad. That language has never been accurate and I'm not 100% sure why it's phrased that way. Just pushed an update.
46.
▲
by
jkelleyrtp
2y ago
Oh, my bad. That language has never been accurate and I'm not 100% sure why it's phrased that way. Just pushed an update.
47.
▲
by
jkelleyrtp
2y ago
We don’t necessarily use Tauri… Tauri has a library called wry that’s basically a more maintained fork of the Rust web-view library. https://github.com/Boscop/web-view We are great friends with Tauri but I think people
48.
▲
by
jkelleyrtp
2y ago
Dioxus is similar to modern React Native in architecture. Your rust code is running natively and you can call into JNI and Objective-C freely without a VM in your way. It’s retained mode and stays close to the architecture of a React/S
49.
▲
Dioxus 0.6 – Crossplatform apps with Rust
(dioxuslabs.com)
290 points
by
jkelleyrtp
2y ago
|
137 comments
50.
▲
by
jkelleyrtp
2y ago
Tokio has a task budget that will cap at 32 or 256 polls of the same task before switching to another task. So, yes a spinlock, but not likely to deadlock.
51.
▲
by
jkelleyrtp
2y ago
The title is inflammatory and yet there are few nuanced takes in the article. It's weird to see it shoot to the top of HN. I think the loglog article is a much better, nuanced, full critique of Rust. https://loglog.games
52.
▲
by
jkelleyrtp
2y ago
I mean, maybe? If you come into Rust thinking you're going to write doubly-linked lists all day and want to structure everything like that, you're going to have a bad time. But then in python you run into stuff like: ``` def func(
53.
▲
by
jkelleyrtp
2y ago
"There are only two kinds of languages: the ones people complain about and the ones nobody uses". --- Glad to see fluffy negative articles about Rust shooting up the first slot of HN in 20 minutes. It means Rust has made finally m
54.
▲
by
jkelleyrtp
2y ago
Hey! I worked on WARP at Cloudflare. I believe Cisco has anyconnect and then there's zscaler. I'm curious how you guys are competing with the other folks in the space. WARP was/is a really tough product to maintain (crossplat
55.
▲
by
jkelleyrtp
2y ago
? If you can design and ship ASICs faster than anyone else for new problems then you can become the dominant player. All the new LLM startups just use the OpenAI API interface since they were first to market dominance.
56.
▲
by
jkelleyrtp
2y ago
Secondaries have become more popular over the past few (5?) years but you need to know to ask.
57.
▲
by
jkelleyrtp
2y ago
I have a slight inkling that Apple internally is using Swift for backend stuff somewhere, especially with all the ML stuff they just shipped. Word on the street is their datacenters are full of M-series chips. I could see those servers runn
58.
▲
by
jkelleyrtp
2y ago
The default testing framework made my jaw drop a bit - I have a very hard time seeing Rust have the enthusiasm or momentum to implement something like that right now.
59.
▲
by
jkelleyrtp
2y ago
Some people want generics and ADTs in Go. If you're using go because it's 1) fast 2) expressive 3) concurrent 4) compiles natively then I think Swift is the better of the two. If you just want a very simple language, then sure, Go
60.
▲
by
jkelleyrtp
2y ago
Supposedly faster in Swift 6 but I don't have any big swift projects to throw at it. It uses LLVM so it's not going to be as fast as Go's. In Swift 6 they: - Improved parallelism via compilation pipelining (ie top-level objec
More ›