Advertisement Β· 728 Γ— 90

Posts by drogus

Preview
WebAssembly for Functions Learn how to generate Wasm that's compliant with Shopify Functions.

Or even extending SaaS applications on the backend, like in Shopify's functions: shopify.dev/docs/apps/bu...

1 year ago 0 0 0 0
Preview
SpacetimeDB Multiplayer at the speed of light.

> 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

1 year ago 0 0 1 0

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.

1 year ago 1 0 1 0

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.

1 year ago 1 0 0 0

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.

1 year ago 1 0 1 0

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

1 year ago 1 0 1 0
Preview
Sponsor @drogus on GitHub Sponsors Support Piotr's open source work

If you like the project and you would like to support the development, please consider sponsoring me on GitHub: https://github.com/sponsors/drogus

1 year ago 0 0 0 0
JAWSM - a JavaScript to WASM compiler

I have written a post about JAWSM, my JavaScript to WebAssembly compiler: https://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.

1 year ago 40 9 3 0
Advertisement

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 πŸ˜†

1 year ago 2 0 0 0
Post image

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 πŸ˜†

1 year ago 0 0 0 0
Post image

If anything this is something I've seen much more often

1 year ago 0 0 0 0

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

1 year ago 1 0 2 0

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"

1 year ago 2 0 1 1

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

1 year ago 1 0 0 0

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

1 year ago 3 0 1 0
Advertisement
Video

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...

1 year ago 502 247 16 38

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

1 year ago 0 0 0 0

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

1 year ago 0 0 1 0
How Oil Propaganda Sneaks Into TV Shows | Climate Town
How Oil Propaganda Sneaks Into TV Shows | Climate Town YouTube video by Climate Town

Here's a very nice explanation on why Landman's stupid monologue about wind turbines is, well, stupid: www.youtube.com/watch?v=wBC_...

1 year ago 2 0 0 0

underrated take 😁

1 year ago 1 0 0 0

In the capitalist hellscape we live in I guess 😭

1 year ago 3 0 0 0

Sounds like a good purchas! Also feel free to ask me about impulse buying a forklift this one time πŸ˜†

1 year ago 0 0 0 0
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.

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...

1 year ago 30083 7855 516 266
Advertisement

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.

1 year ago 3 0 0 0
Why Ghostty is written in Zig (not Rust or Go)
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 ...

I really like this clip where Mitchell Hashimoto responds to why he chose Zig over Rust: https://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!

1 year ago 5 0 1 0

Fully Stuck Software Engineer

1 year ago 3 0 0 0

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-3-4-high...

1 year ago 1 0 1 0

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

1 year ago 3 0 0 0

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).

1 year ago 4 0 0 0
Lars Bergstrom - Beyond Safety and Speed: How Rust Fuels Team Productivity
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...

For more context - "fewer defects" is not in the article, but it's mentioned in the talk: https://www.youtube.com/watch?v=QrrH2lcl9ew

1 year ago 0 1 0 0
Advertisement