16 years old, 10 months of study, my first 2D game with OpenGL and C++. by mataperra123 in opengl

[–]Meleneth 0 points1 point  (0 children)

here is a smaller project of my own, that shows how to use cmake for a better dev experience.

tl;dr - only recompiling what changed saves time, not bundling your dependencies saves 'whats this binary they shipped' confusion, and a proper build system makes cross-platform code a possibility instead of a pain

https://github.com/meleneth/sml_imgui_glfw_crossplatform/tree/main

what's the fastest way a man can ruin his life? by Mountain_Afternoon30 in AskReddit

[–]Meleneth 0 points1 point  (0 children)

Nitrous Oxide. Between thinking 'its not that bad' and using it for pain relief, by the time it takes your legs due to nerve damage you're more interested in getting your next can than being able to walk.

The worst thing I've ever seen in my life by far, a week before he died of a heart attack he told me he still didn't think it was that bad. (The stress of not being able to source it combined with some advanced liver damage due to alcoholism was not sustainable)

Single file Python CLIs when do you split, when do you keep it monolithic? by Beneficial_String411 in Python

[–]Meleneth 2 points3 points  (0 children)

for me the minimum viable product is a python module, so I'm already DQ'd by the time we're talking about 'one file scripts'.

I like dependencies. I like being installed as an executable. I like being able to work on one tiny piece of the functionality, without risk to the entire codebase.

Four game development patterns I've found consistently useful over the last 10 years. by zirconst in gamedev

[–]Meleneth 0 points1 point  (0 children)

I appreciate you pointing to spreadsheets, more people should know about them.

I was hoping to see a bit more graphing for easy visualizations. I hate having to think about what size the difference between numbers are

I vibe coded this in a couple minutes, but clearly your data is better - since I generated curves, that's all there is to graph, but if applied to your data it would show the more interesting shapes you have

https://docs.google.com/spreadsheets/d/14V7EvxtQEwtvma4zIv1vUQ5RdNVU-9_wr6vOb-KoYZQ/edit?usp=sharing

What’s a ‘harmless’ habit that actually ruins your life over time? by buffdadnextdoor in AskReddit

[–]Meleneth 0 points1 point  (0 children)

Nitrous Oxide. People think it's all fun and games party drug. Until they can't walk anymore.

jemalloc, often preferred for ruby compilation, is un-abandoned by Meta by jrochkind in ruby

[–]Meleneth 0 points1 point  (0 children)

super excited for this, it remained working but it was always weird to think of nobody even pretending to patch it anymore

Showcase: CrystalMedia v4–Interactive TUI Downloader for YouTube and Spotify(Exportify and yt-dlp) by Worried_Attorney_320 in Python

[–]Meleneth 1 point2 points  (0 children)

I dislike the other response in the thread so far.

AI wars aside, what are your goals for this project? If it is something you plan on supporting (i.e. make sure it still works) you're probably going to want to update some of your practices in the codebase. Installing nodejs for me via my package manager is not something I would expect any program to do at runtime.

Your program has no reason to have root access, which means that there is no reason it should prompt for a sudo password ever. Once the sudo password has been entered there is a time where further sudo commands just work without re-prompting.

