Replies

This profile is from a federated server and may be incomplete. Browse more on the original instance.

chrisg, to microsoft
@chrisg@fosstodon.org avatar

to "invest" $3.2bn in in , "drawing on the country's green energy"

When you read that "AI consumes as much energy as a small country", that country is now Sweden.

And this basically means the country's public power infrastructure is being sold out to private interests.

Shit like this makes me livid.

https://fortune.com/europe/2024/06/03/microsoft-invest-3-2-billion-swedish-ai/

chrisg,
@chrisg@fosstodon.org avatar

@numeredevs Money.

gregorni, to programming
@gregorni@fosstodon.org avatar

Somehow the following pseudocode:

if not condition:  
 return;  
do_stuff  

feels much more intuitive to me than

if condition:  
 do_stuff;  

Anyone else feel that way?

#programming #ifStatement

chrisg,
@chrisg@fosstodon.org avatar

@gregorni I feel you - I also appreciate getting the "quick" case out of the way so the complicated branch is not nested.

The reason I don't commit to it consistently is the negation of the condition. It's one thing to read

if !thing.in_use() {
return;
}
// do things with in use thing

and another to read

if !thing.has_been_accessed() {
// wat!?
}

In general, I think simplicity of condition is more important than nesting.

jonny, to random
@jonny@neuromatch.social avatar

facing this conflicting constraints problem where i want to a) make my ebike go very fast, b) maintain plausible proximity to legality, and c) not start a lithium ion battery fire

chrisg,
@chrisg@fosstodon.org avatar

@jonny Blinging out bicycles is so much more fun than blinging out gas guzzlers.

A helmet, a fire extinguisher and you're set.

ekuber, to rust
@ekuber@hachyderm.io avatar

Sometimes I wish that rustc had a database of small breaking changes that affect only a handful of crates, so that we could on the fly patch them going forward. Things like "we now correctly check for lifetimes in assoc types" can technically be a breaking change that affects a handful of crates, but I want to ensure that building a project from today in 15 years doesn't require a compiler tool chain from today.

I guess this is the windows backwards compatibility approach.

chrisg,
@chrisg@fosstodon.org avatar

@ekuber At neo4j I called this the "we got addition wrong" problem.

What if Cypher had a bug that added 1 to every addition? Then users would need to -1 every result. Once we discovered it, it would mean that every codebase that had patched the issue would now be broken even though we fixed the issue.

I would argue that what you describe would be a compiler config, because from the user's perspective it's like a reverse experimental feature.

chrisg,
@chrisg@fosstodon.org avatar

@ekuber That means you put the burden on the user to flag which (now corrected) behaviors they depend on and, as long as they are present in the compiler, the project will keep compiling.

I'm not sure the compiler should know which crates depend on certain behaviors. That feels wrong.

chrisg,
@chrisg@fosstodon.org avatar

@ekuber Editions, in this context, would be collections of "feature flags", right? If so, that would require discipline on both sides. Not a deal breaker, of course, but perhaps a different approach.

baldur, to random
@baldur@toot.cafe avatar

those devs and tech “influencers” who pioneered the technical work of putting “AI” shit in everything everywhere, and are—for the most part—the assholes who enabled our brave new “AI” world by actually figuring out how to make it run, are also going to be the people who get credit for criticising it after the bubble pops, aren’t they?

Everybody will latch onto their vague concerns and ignore the fact that they literally implemented the shit that got smeared everywhere, aren’t they?

chrisg,
@chrisg@fosstodon.org avatar

@baldur The way I'm seeing it play out, the "concerns" they offer are functioning perfectly as the performative response to the criticism that targets them.

That's what propaganda is, isn't it?

chrisg, to random
@chrisg@fosstodon.org avatar

As a DBMS implementor, I have always assumed that a DB transaction should not be bound to a server side construct (a thread or a client connection, but instead should be an identifier that is transparent and transferrable between clients (subject to auth, of course).

So client thread A can start a tx, get a txId, that can be moved to client thread B which can use it to continue the tx.

Is that something useful for users of DBMSs? It's not hard to do, and I don't see many systems doing it.

chrisg,
@chrisg@fosstodon.org avatar

@mykhaylo Excellent point, and I didn't know Datomic calls them that. TIL, thanks.

But yes, the ability to transfer between clients assumes that Txs are reifiable entities, by definition.

And since does functions, the tx would start like:

tx = beginTx();

and tx is the handle, a Glowdust struct that you can return, serialize, inspect and pass around.

Commit is similarly

commit(tx);

and you can have

timestamp(tx), whatever_data(tx) etc

So fully reifiable, by design.

chrisg,
@chrisg@fosstodon.org avatar
jake4480, to random
@jake4480@c.im avatar
chrisg,
@chrisg@fosstodon.org avatar

@jake4480 In that situation, the choices really boil down to either whacking the ostrich skeleton on the head, or having a picnic with it.

And who among us hasn't had a day where you just had to whack an ostrich skeleton on the head?

stfn, to random
@stfn@fosstodon.org avatar

What is an electronics tinkerer worst nightmare?

Soldering Iron Maiden

chrisg,
@chrisg@fosstodon.org avatar

@stfn Spray it with flux, press it on a breadboard, starch it with solder.

Could work. All I need is a full suit of armor.

To try ironing it.

For science.

olafurw, to random
@olafurw@mastodon.social avatar

There's the time that I learned that MySQL, Main Street, San Francisco, German chocolate cake and Gasoline are named after people.

(My Widenius, Charles Main, Samuel German and John Cassell)

https://notes.rolandcrosby.com/posts/unexpectedly-eponymous/

chrisg,
@chrisg@fosstodon.org avatar

@olafurw Monty, one of the creators of MySQL and father to My, named MaxDB and MariaDB after his other two children.

drewdevault, to random
@drewdevault@fosstodon.org avatar

Hm, bit of a long shot, but are there any physicists on here? I have a question: as the universe expands, light traveling through space is redshifted, which means it loses energy. Thermodynamics tells us that energy can't just disappear. Where does that energy go?

chrisg,
@chrisg@fosstodon.org avatar

@drewdevault Not a physicist, but from what I understand, energy is not "conserved" at the space and time scales that redshift happens.

For example:

https://physics.stackexchange.com/questions/1327/hubbles-law-and-conservation-of-energy

drewdevault, to random
@drewdevault@fosstodon.org avatar
chrisg,
@chrisg@fosstodon.org avatar

@drewdevault Don't sign stuff from them, or even talk to them.

chrisg,
@chrisg@fosstodon.org avatar

@drewdevault

Artists are not the only profession being played for fools

@affine @apophis

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • mdbf
  • ngwrru68w68
  • tester
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • DreamBathrooms
  • megavids
  • tacticalgear
  • osvaldo12
  • normalnudes
  • cubers
  • cisconetworking
  • everett
  • GTA5RPClips
  • ethstaker
  • Leos
  • provamag3
  • anitta
  • modclub
  • lostlight
  • All magazines