[-] colonial@lemmy.world 33 points 5 months ago

> online gambling

Cry harder

[-] colonial@lemmy.world 38 points 7 months ago

Oof. Looks like this affected some other languages as well - somebody at Microsoft needs to up their documentation game, methinks.

[-] colonial@lemmy.world 60 points 8 months ago* (last edited 8 months ago)

I understand the sentiment, but... HTML and some light CSS is just as fast and much more accessible. It just strikes me as something that defines itself in opposition to "thing everyone uses" for no good reason.

[-] colonial@lemmy.world 42 points 1 year ago* (last edited 1 year ago)

Most of the more exotic colors (such as green) are caused by various optical tricks.

Physically speaking, all true stars are roughly one of these colors:

  • Red
  • Orange
  • Yellow
  • White
  • Blue

The exact color of a star depends on its size/temperature. Red stars are the coolest, while blue stars are the hottest.

[-] colonial@lemmy.world 30 points 1 year ago

After all, the discipline has always been about more than just learning the ropes of Python and C++. Identifying patterns and piecing them together is its essence.

Ironic, considering LLMs can't fucking do that. All they do is hallucinate the statistically likely answer to your prompt, with some noise thrown in. That works... okay at small scales (but even then, I've seen it produce some hideously unsound C functions) and completely falls apart once you increase the scope.

Short of true AGI, automatically generating huge chunks of your code will never end well. (See this video for a non-AI example. I give it two years tops before we see it happen with GPT.)

Also... not hating on English majors, but the author has no idea what they're talking about and is just regurgitating AI boosterism claims.

[-] colonial@lemmy.world 31 points 1 year ago

After seeing the various forms of black magic Nintendo devs have pulled off with what is essentially decade-old tablet hardware... yeah, fine by me.

[-] colonial@lemmy.world 38 points 1 year ago

In before one of them starts stripping or firewalling the phone-home code. What's Unity gonna do? Valve hasn't signed any contracts with them!

[-] colonial@lemmy.world 32 points 1 year ago

For the sake of your sanity, I hope there's a resolution to this that doesn't involve a rewrite.

[-] colonial@lemmy.world 44 points 1 year ago

I installed an optimized textures mod and instantly improved my performance by like... 20 frames, maybe more.

I have an RX 6600 XT that can run Cyberpunk on high no problem. C'mon Bethesda, the game is really fun, but this is embarrassingly bad optimization.

26
submitted 1 year ago* (last edited 1 year ago) by colonial@lemmy.world to c/programming@programming.dev

Inspired by the comments on this Ars article, I've decided to program my website to "poison the well" when it gets a request from GPTBot.

The intuitive approach is just to generate some HTML like this:

<p>
// Twenty pages of random words
</p>

(I also considered just hardcoding twenty megabytes of "FUCK YOU," but that's a little juvenile for my taste.)

Unfortunately, I'm not very familiar with ML beyond a few basic concepts, so I'm unsure if this would get me the most bang for my buck.

What do you smarter people on Lemmy think?

(I'm aware this won't do much, but I'm petty.)

[-] colonial@lemmy.world 51 points 1 year ago* (last edited 1 year ago)

Cringe. Not everything needs to be offloaded to someone else's computer.

And frankly, why would I pay some sort of fee (which they will eventually charge, even if they don't right now) for the "privilege" of having rustc fight for execution time on a vCPU somewhere in California?

Every day that passes I lean further towards pursuing a career in embedded.

[-] colonial@lemmy.world 36 points 1 year ago* (last edited 1 year ago)

I'm a big fan of Rust.

  • Excellent tooling. The package/build manager (cargo) just works, the compiler's error messaging is simply unmatched and the IDE story is excellent thanks to rust-analyzer.
  • Rich ecosystem. There's a crate for almost anything you could need, and endless piles of learning resources.
  • You get the speed and low-level control (if necessary) of C/C++ without all the pain and legacy baggage.
  • The community tends to care a lot about correctness and API design, which is reflected in both the core language and the ecosystem. Rust doesn't try to hide complexity and pretend things are simple (like Go) - instead, it gives you the tools to manage it head-on.
    • Example: if a function can fail, then it returns a Result and you have to explicitly handle the possibility that something went wrong. There's no forgetting a null check and slamming face-first into a NullReferenceException or segfault in some other part of your code.
  • It's expressive. Iterators, generics/traits and other language features make it easy to communicate what's going on to both the machine and other humans. Even the syntax is designed to support this - you can tell a lot just by looking at a function signature.

Obviously it's not all perfect, however.

  • Compile times can drag you down. (rustc is always getting faster, of course, but it'll probably never be as fast as Go or JVM/NET.)
  • It can be difficult to read at times, especially when code starts leaning heavily into generics and lifetime annotations.
  • Speed and control comes at a cost. No garbage collector means that anyone coming from a managed language (which, hello, that was me) is going to have to rewire their brain to deal with lifetimes, ownership and mutability XOR aliasing. You eventually develop an intuition for how to structure your code to play nice with the compiler, but that takes time.
  • New language features can take a long time to be stabilized and released. The advantage is they tend to be baked all the way through from day one, but the slow pace can be infuriating, especially when big ecosystem advancements are hung up on key additions.
[-] colonial@lemmy.world 137 points 1 year ago

Firefox and its derivatives. They're the last free bastion preventing a Chromium monopoly on the browser market, which is hugely important - especially these days with Google's push for Mv3.

199
submitted 1 year ago by colonial@lemmy.world to c/linux@lemmy.ml

I was 11 when I took this screenshot - Ubuntu 14.04 running on my very first (incredibly bad) PC. As I recall, I couldn't install Windows 7 without a DVD drive, and that was out of my budget :p

Pretty sure I had it riced out with the Compiz cube and everything.

6
submitted 1 year ago by colonial@lemmy.world to c/sbubby@lemmy.world

Copying over some of my posts from Reddit, since I'm probably gonna nuke my account.

Originally posted 10/01/2021.

view more: next ›

colonial

joined 1 year ago