@fil@hachyderm.io
@fil@hachyderm.io avatar

fil

@fil@hachyderm.io

Rustacean, musician, gamedev.
Mostly lurking.
Lacks qualification to exercise free will.

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

thejpster, to random
@thejpster@hachyderm.io avatar

Is there a more autistic movie than Ready Player One?

Which is why it’s super annoying that when a bunch of co-located sixer avatars die, the next shot shows a load of co-located players losing. There’s no reason for avatars to have the same geographical arrangement as the players, who are replaced randomly as and when they lose. Even if the shot looks good.

fil,
@fil@hachyderm.io avatar

@thejpster that does sound like a blunder, what is its relation to autism?

alado, to random Russian

Решил расширенно заняться корректировкой данных о моем СНТ в #OpenStreetMaps. А то там данные 5-6 летней давности. Многих домов нет вообще. Нумерации нет в принципе. Границы садоводства указаны неверно.
Проблема в том, что в #OSM для базовой отрисовки использовался спутниковый снимок... не знаю какого года, но на нем нет даже соседнего ДНП - вместо него лес. Стал думать, на основании чего рисовать. И тут дошло: у меня же есть дрон! Поднять его в воздух, сделать снимок куска СНТ метров с 60, подложить под карту, смасштабировать и всё! Потом так же со следующим куском.

fil,
@fil@hachyderm.io avatar

@alado а как правильно отмасштабировать? По ориентирам на местности или считать из высоты и параметров объектива?

fil, to random
@fil@hachyderm.io avatar

What is "being organised"? A miserable pile of alarm clocks

Matthew, to ama

Ask me anything

I’m a gay game developer + furry

Here’s my website:
https://raccoonformality.com

Boost if you want

#ama #gay #furry #furryfandom #gamedev

fil,
@fil@hachyderm.io avatar

@Matthew what inspires you to make games?

tymwol, to rust
@tymwol@hachyderm.io avatar

Stages of using lifetimes in :

  1. Start with no lifetimes,
  2. The compiler complains, so you put lifetimes everywhere,
  3. It's so ugly that you simplify it, so it doesn't need any lifetimes anymore.
fil,
@fil@hachyderm.io avatar

@tymwol
4. Find the clone invocations in the profile flamegraph, try to switch some of them to use references instead, goto 2.

DawnstarGames, to gamedev
@DawnstarGames@mastodon.gamedev.place avatar

If you want the emotional high of "I am a God! I'm so smart!", only to return to "I'm the biggest idiot" 10 minutes later. Become a Game developer.

fil,
@fil@hachyderm.io avatar

@DawnstarGames works also for the whole landscape of software development

fil, to gamedev
@fil@hachyderm.io avatar

what does this look like?


calisti, to random
@calisti@chaos.social avatar

German efficiency.

fil,
@fil@hachyderm.io avatar

@calisti aren't lists 0-based in Germany? :blobhaj_md:

owiecc, to programming
@owiecc@en.osm.town avatar

Can any of you suggest a 2D plotting library for Rust? I need to plot some polygons on a canvas and save to (ideally) pdf.

fil,
@fil@hachyderm.io avatar

@owiecc
Looks like plotters is the default, its documentation https://docs.rs/plotters/ has a "snowflake" example, which might be what you are looking for. There are also a couple of alternatives https://lib.rs/keywords/plot

glyph, to random
@glyph@mastodon.social avatar

I just want to write some code, maybe make some music, maybe draw some pictures.

I don't want to be mad about blockchains, I don't want to be mad about GenAI, I don't want to be mad about terrible backfiring "think of the children" legislation, I don't want to be terrified about the rising tide of bigoted, racist fascism ending democracy in my lifetime.

I don't want you to have to be mad about all that either.

I wish the world would leave us all alone for a little bit.

fil, (edited )
@fil@hachyderm.io avatar

@glyph
My cat was sitting weirdly, so my wife drew this

fil, (edited ) to random
@fil@hachyderm.io avatar

Human - machine interface upgrade is slow for me...


finnbar_m, to rust
@finnbar_m@mastodon.social avatar

Devs, what features do you think rust should borrow from other languages?

