@fasterthanlime@hachyderm.io titelbild
@fasterthanlime@hachyderm.io avatar

fasterthanlime

@fasterthanlime@hachyderm.io

hi, I'm amos! 🦀 I make articles & videos about how computers work 🐻‍❄ cool bear's less cool counterpart ✨ be kind

Dieses Profil is von einem föderierten Server und möglicherweise unvollständig. Auf der Original-Instanz anzeigen

gsuberland , an Random Englisch
@gsuberland@chaos.social avatar

> Zed is a GPU-accelerated IDE written in Rust

ooh interesting. I actually quite like the idea of something that's engineered specifically to be super responsive and-

> Zed provides in-app integration with OpenAI’s ChatGPT

closes tab

fasterthanlime ,
@fasterthanlime@hachyderm.io avatar

@gsuberland try it anyway. you can absolutely ignore the Assistant part — until you paste an API key, it's inactive — literally just one icon you can hide in the config.

fasterthanlime , an Random Englisch
@fasterthanlime@hachyderm.io avatar

nods

fasterthanlime OP ,
@fasterthanlime@hachyderm.io avatar

@__head__ now where did you get that impression?

fasterthanlime OP ,
@fasterthanlime@hachyderm.io avatar

@__head__ alright well just for the record, I'm French+Swiss, the name Amos comes from the bible, it's a minor prophet (so.. Hebrew?), and you can find out what I look like on here: http://youtube.com/@fasterthanlime

fasterthanlime OP ,
@fasterthanlime@hachyderm.io avatar

@piecritic N… no reason

fasterthanlime , an Random Englisch
@fasterthanlime@hachyderm.io avatar

I love the web platform because you can ask for the "clipboard-read" permissions nicely and the browser can throw a TypeError?

like... we couldn't afford one more string to tell me to go fuck myself nicely? we had to rely on the type of the exception here, really? like it's C and all we have to go on is a register's worth of integer values?

fasterthanlime OP ,
@fasterthanlime@hachyderm.io avatar

also, can we talk about the gall of an interpreted, dynamically-typed language throwing a "TypeError" at me? a type error, really?

jail! jail for a thousand years

fasterthanlime , an Random Englisch
@fasterthanlime@hachyderm.io avatar

I'm reading up about C++ move semantics and I don't understand why anybody in the history of humankind has ever tried defending this language.

fasterthanlime OP ,
@fasterthanlime@hachyderm.io avatar

@vitaut Fair enough 😄

fasterthanlime OP ,
@fasterthanlime@hachyderm.io avatar

@sgued gotcha, thanks!

fasterthanlime OP ,
@fasterthanlime@hachyderm.io avatar

While I have your attention, is there any other language that supports the kind of "destructive move" that Rust does?

ie. any language where the second line here is a compile error:

consume(resource);  
consume(resource);  

..because the first call consumed it?

fasterthanlime OP ,
@fasterthanlime@hachyderm.io avatar

@8bit well.. it depends what the move constructor is doing (in my case, nothing, but usually, transferring things to the destination)

fasterthanlime OP ,
@fasterthanlime@hachyderm.io avatar

@benjins

> 2021

😭😭😭

(thanks a ton for the link!)

fasterthanlime OP ,
@fasterthanlime@hachyderm.io avatar

@macmade thanks, I'd like to showcase best practices!

fasterthanlime OP ,
@fasterthanlime@hachyderm.io avatar

@raph @cliffle Thanks Raph!

fasterthanlime , an Random Englisch
@fasterthanlime@hachyderm.io avatar

I know you all probably have questions, and I uhhhh runs away

fasterthanlime OP ,
@fasterthanlime@hachyderm.io avatar

Look I just thought Rust should also get some bonus data, as a treat, and I did some dynamic linker fuckery, and now tokio disagrees with itself a little.

It's fine. I'm fine. We're okay.

fasterthanlime OP ,
@fasterthanlime@hachyderm.io avatar

@Cyborus haha no, this is "what if we had multiple copies of a crate in memory at the same time (including statics)" for a laugh, thankfully

fasterthanlime OP ,
@fasterthanlime@hachyderm.io avatar

@gfaster @Cyborus So I could build parts of my app independently as dynamic libraries. I don’t really want to ship and copies of Tokyo, but monomorphization is kind of forcing my hand here.

It’s that or having the entire crate graph when building tokio, which ruins the purpose of segmenting my app in completely separate crates like that.

  • Alle
  • Abonniert
  • Moderiert
  • Favoriten
  • random
  • haupteingang
  • Alle Magazine