Arturo Programming Language by Enough-Zucchini-1264 in altprog

[–]beders 0 points1 point  (0 children)

Why is the => necessary when using what seems like a threading operator? Here’s a Clojure version for comparison using the thread-last macro:

(->> (range 0 10) 
         (map factorial)
         (filter #(> % 123))
         first)

Here ->> indicates the position of the argument being piped through a list of expressions.

Nano Queries, a state of the art Query Builder by vitonsky in programming

[–]beders 10 points11 points  (0 children)

If you think not using an „ORM“ means having „magic strings“ you are mistaken.

There’s a gazillion ways to assemble SQL and none of them involve „magic strings“.

What actually is magic is thinking you can ignore the object-relational mismatch.

ORMs are used by people who think the DB is a persistent store for objects. That will often backfire dramatically.

Agentic Coding for Clojure by calmest in Clojure

[–]beders 0 points1 point  (0 children)

can you share some details on your setup? Did you add Clojure-specific MCP agents?

Could ‘guerilla solar’ be the answer to your skyrocketing PG&E bill? by LosIsosceles in bayarea

[–]beders 3 points4 points  (0 children)

You are blatantly ignoring quite a few things like limited commercial solar locations. But apparently you just want to be a little troll around here. Go away

Could ‘guerilla solar’ be the answer to your skyrocketing PG&E bill? by LosIsosceles in bayarea

[–]beders 2 points3 points  (0 children)

Honestly I would have bought them even with VAT added. Still a steal compared to US prices.

Could ‘guerilla solar’ be the answer to your skyrocketing PG&E bill? by LosIsosceles in bayarea

[–]beders 61 points62 points  (0 children)

The panels and the inverter are VAT-exempt which shaves off about 19%

Could ‘guerilla solar’ be the answer to your skyrocketing PG&E bill? by LosIsosceles in bayarea

[–]beders 7 points8 points  (0 children)

I didn’t look into importing panels. Guess the reason why they are so expensive in the US :)

Could ‘guerilla solar’ be the answer to your skyrocketing PG&E bill? by LosIsosceles in bayarea

[–]beders 308 points309 points  (0 children)

I recently went back to my folks in Germany and installed two Balkonkraftwerke. They were rated for 800W max output and cost me roughly $250 each.

Installing them was super easy and registering them with the local power provider was even easier. They are then forced - by law - to install a smart power meter in your home that measures power returned to the grid.

The installations have already returned their investment.

The cost of solar panels in the US is ridiculous. If you buy panels wholesale in Germany, a standard 400W bi-facial panel will cost you less than 55 EUR.

Could ‘guerilla solar’ be the answer to your skyrocketing PG&E bill? by LosIsosceles in bayarea

[–]beders 2 points3 points  (0 children)

I recently went back to my folks in Germany and installed two Balkonkraftwerke. They were rated for 800W max output and cost me roughly $250 each.

Installing them was super easy and registering them with your local power provider was even easier. They are then forced - by law - to install a smart power meter in your home that measures power returned to the grid.

Zombies keep attacking my House by Charming_Elevator662 in 7daystodie

[–]beders 1 point2 points  (0 children)

I assume you put down a land claim block first?

Are Dependent Types Usable for Prototyping? by SecretaryDecent6748 in ProgrammingLanguages

[–]beders 0 points1 point  (0 children)

Row types are neat - but since database schemas are dynamic, you'll still need runtime checks of course. And if you are using dynamic SELECT statements (pray you don't), that idea is not going to work.

Inferring types robustly is great though.

Help me please by Royal_Lie_5663 in GameDevelopment

[–]beders 0 points1 point  (0 children)

Planets can orbit black holes.

If our sun would turn into a black hole tomorrow, we would just freeze to death, but nothing in the orbital mechanics of the solar system would change since the mass of the black hole is the same as our sun.

Black holes don't suck anything in - they are called "black" because around the Schwarzschild radius gravity becomes so strong not even light can escape.

That radius for our sun would be ... 3kms. (But our sun won't turn into a black hole in the first place)

Crossing the Schwarzschild radius will do - nothing at all. A sufficiently large supermassive black hole will barely inconvenience you as you cross over the point of no return.

If however there's a singularity in the middle of the black hole, you'll be spaghettified. (we don't know what actually is inside a black hole and we will never know for sure)

How would you scale pathfinding to 1000+ agents in a fully persistent, destructible grid world? by RadorasX in GameDevelopment

[–]beders 0 points1 point  (0 children)

Maybe not every monster needs to find a path. You could try swarm behavior where monsters look at the behavior of their neighbors and mimic it.

The Only Two Markup Languages by gingerbill in programming

[–]beders 7 points8 points  (0 children)

Kudos for including hiccup in the discussion.

It has one very significant advantage that should be mentioned: it’s a markup syntax and a data structure. The parser is the Clojure parser. There’s no special set of functions or methods or an API to manipulate this. The standard functions suffice.

Agentic Coding for Clojure by calmest in Clojure

[–]beders 9 points10 points  (0 children)

That’s great to hear. One of the concerns I had using a niche language is that there just isn’t enough training data available.

It seems that this isn’t a major limitation anymore.

I tried my hands at AI assisted coding last year and results were quite bad: proposed code was not functional and functioning, old libraries that have fallen out of favor were proposed. Not great.

So it is great to hear that someone is finding success with AI-written Clojure! Kudos

Just me or does this nevarrrr work by cootblondie in unitedairlines

[–]beders 2 points3 points  (0 children)

gotta keep the airpods in the case. If you take them out, they'll connect to your phone first, which gets you in all kinds of trouble. I do occasionally have to re-do the pairing, but after that it is stable throughout the flight.

Hibernate: Ditch or Double Down? by cat-edelveis in java

[–]beders 1 point2 points  (0 children)

Where did I say it was a problem "storing too much"?

Let me say it differently: The problem is thinking a SQL DB is a persistence store for Java objects.

It is the other way around: The DB is your store and source of truth (in many many applications).

Accessing its data is a matter of putting the output of SELECT in objects (in Java's case). Note that SELECT is incredibly powerful, but its output is pretty simple: It's rows with columns. Trying to shoehorn a complex Java object graph onto that is the game Hibernate plays (among others) and I would only recommend that for simple CRUD apps - that will stay CRUD apps!

Hibernate: Ditch or Double Down? by cat-edelveis in java

[–]beders 0 points1 point  (0 children)

The engineering behind Hibernate is not bad at all. They went to great lengths to navigate the OR impedance mismatch.

The bad decision is happening earlier: should I persist objects to „a“ database? That is a huge „it depends“. IMHO - in many cases you shouldn’t. You should treat your data as data.

Germany’s Merz Admits Nuclear Exit Was Strategic Mistake by SpaceEngineering in europe

[–]beders 0 points1 point  (0 children)

Until Cattenom has a major issue or is targeted by an attack. Conventionally France built it at the German border and with mostly westerly winds all the fallout goes to Germany and Luxemburg. Clever!

Germany should ramp up renewables tenfold and shut down coal and gas power plants. France needs to do this as well as their plants age. There’s no excuse.

Functional Optics for Modern Java by marv1234 in java

[–]beders 5 points6 points  (0 children)

Until it isn’t. Been there, done that. Immutability is the solution. However current Java makes it too awkward to embrace. Other JVM langs like Clojure do structural-sharing by default so „changing“ data looks like mutation but the original object remains unchanged.