For me, it's implicit interfaces similar to how does it.

fil,
@fil@hachyderm.io avatar

@finnbar_m
As long as the borrow is immutable, any feature should be fine :ferris_gesture:
On a serious note I miss the ergonomics of named arguments, but it is a difficult thing to add https://github.com/poliorcetics/named-arguments-rfc
Structures with derived "Default" as a replacement are a little bit clunky

fenrirre, to rust
@fenrirre@hachyderm.io avatar

i just wrote my first little educational article about over at @jamie ! its about memory allocations! im gonna write a part 2!!!

fil,
@fil@hachyderm.io avatar

@fenrirre @jamie it is down :BlobhajSadReach:

molly0xfff, to random
@molly0xfff@hachyderm.io avatar

fuck i love blogs. if i had nothing but time i would just read blogs all day.

fil,
@fil@hachyderm.io avatar
fil, to rust
@fil@hachyderm.io avatar

Using to configure something developers didn't make configurable

https://samoylovfp.dev/configuring-inconfigurable/

fil, (edited ) to random
@fil@hachyderm.io avatar
dpom, to rust
@dpom@fosstodon.org avatar

One thing I struggle with in is that I understand a lot of things conceptually, but not quantitatively. I can tell you that there is a runtime cost to using dynamic dispatch, but I don't actually know how much it costs. I have the feeling that the difference in many cases is probably not significant, but even if I were to profile the code in question, I'm not sure I’d be able to translate the results to real-world impact.

fil,
@fil@hachyderm.io avatar

@dpom there are some benchmarks here
https://docs.rs/enum_dispatch/

eliocamp, to rust
@eliocamp@mastodon.social avatar
fil,
@fil@hachyderm.io avatar

@eliocamp looks incredible!

blainsmith, to rust
@blainsmith@fosstodon.org avatar

What are some good embedded Rust resources? I'm trying to make a collection to read up on. So far I've started poking around https://github.com/rust-embedded

fil,
@fil@hachyderm.io avatar

@blainsmith
A collection of resources by @ferrous

https://github.com/knurling-rs

floby, to rust
@floby@mastodon.social avatar

What's a good tutorial or resource I can follow to learn myself some Rust by giving it max 2h a week?

Edit: if you have tips to get started with a vim setup I'd love them as well (using ALE for everything lint/lsp)

fil,
@fil@hachyderm.io avatar

@floby there is also this "4 day" alternative developed at Google
https://google.github.io/comprehensive-rust/

fil, to random
@fil@hachyderm.io avatar
glyph, to random
@glyph@mastodon.social avatar

Inspired by a physical space decluttering in my office, I went through my personal scripts & tools repository, and yeesh if you keep a dotfiles repository around for 20 years it really accumulates some useless stuff

72 files changed, 10580 insertions(+), 13246 deletions(-)

fil,
@fil@hachyderm.io avatar

@glyph how do you have more deletions than insertions? Or is the stat not from the initial commit?

voidshaper, to random

DOMi & Louis Cole
fine stuff
https://www.youtube.com/watch?v=Vk-9aGGkxqE

fil,
@fil@hachyderm.io avatar

@mbr @voidshaper @mcc I have reliable information that Louis has nothing to do with clowncore though
https://youtube.com/clip/UgkxMFDzWQdr6N9zzCwON_uwdlrf7DGBW9vy?si=aZMsejFO2VbJ_ehH

fil,
@fil@hachyderm.io avatar

@mbr @voidshaper @mcc and literally the same synth lines

timClicks, to rust
@timClicks@mastodon.nz avatar

If you're coming from Java, here's a mapping between primitives and Rust's types:

byte -> i8
short -> i16
int -> i32
long -> i64
float -> f32
double -> f64
boolean -> bool
char -> [no 1:1 mapping, Rust's char is a UTF-32, whereas Java's is a UTF-16]

fil,
@fil@hachyderm.io avatar

@timClicks
It was interesting to learn about char representation in Java. Here's some set ups if someone is interested in experimenting

Java
https://ideone.com/VrMpKv

Rust
https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=e43b18efe433e32722a4c34a277b822d

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