@hywan@fosstodon.org
@hywan@fosstodon.org avatar

hywan

@hywan@fosstodon.org

🌱 Ecologist 🕸 WebAssembly polyglot :ferris: Rust nerd 👾 Hacker 🎓 PhD Computer Scientist 🤲 Open source lover 🙈 Parser, compiler, low-level, binding, VM/runtime, Web, home automation, embedded… 🚀 R&D Element/Matrix, the decentralized, end-to-end encrypted, open source network 📜 Formerly Wasmer (WebAssembly runtime), Automattic, fruux, Mozilla (Firefox)…
🏠 Living in the stack, in a weird ABI, lost in FFI land

This profile is from a federated server and may be incomplete. Browse more on the original instance.

nitot, to random French
@nitot@framapiaf.org avatar
hywan,
@hywan@fosstodon.org avatar

@nitot merci

hywan, to random
@hywan@fosstodon.org avatar
hywan, to rust
@hywan@fosstodon.org avatar

cargo-machete, https://github.com/bnjbvr/cargo-machete.

cargo-machete is a Cargo tool that detects unused dependencies in Rust projects, in a fast (yet imprecise) way.

See the companion blog post: https://blog.benj.me/2022/04/27/cargo-machete/.

#RustLang #dependencies #cargo

hywan, to random
@hywan@fosstodon.org avatar

Charging our electric car at 15A/phase, be 10’350kW. Only from the sun! It feels magical.

Side note: do you like our home automation dashboard? Everything lands here and is open source, https://github.com/Hywan/LaMaisonVivante.

#ev #car #sun #SolarPower #PV

hywan,
@hywan@fosstodon.org avatar

@jdrouet soon little scarabée.

hywan, to random
@hywan@fosstodon.org avatar

Hello you 👋 🐸

A frog floating in the water.

jsbarretto, to random
@jsbarretto@social.coop avatar

A vertical herb garden. Just needs a roof section. 90% of the work has been compensated for shitty timber (sanding, straightening, compensating for warp/twisting) so I won't be making the mistake of buying dirt-cheap stuff again.

There is nowhere near enough room in this greenhouse for it to double as a workshop, so perhaps it's time to look into turning the attic into one instead.

hywan,
@hywan@fosstodon.org avatar

@jsbarretto nice, well done!

bnjbvr_en, to random

In other news, excited to share that starting next week, I'll start working at #Element, the company behind the #Matrix protocol and messaging apps 🥳

It's great to be back in open-source and help decentralize messaging 💌

hywan,
@hywan@fosstodon.org avatar

@bnjbvr_en can’t wait to work you ❤️!

hywan,
@hywan@fosstodon.org avatar

@bnjbvr_en WITH you***

hywan,
@hywan@fosstodon.org avatar

@bnjbvr_en @flaki Wait wait wait, nooo! It’s a typo, OK?!

hywan, to random
@hywan@fosstodon.org avatar

OrbStack, https://orbstack.dev/.

> Run Docker and Linux on your Mac seamlessly and efficiently. Docker Desktop alternative that helps you work faster.

It seems so much simpler than Docker. Going to try this very soon.

#container #macos #docker

hywan, to random
@hywan@fosstodon.org avatar

Thoughts on OCaml, https://osa1.net/posts/2023-04-24-ocaml-thoughts.html.

It hurts but it’s true and factual :-/.

#ocaml #LanguageDesign

hywan,
@hywan@fosstodon.org avatar

@jsbarretto I don’t know for this point exactly.

hywan, to random
@hywan@fosstodon.org avatar
hywan, to random
@hywan@fosstodon.org avatar

Switzerland + Italia + Slovenia + Croatia in 11 days by electric car (Kia EV6), with 4 persons.

Total of 2914km. Average consumption: 14.69kWh/100km.

Brave Elektro Titine.

#travel #ev

hywan,
@hywan@fosstodon.org avatar

@ildisinformatico @AAMfP No blog post. It’s a non-event :-p. Just sharing some stats, that’s all ^^.

hywan,
@hywan@fosstodon.org avatar

@ildisinformatico @AAMfP We didn’t use the car everyday. But yeah, nothing fancy.

n1k0, to random French
@n1k0@mamot.fr avatar
hywan,
@hywan@fosstodon.org avatar

