[-] Blackthorn@programming.dev 11 points 2 months ago

Someone tried to build a stairway to heaven but got bored when the song ended.

[-] Blackthorn@programming.dev 6 points 2 months ago

It would be just a matter of time before they can distinguish between good and bad data; there are already AI that can do just that. I'd like to do something like that on GitHub though:P

9

I guess the question is straightforward. I'm creating a simple 2D game with a few animation and 30 or 60 fps are more than enough. I'd like to cap the fps to reduce power consumption on my laptop when testing my own game. I can manage that from the nvidia control panel, but I can do that from ingame code? I can see many games provide a fps cap option. How do they achieve that? Sleeping/calling Sdl_delay doesn't seem a great option and neither is active waiting while checking for passed time. Is there an hardware mechanism I can block to?

[-] Blackthorn@programming.dev 31 points 2 months ago

Yeah, he basically spoiled the ending with the tv show and now he needs to come up with a new one. Not that he actually will. He'll never finish the series

[-] Blackthorn@programming.dev 14 points 2 months ago

He probably couldn't see the tv due to the big pile of money sitting between him and the screen covering his view.

[-] Blackthorn@programming.dev 9 points 2 months ago* (last edited 2 months ago)

Lol, I'm not exactly a fan of the series (I only really liked the first two books) but this is ridiculous. At this point he is just trolling. I'd say I'm happy I moved on. I haven't even bought A dance with dragons because I couldn't finish the one before that as I didn't really like it. That being said, I'd like to get a conclusion to the story and I'm willing to go back to the series AFTER it's concluded (which most likely will never happen).

[-] Blackthorn@programming.dev 17 points 2 months ago

Ringworld :)

[-] Blackthorn@programming.dev 34 points 2 months ago

Yes, that's actually pretty rare in Hollywood: an actual friendship between a man and a woman, without having to jump the other.

139
D&D honour among thieves (programming.dev)

Well, I finally watched this movie yesterday, with 0 expectations and I actually enjoyed it. I'm surprised to learn it jas >90% score on Rotten Tomatoes as I wouldn't rate it that high, but I found it very compelling; I was actually looking forward to how they would come out of those bad situations this time. Characters were strangely well developed with backstory that didn't make my eyes roll. Sure, not original, but well told. I was expecting a Netflix movie type (dull and somewhat boring) and ended up with a good pic. Hoping for a sequel.

23

... and found it incredibly addicting. It's my first attempt at playing an ATC game and I keep coming back to it. I looked around for modern alternatives, but they seem a bit too complicated for my tastes. KA hits the sweet spot, because it's very simple to learn (almost "arcadey") and yet though to play. I wasn't expecting it. Was it popular back in the day?

[-] Blackthorn@programming.dev 6 points 1 year ago

Personally, I mostly use neovim, both at home and at work. My reasons are:

  1. I hate any kind of screen cluttering. The minimap comes straight from hell.
  2. it's very responsive. I don't even bother using language servers as they occasionally introduce micro delays that I hate.
  3. it helps me in organizing the code better. No minimap means I keep the file size manageable, not seeing the definition of the function straight away means I keep the static complexity of the code in check (tend to reduce the number of delegates). It doesn't help when I have to read cose from legacy codebase, but I don't care too much about that.
[-] Blackthorn@programming.dev 6 points 1 year ago

"intuitive" is extremely subjective, and based on your past experiences. I've coded in C++ for years, and some Python, too and was able to grasp many Rust concepts very quickly, while for others I struggled (and still am). I'd say that if you are looking for "intuitive", Rust ain't it. It's a system language, so it requires planning, it's definitely not the ideal language to slap a prototype quickly together, expecially as a beginner.

103
Let's talk about Zig (programming.dev)

I have been reading about this new language for a while. It's a C competitor, very slim language with very interesting choices, like supporting cross platform compilation out of the box, supports compiling C/C++ code (and can be used as a drop in replacement for C) to the point in can be used as replacement of (c)make and executables are very small.

But, like all languages, adoption is what makes the difference. And we don't know how it goes.

Is anyone actually using Zig right now? Any thoughts?

[-] Blackthorn@programming.dev 9 points 1 year ago

I salute the author of this for drawing a CRT monitor.

[-] Blackthorn@programming.dev 14 points 1 year ago

I wouldn't say it's a new LinkedIn, but it's definitely a defacto monopolio. It pains be that Cargo (the official rust packaging system) is so integrated with it. My own personal hobby projects are self-hosted on a gittea instance right now, but I still have a github account to contribute to a friend of mine's project which is, sadly, hosted there.

[-] Blackthorn@programming.dev 13 points 1 year ago

Follow up of: "Mmm... should I put lifecycle annotation in these 10 structs or just use and Rc and call it a day?". Rc and Box FTW.

view more: next ›

Blackthorn

joined 1 year ago