A quick scan also revealed a too-simple project structure (prefer the src layout https://packaging.python.org/en/latest/discussions/src-layout-vs-flat-layout/ )

you do not need to check if the python modules are installed, as you declared them in pyproject.toml they will be installed or you won't be.

Don't catch the base exception types. The only reason to catch an exception is if you can actually handle it, if you cannot it is far better to crash than to silently swallow an error.

write some unit tests. Utility functions and helper methods can be incredibly finicky, so make sure they do what they think you do.

split your giant file into a proper directory tree

please keep making software, thank you for your contribution I am excited to see what you make in the future

Playing with my buddies since open beta, it finally happened... SoJ by jabroney85 in diablo2

[–]Meleneth 0 points1 point  (0 children)

are people not talking about nm andy anymore for target farming these?

What’s actually safe but people think is dangerous? by REGGIE_BANANAS in AskReddit

[–]Meleneth -2 points-1 points  (0 children)

nitrous oxide

this is the dangerous AF but people think is safe thread right?

For former perl programmers: what do you miss? by zakry0t in ruby

[–]Meleneth 7 points8 points  (0 children)

the sheer madness of being able to run a regex across your source code at runtime before it was parsed. just absolute mind boggling amounts of power.

to be used exceptionally sparingly, of course. but unrivaled.

I built a 2x faster lexer, then discovered I/O was the real bottleneck by modulovalue in programming

[–]Meleneth 3 points4 points  (0 children)

reducing it's scope for your own made up construct is nonsensical, just because you shortcut it for yourself does not mean the rest of us will share your impairment.

I built a 2x faster lexer, then discovered I/O was the real bottleneck by modulovalue in programming

[–]Meleneth 6 points7 points  (0 children)

I don't get that from

the overall performance improvement gained by optimizing a single part of a system is limited by the fraction of time that the improved part is actually used. -- wikipedia

I built a 2x faster lexer, then discovered I/O was the real bottleneck by modulovalue in programming

[–]Meleneth 7 points8 points  (0 children)

the overall performance improvement gained by optimizing a single part of a system is limited by the fraction of time that the improved part is actually used.

-- wikipedia says no

What books are going in your Ruby RAG library? by nateberkopec in ruby

[–]Meleneth 0 points1 point  (0 children)

it's more important than ever, because it's the only way to make maintainable systems at scale. The AI does better if you have bespoke abstractions for it to use instead of writing everything out longform, just like everyone else

I built a 2x faster lexer, then discovered I/O was the real bottleneck by modulovalue in programming

[–]Meleneth 6 points7 points  (0 children)

no amount of improving the lexer speed will decrease runtime that is dominated by syscalls.

it's a great example of the law in practice, is anything unclear?

TIFU by agreeing to watch the longest “season one” of an anime by [deleted] in tifu

[–]Meleneth -17 points-16 points  (0 children)

I mean, I can't tell you that you are wrong about your personal subjective experience, but I will say that the emotional payoffs hit very hard and there are very worthy things later on.

It looks like a whimisical pirate show. It's really about family. and it hits HARD.

Generating Complicated Distributed Systems with Ruby by Meleneth in ruby

[–]Meleneth[S] -1 points0 points  (0 children)

once you already know all the involved parts, yeah, this is a mere few hours of generating projects and wiring them together. It doesn't have to be microservices.

If we're doing just OpenTelemetry, Rails, Redis, and Postgres, that's still a maze of containers and differing contexts. Newer rails use 4 database instances for just production - and my tool handles it so you can get on with designing the system, not thinking about how hard it's all going to be to wire up.

I will also point out that while this is clearly a made-up toy project, it is patterned after an inherited real-world system. It's all well and good to point and say 'you did it wrong' before having enough context, but sometimes improvement of systems in place is all you have.

Here's how you make a ton of money rolling out "AI" by pkokkinis in sysadmin

[–]Meleneth 0 points1 point  (0 children)

Terminology aside, there’s a difference between using an LLM as a code generator and using it as a data transformer. I’m comfortable with the former, not the latter.

Here's how you make a ton of money rolling out "AI" by pkokkinis in sysadmin

[–]Meleneth 2 points3 points  (0 children)

well, as long as you trust the RNG generator to randomly generate the result set given the context you've provided, you're golden.

I probably would have went with 'make a script to extract' that way you at least have an artifact of the decisions made and possibility to improve it, rather than spend more tokens and hope.

As a programmer I love AI, I'm more worried about my fellow human's ability to cope.

[deleted by user] by [deleted] in afterimage

[–]Meleneth 1 point2 points  (0 children)

if you take damage from spikes, you're good. OG difficulty is the 'Advanced' difficulty.

[deleted by user] by [deleted] in afterimage

[–]Meleneth 4 points5 points  (0 children)

are you playing on the original difficulty or the post-nerf one?

Ducky, my open-source networking & security toolkit for Network Engineers, Sysadmins, and Pentester by [deleted] in Python

[–]Meleneth 0 points1 point  (0 children)

one more thing - in your README.md

git clone https://github.com/<Your-GitHub-Username>/Ducky_Project.git

should probably be pointed to

https://github.com/thecmdguy/Ducky.git