@n1k0 Même pas une goutte de pluie. Trop facile.

hywan,
@hywan@fosstodon.org avatar

@n1k0 Oui, ici il pleut énormément mais c’est nécessaire, donc top.

vincentxavier, to random French
@vincentxavier@pouet.chapril.org avatar

On propose 4% d'augmentation sous forme de primes (et pas de salaire) alors que l'inflation est à 6% et que les enseignants ont perdu 20 points de pouvoir d'achat en 20 ans. Il n'y aura pas plus de candidats l'année prochaine !

https://www.francetvinfo.fr/societe/education/education-emmanuel-macron-promet-une-hausse-inconditionnelle-de-salaire-de-100-a-230-euros-net-mensuels-pour-les-enseignants_5782340.html

hywan,
@hywan@fosstodon.org avatar

@goofy @bnjbvr @fabi1cazenave je dirais plutôt ménestrels ratés du quinzième siècles. Mais c’est une affaire de goûts :-p.

hywan,
@hywan@fosstodon.org avatar
hywan, to rust
@hywan@fosstodon.org avatar

I’m starting a new project to learn about linkers. It’s called ˋweld`, and it lives here https://github.com/Hywan/weld.

I do this on my free time; understand very sporadically.

This toot is a thread to show progress or to ask help.

hywan,
@hywan@fosstodon.org avatar

#weld

A little improvement on the scheduler to make it more system friendly.

ThreadPool no longer takes a ˋpool_sizeˋ but a ˋdesired_pool_sizeˋ. The system might not have all the expected available parallelism resources. Maybe it is busy, maybe it is limited. So now, the pool size is clamped, https://github.com/Hywan/weld/commit/8590fa4f5c80b5c827c0e928226d5b5bbd231f2c. The documentation provides more details.

Hopefully Rust has a standard function for that: std::thread::available_parallelism. How neat!

#RustLang #thread

hywan,
@hywan@fosstodon.org avatar

#weld

ˋweld-object is now able to disassemble x86 instructions when debugging an object file (with the ˋdebug-x86 feature turned on), https://github.com/Hywan/weld/commit/043e16d731108ac1a7cade05de209a18e0591959.

It’s really handy :-)!

It’s based on the excellent iced-x86 crate, https://github.com/icedland/iced.

❓📣 If you know an equivalent for ARM, please let me know!

#RustLang #disassembly #assembly #x86

hywan,
@hywan@fosstodon.org avatar

#weld

weld now takes a --target <triple> argument. weld is designed to be cross-platform entirely, hence it's legit to be able to specify a target triple, https://github.com/Hywan/weld/commit/b7fde2dbf9fb523dccb041063bfd030967f5e814.

Based on the provided target triple, weld will use a particular linker strategy (e.g Elf, MachO, Coff, Wasm etc.).

$ weld --target x86-64-unknown-linux <input> -o <output> # = Elf

$ weld --target aarch64-apple-darwin <input> -o <output> # = MachO

Cool huh?

#RustLang #TargetLexicon #CrossPlatform #linker

hywan,
@hywan@fosstodon.org avatar

#weld

My biggest difficulty with linkers is… understanding their errors! I know I'm not alone.

That's why weld must be exemplary on errors, period.

Please welcome weld-errors, https://github.com/Hywan/weld/compare/b7fde2dbf9fb523dccb041063bfd030967f5e814...4a41bd666c6dc8b76a59bf7c127247312e84127e.

What's new?

  • Any error contains a code, a (formatted) message, and a help message,
  • weld pretty prints those errors,
  • weld --explain &lt;error_code&gt; gives detailed diagnostics,
  • Automatic awesome documentation.

See the screenshots.

#RustLang #error #diagnostics #friendly #linker

Example of how to declare an error with the
Documentation of an error type generated with the
Generated documentation that contains all the error diagnostics!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • provamag3
  • mdbf
  • ngwrru68w68
  • modclub
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • DreamBathrooms
  • JUstTest
  • ethstaker
  • osvaldo12
  • Leos
  • GTA5RPClips
  • cubers
  • everett
  • tacticalgear
  • cisconetworking
  • tester
  • megavids
  • anitta
  • normalnudes
  • lostlight
  • All magazines