Sign in

drogus

@drogus.bsky.social
113 followers 66 following 54 posts

Rust, Ruby, WebAssembly. Check out my active projects on GH: github.com/sponsors/drogus

PostsRepliesMedia
drogus @drogus.bsky.social · 08/04/2025
Or even extending SaaS applications on the backend, like in Shopify's functions: shopify.dev/docs/apps/bu...
shopify.dev
WebAssembly for Functions
Learn how to generate Wasm that's compliant with Shopify Functions.
000
drogus @drogus.bsky.social · 08/04/2025
> usually that role tends to be as supporting libraries to JavaScript applications In the browser, yes, outside of the browser, I'd say no. There are a lot of solutions using WASM that could potentially benefit from scripting capabilities. spacetimedb.com, www.fluvio.io, github.com/drogus/crows
spacetimedb.com
SpacetimeDB
Multiplayer at the speed of light.
100
drogus @drogus.bsky.social · 07/04/2025
Yes, it's a very similar concept. The biggest difference between the two is that porffor aims to achieve the goal without WASM GC. It will be definitely interesting to compare the projects once both are close to passing the full spec.
110
drogus @drogus.bsky.social · 07/04/2025
I need to finally finish a blog post I started a while ago titled sth like "Zig's comptime is not Rust's macros equivalent". Comptime is very interesting, but it's not the same, and it doesn't allow you to do a lot of the things macros let you do.
010
drogus @drogus.bsky.social · 07/04/2025
There are a lot of scenarios where WASM makes sense even if it's slower than a native implementation, mainly in context of safe execution of third party code and easy integration of components written in different languages - think extensions, embedded functions etc.
110
drogus @drogus.bsky.social · 07/04/2025
It’s too early to do any meaningful benchmarks in my opinion. Once it’s mostly compatible with the spec, it might make sense to look into it. It will definitely be slower than advanced engines like V8, especially with JIT enabled
110
drogus @drogus.bsky.social · 06/04/2025
If you like the project and you would like to support the development, please consider sponsoring me on GitHub: github.com/sponsors/drogus
github.com
Sponsor @drogus on GitHub Sponsors
Support Piotr's open source work
000
drogus @drogus.bsky.social · 06/04/2025
I have written a post about JAWSM, my JavaScript to WebAssembly compiler: itsallaboutthebit.com/jawsm. Long story short: I now implemented all of the JS semantics (scopes, prototypal inheritance, async/await, generators) and it passes 25% of Ecma262 spec test suite.
itsallaboutthebit.com
JAWSM - a JavaScript to WASM compiler
3399
drogus @drogus.bsky.social · 14/03/2025
I went through the comments in the "Why Go?" thread github.com/microsoft/ty... and I categorized the relevant comments. It looks like more comments are complaining about "Why not Rust?" comments or making fun of the supposed Rust's community outrage than the actual "Why not Rust?" comments 😆
020
drogus @drogus.bsky.social · 14/03/2025
Me: "I'm sure not going through the entire thing" Also me: goes through the entire thing It looks like there were more comments complaining about "Why not Rust?" comments or making fun of "Rust's community outrage", than the actual "Why not Rust?" comments 😆
000
drogus @drogus.bsky.social · 14/03/2025
If anything this is something I've seen much more often
000
drogus @drogus.bsky.social · 14/03/2025
I've skimmed through the thread and other than an occasional "better write it in Rust" from some complete randos, I have seen mostly balanced takes. I would love some links if you come by anything, cause I'm sure not going through the entire thing lol
210
drogus @drogus.bsky.social · 14/03/2025
Regarding the recent "tsc rewrite in Go" debate, I must say that I've seen countless posts complaining about Rust community reacting poorly, and almost zero actual poor reactions. Seems like a total knee-jerk reaction "rewrite in Go, must mean Rust fanbois are angry"
120
drogus @drogus.bsky.social · 11/03/2025
Since I posted this I learned it's in fact a law in some EU countries. Hopefully it will be more widespread at some point
010
drogus @drogus.bsky.social · 09/03/2025
My "hot take" for today is that a yearly raise that would at least cover the rate of inflation should be a norm, rather than an exception; otherwise, the value of people's salaries decreases over time. This really shouldn't be viewed as "hot take", but unfortunately, probably is
130
Reposted by drogus
Kari Byron @karibyron.bsky.social · 28/02/2025
I need help. 3 National STEM Festival sponsors pulled funding because of the current climate. Please help. This is a life changing opportunity for kids that have worked so hard! www.gofundme.com/f/support-th...
16501244
drogus @drogus.bsky.social · 25/02/2025
you want to use half your salary for rent. And that all happens when there are calls for austerity measures and public services are getting worse. No wonder AfD got 20%. And I worry they will get more if the situation worsens. It's not the first time a struggling society turns to extremes
000
drogus @drogus.bsky.social · 25/02/2025
Recently, I've been thinking quite a lot about taxes in the wake of inflation and the housing crisis. While I fully support progressive taxes, there is something wrong with the notion that, for example, in Germany, a salary in the top 5% of earners will barely get you a two-bedroom apartment unless
100
drogus @drogus.bsky.social · 19/02/2025
Here's a very nice explanation on why Landman's stupid monologue about wind turbines is, well, stupid: www.youtube.com/watch?v=wBC_...
youtube.com
How Oil Propaganda Sneaks Into TV Shows | Climate Town
YouTube video by Climate Town
020
drogus @drogus.bsky.social · 18/02/2025
underrated take 😁
010
drogus @drogus.bsky.social · 18/02/2025
In the capitalist hellscape we live in I guess 😭
030
drogus @drogus.bsky.social · 18/02/2025
Sounds like a good purchas! Also feel free to ask me about impulse buying a forklift this one time 😆
000
Reposted by drogus
Kevin M. Kruse @kevinmkruse.bsky.social · 09/02/2025
Whenever you hear someone sneer about scientific research that seems useless to them — “they’re studying the spit of lizards?!” — remind them that’s exactly how we got Ozempic. globalnews.ca/news/9793403...
globalnews.ca
How a Canadian scientist and a venomous lizard helped pave the way for Ozempic - National | Globalnews.ca
In 1984, Dr. Daniel Drucker, an endocrinologist from the University of Toronto, discovered a hormone that helped pave the way for popular diabetes drugs such as Ozempic.
511299517821
drogus @drogus.bsky.social · 15/01/2025
Hey, programmers worried about your roles being replaced by AI, hear me out. I use LLMs almost daily. It's nowhere near being ready to replace anyone, and it's not certain LLMs can get significantly better. Hype is mostly for getting investor money, not because they're that good.
030
drogus @drogus.bsky.social · 13/01/2025
I really like this clip where Mitchell Hashimoto responds to why he chose Zig over Rust: www.youtube.com/watch?v=dJ5-41u-e7k. His answer is basically: I have more fun writing Zig. I think it's very often the case with our choices, whether we like to admit it or not, and it's totally fine!
youtube.com
Why Ghostty is written in Zig (not Rust or Go)
Mitchell Hashimoto explains his reasoning behind picking Zig for Ghostty, his open source terminal emulator. A clip from "The Changelog" podcast. Full audio ...
150
drogus @drogus.bsky.social · 02/01/2025
Fully Stuck Software Engineer
030
drogus @drogus.bsky.social · 01/01/2025
I don't like new Ruby3.4 feature to name 1st block arg `it`, which trades a few extra characters `|it|` for readability, eg. `arr.map {|it| it.foo }` vs `arr.map { it.foo }` blog.sinjakli.co.uk/2025/01/01/ruby…
110
drogus @drogus.bsky.social · 18/12/2024
This might be an unpopular opinion about using AI, but I use AI pretty much only for stuff that I know exactly how to write and how I would like it to look. The suggestion will influence your thinking and you will possibly not think through the problem enough to notice issues
030
drogus @drogus.bsky.social · 16/12/2024
People be like "Rust is too complex" and then expect me to just hold like half of the codebase in my head in order to validate constraints that I would otherwise put into the type system (especially when it comes to memory safety or data races, but not only).
040
drogus @drogus.bsky.social · 01/12/2024
For more context - "fewer defects" is not in the article, but it's mentioned in the talk: www.youtube.com/watch?v=QrrH2lcl9ew
youtube.com
Lars Bergstrom - Beyond Safety and Speed: How Rust Fuels Team Productivity
We often talk about how Rust enables anyone to build software that is safe, fast, and concurrent. And, we frequently highlight all of the incredible tools fr...
001
drogus @drogus.bsky.social · 01/12/2024
Ok, so this is quite interesting: www.ardanlabs.com/news/2024/rust-at…. Google a/b tested Go and Rust teams rewrites of Google's services. It turned out the Rust teams were developing at a similar speed as Go teams, but with fewer defects
ardanlabs.com
Rust at Google, Outperforming C++ and Matching Go
Ardan Labs is trusted by small startups and Fortune 500 companies to train their engineers and develop business software solutions and applications.
100
Reposted by drogus
The Embedded Rustacean @theembeddedrust.bsky.social · 28/11/2024
We have landed on bluesky! 🦋 Give us a follow to keep up with everything embedded Rust 🦀 Join 3.5k+ Rustaceans and subscribe to our bi-monthly newsletter below👇 www.theembeddedrustacean.com/subscribe #rustlang #embedded
theembeddedrustacean.com
The Embedded Rustacean
Everything Embedded Rust
0548
drogus @drogus.bsky.social · 30/11/2024
What makes it even worse is often software companies don't even add useful features, but re-design the product to extract more money form people, and not to give more value.
010
drogus @drogus.bsky.social · 29/11/2024
But the thing I would miss the most in macros is their flexibility. With Rust macros, you can do a lot of interesting things like compile time HTML parsing github.com/rs-tml/rstml or my project generating WASM code from Rust code: github.com/drogus/tarnik
github.com
GitHub - rs-tml/rstml: Rust+html (JSX-like) parser for TokenStreams aka rsx
Rust+html (JSX-like) parser for TokenStreams aka rsx - rs-tml/rstml
000
drogus @drogus.bsky.social · 29/11/2024
I've seen a lot of people saying they'd prefer Zig's comptime in Rust, rather than macros. Comptime is an interesting concept, but it has downsides, and is often used to make up for lack of features that Rust has (like traits).
100
drogus @drogus.bsky.social · 29/11/2024
"why do I feel so busy all the time?" I ask myself, while starting like a fourth new project in the last few months 🙃
000
drogus @drogus.bsky.social · 29/11/2024
For a while now I wanted to create a Rust macro for composing SQL queries by just writing SQL. No DSLs, no tricks to support joins or CTEs or other advanced features. I'm thinking I'll do a stream implementing it, so if you want to learn about writing Rust proc macros stay tuned!
000
drogus @drogus.bsky.social · 29/11/2024
I'm wondering how much "it's still hard to find Rust jobs" is a problem with Rust vs a problem with the job market. I've talked to many people who work for companies either introducing Rust or at least exploring it, but the truth is, the market is just screwed at the moment.
120
drogus @drogus.bsky.social · 25/11/2024
I just open sourced Tarnik - a project providing a Rust macro to generate WASM GC code: github.com/drogus/tarnik. The main aim is to use it in my other project github.com/drogus/jawsm, but I think it might be useful for others working with WASM GC too!
071
drogus @drogus.bsky.social · 23/11/2024
I'll be open sourcing it soon. And I really hope it's the last level, cause I really do want to get back to the stress testing tool at some point.
010
drogus @drogus.bsky.social · 23/11/2024
I am on the third level of yak shaving my distributed stress tests runner. 1st level is the tool itself. 2nd level is a JS to WASM compiler, so I can efficiently run JS code on the tool. 3rd level is a WASM GC code generator, so I don't have to write all the WASM GC code by hand
121
drogus @drogus.bsky.social · 23/11/2024
When you start writing Rust no one prepares you for the size of `target` directories
020
drogus @drogus.bsky.social · 23/11/2024
Like for example: ``` set_vars: foo: "foo" bar: "{{ foo }}" ``` is different than: ``` set_vars: foo: "foo" set_vars: bar: "{{ foo }}" ```
110
drogus @drogus.bsky.social · 23/11/2024
Yeah, makes sense. This is lower on my list of problems with ansible anyway. The biggest one is that YAML declarations semantics is pretty much unknown an often an implementation detail.
110
drogus @drogus.bsky.social · 23/11/2024
I'm so waiting for it, then! Do you plan to check/keep the state and apply changesets more like Terraform or just run the commands one by one like ansible? I actually started writing this kind of tool that uses WASM, but I already have too many side projects, so I abandoned it early on 🙈
100
drogus @drogus.bsky.social · 23/11/2024
How will the configuration be defined?
100
drogus @drogus.bsky.social · 17/11/2024
I added a new feature to JAWSM github.com/drogus/jawsm. Tail calls are now automatically optimised, meaning the attached code will work when compiled to WASM with JAWSM, but it will fail on Node.js or in a browser when reaching call stack of 5-10k (depending on the settings)
github.com
Build software better, together
GitHub is where people build software. More than 100 million people use GitHub to discover, fork, and contribute to over 420 million projects.
000
drogus @drogus.bsky.social · 17/11/2024
I'll be streaming adding new features to JAWSM JS to WASM compiler in a few minutes, join me here: www.twitch.tv/mrdrogus
twitch.tv
mrdrogus - Twitch
test
000
drogus @drogus.bsky.social · 15/11/2024
I have to reschedule my stream. I'll be streaming programming new features for the JAWSM JS to WASM compiler on Sunday 8pm CET/2pm EST/11am PST - Sunday instead of Saturday. See you there! www.twitch.tv/mdrogus/schedule?seri…
011
drogus @drogus.bsky.social · 15/11/2024
As soon as the "share everything threads" proposal becomes standardised I'm adding a feature to Jawsm that will allow to run multiple Javascript threads all able to do I/O and no one can stop me <evil laugh> 😈
010