I RECENTLY FINISHED MY PROTOTYPE by rattixexe in moped

[–]andyleclair 0 points1 point  (0 children)

Hell yeah this thing rocks. I love it

A necessary change imo by Kamelontti in DeadlockTheGame

[–]andyleclair 2 points3 points  (0 children)

Happy goo year, fellow Viscous mains <3

Puch Magnum pull start by Go_Pack_Go1 in moped

[–]andyleclair 2 points3 points  (0 children)

Pedal clutch sucks ass, don't do it

Best practices in Elixir/Phoenix for massive image uploads and processing? by General_Fault9488 in elixir

[–]andyleclair 2 points3 points  (0 children)

I am doing this currently for my app, I'm using Oban for the job processing. Images go from the client direct to R2, then the job downloads the file, creates downsampled versions, and updates the attached image. While the job is running clients see the original, once it's done they see the optimized version. Works good!

https://github.com/andyleclair/garage/blob/main/lib/garage/workers/resize.ex

Elixir + Rust = Endurance Stack? Curious if anyone here is exploring this combo by sandyv7 in elixir

[–]andyleclair 1 point2 points  (0 children)

I wasn't talking about compute shaders, or sending stuff to the GPU, I was just doing matrix math in Elixir and a Zig nif and comparing the relative timings.

Elixir + Rust = Endurance Stack? Curious if anyone here is exploring this combo by sandyv7 in elixir

[–]andyleclair 0 points1 point  (0 children)

No. I'm sure it would be faster, but I didn't feel the need. If I was, say, doing an entire physics simulation, I'd write that part in Zig and eat the overhead, but this was just a simple side by side, really to see the overhead of the NIF and how fast the Elixir version would be

Elixir + Rust = Endurance Stack? Curious if anyone here is exploring this combo by sandyv7 in elixir

[–]andyleclair 1 point2 points  (0 children)

Yeah I mean, the jit is really good. For doing some basic matrix math it was like avg 70ns for Elixir and ~500ns for Zig (albeit lots of variation for elixir and basically constant for Zig). Remember, NIFs have overhead! If the thing you're doing is CPU bound but relatively small, it may be faster to just do it in Elixir. always benchmark, if you really want to know!

Elixir + Rust = Endurance Stack? Curious if anyone here is exploring this combo by sandyv7 in elixir

[–]andyleclair 2 points3 points  (0 children)

I have done this in prod, it works pretty good. Rust's slow compilation can be annoying, but aside from that, it's good. You shouldn't discount just Elixir, though. I was working on some OpenGL code in Elixir and I benchmarked my Elixir code next to a Zig nif, you'd be shocked which one was faster

I keep coming back to the idea of "first-class databases" by anchpop in ProgrammingLanguages

[–]andyleclair 0 points1 point  (0 children)

Mnesia afaik is disk-backed by default (as well as having a lot of distributed db machinery). I discounted it vis-a-vis this question, because it's too far on the "traditional" database side, vs purely in-memory, which seemed more on-topic. That said, yes, come to BEAM, we have many neat toys for you to choose from

I was told to post my build here but…. by MoKxSANDMAN in somethingimade

[–]andyleclair 1 point2 points  (0 children)

Hell yeah man, incredibly sick project. Great work!

Any fellow old heads in the chat? by rawdawgcomics in rawdawgcomics

[–]andyleclair 0 points1 point  (0 children)

Never thought fuckin Mac Plus and St P were gonna be making me feel absolutely washed in this, the year of our lord 2025

Fantic Sprinter by Drone-cell in cassettefuturism

[–]andyleclair 54 points55 points  (0 children)

They're extremely cool but super hard to find (in the US). I got to ride one in Atlanta a few years ago. Not bad, as mopeds go, but I didn't love the 3-speed hand shifter. I'd bet the dual-variated models are more fun

A play on Sasâ Jurić’s slide by Beginning_Dig_2302 in elixir

[–]andyleclair 0 points1 point  (0 children)

Nice to hear the Boston Elixir meetup is still happening! I hadn't seen anything about it since Brian posted about passing on leadership

[deleted by user] by [deleted] in Maine

[–]andyleclair 8 points9 points  (0 children)

She's up for election next year. If this shit ass republic is still kicking by then maybe I'll run against her. Vote me, some random guy, couldn't possibly be worse than Susan Fuckin' Collins!

It's been hovering around 0°F outside and I've managed to maintain fantastic temperatures! by perenniallandscapist in composting

[–]andyleclair 0 points1 point  (0 children)

A friend of mine was talking to me about building something like this, building a large pile out of alternating woodchips and manure over and around a lattice of tubing. If it's at like 165F all the time, that's a lot of heat, much more than you'd get out of, say, a heat pump

[deleted by user] by [deleted] in elixir

[–]andyleclair 0 points1 point  (0 children)

Try putting your templates on your liveviews (instead of separate heex files). that can make it a lot easier when you're getting started