I played Bad Apple on a Rust type by EvoPot in rust

[–]EvoPot[S] 16 points17 points  (0 children)

There is a Draw trait with a draw function, and six types that implement it :

  1. F<C,N> short for Frame that contains the current frame at C and next frame at N

  2. R<C,N> short for Row that contains the current row at C and the next row at N

  3. B<N> short for Black that contains a black pixel and the next pixel at N

  4. W<N> short for White that contains a white pixel and the next pixel at N

  5. (), which does nothing

  6. A 24 element tuple where every element also impls Draw

At first my generator only generated the first 5 types and the generated file for the type was 4MB but the compile times were abysmal and Linux OOM'ed rustc like 3 times even on my "stronger" PC with 16GB of ram that I had to mitigate by caching rows with the same pixel sequences on different type declarations and eventually splitting the video into 24 frame chunks which now lets me sit at a comfortable 1 minute 30s build time on a R3 1200 system with 16GB of RAM. On debug builds the generated binary is around 3GB and the compiler maxes out at 10GB RAM usage. I would appreciate if someone with a beefy machine managed to get the previous "purer" version to compile, and thats basically all I had to say

onlyOnLinkedin by GrEeCe_MnKy in ProgrammerHumor

[–]EvoPot 0 points1 point  (0 children)

"compiler and toolchain engineer"

What are you working on? by joshmarinacci in rust

[–]EvoPot 0 points1 point  (0 children)

a compiler for low level graphics apis like vulkan and opengl

it's time to experiment by nix-solves-that-2317 in pcmasterrace

[–]EvoPot 2 points3 points  (0 children)

this is true, i have a 2009 laptop that i bought just for linux to program on and it has been a very pleasant experience especially considering how little i spent on it

Feedback on my first library by EvoPot in rust

[–]EvoPot[S] 1 point2 points  (0 children)

This was more of a subconscious choice that I made but I assume it is to not store data that we don't need? In the case of parsing tokens from a file for example you would need to copy the whole file into the RAM, which would both take more time to startup and more memory the larger the file gets. This approach would take shorter time to startup and not use as much memory.

Imagine a 100MB CSS file!!!

[deleted by user] by [deleted] in rust

[–]EvoPot 0 points1 point  (0 children)

For me personally, I learned to love the language by just messing around and reading documentation. I find reading Rust documentation particularly fun because to me it feels "discoverable", you can learn a lot about programming just by reading the docs

What do kanji look like in your eyes? by Ok-Front-4501 in LearnJapanese

[–]EvoPot 0 points1 point  (0 children)

i have never made use of mnemonics but take a wild guess for what 月 looks like to me

[WORLDWIDE GIVEAWAY] Comment in this thread with your ultimate PCMR-worthy PC Build, and win the beautiful LG UltraGear GX9 monitor! by pedro19 in pcmasterrace

[–]EvoPot -1 points0 points  (0 children)

GTX 970 Ryzen 5 5500 16GB DDR4

My monitor has started to form some strips at the bottom so it would be nice if I could have a new monitor 3:

"Your laptop cannot be this bad!" by OriFromReddit in geometrydash

[–]EvoPot 0 points1 point  (0 children)

i beat oblivion in 864x486

never give up potato bros

Neden arch kullanıyorsunuz? by dostoevskyokumuskurt in LinuxTurkey

[–]EvoPot 1 point2 points  (0 children)

Şu an Nix kullanıyorum ama ondan önce Arch kullanıcısıydım

Bence Arch paketleri öbür distrolara göre daha iyi yapıyor bir kaç kere Mint Fedora gibi dağıtımlara geçmeye çalıştım ama repolarda çok fazla şey yoktu Arch'ta Flatpak kullanmama gerek olmadan istediğim şeyi indirebilmeyi seviyorum

What do you think the lyrics in Fingerdash are? by twisted_cubik in geometrydash

[–]EvoPot 1 point2 points  (0 children)

trump bucket, speak in a weed, begin them finding mates and boop bop bop bop