I can't use new reddit - old reddit lets me disable infinite scroll
I think all major platforms should have an option to disable infinite scroll
Otherwise I look up and its 3 hours later
HN user
I can't use new reddit - old reddit lets me disable infinite scroll
I think all major platforms should have an option to disable infinite scroll
Otherwise I look up and its 3 hours later
As a profession we need to phase out point in time debuggers and replace them with reverse debuggers or "time travel" debuggers
I think there's a lot of interesting things to the side of development that don't get the resources they deserve
Debuggers, testing techniques, testing layers
Essentially things that could be used to ground your ai back to reality and work good for humans too
defaults are a different thing to nil punning
So nil will have had special consideration in Clojure core functions
That doesn't mean it doesn't crash either it will absolutely be unhappy with nils in your math
nil is usually unexpected in test outputs or at the very least an unhappy path
In terms of debugging that's why I can't quit this language flowstorm let's me visually step through what happened line by line, backwards, forwards, programmatically - whatever
Languages should be competing against each other by their best time travel debugger it just completely removes the need for guesswork
Well it is possible - you can add a user macro that calls into clj-kondo (or anything actually) to check your codebase on compile
It just doesn't make much sense to do - most modern developers will be running static analysers through LSP or their editor (knowingly or not) continuously on code change so as to see those errors quicker than re-compiling the program
This is a case I never really thought about - if the key is missing today you'll get nil as the value and since Clojure is a nil punning language it usually does sensible behaviour in your program
I know this sounds unreliable but in practise I like a language that defaults to pragmatic code paths so I don't have to stay up at night imagining a million code paths
This adds a throwing codepath which is quite drastic so I'm glad people don't build this into programs everywhere - I'd be nice to hear what the team imagine as the use case for this
Normally for correctness I'd like to see specs at the boundaries for programs and different test suites for internal behaviours
I wouldn't be surprised if it's the glyphosate
We need to get back to regenerative farming that already has time proven solutions for weeds (ok maybe not the same yield straight away but at least its sustainable)
If your soil is just a chemical laden dust bowl then there are 2nd and 3 order effects from that
Yes though they're trying to be effectively the same lisp
I do love that I learnt Clojure once like 5-7 years ago and more and more dialects keep expanding the choice of runtime I can target
Narcissistic abuse usually happens in a way that the victim cannot point at one event to prove the abuse It's usually a context dependant aggregation of actions
Like a vampire taking thousands of bites the vampire hides the bites by refusing to be accountable and biting just enough to be under the tolerance of the victim
I would assume it's important to know what's in that training set too
Because I get reliable generation out of "niche" languages already
Is it code with lots of SQL injections used in a different domain to your own?
It's maybe not good to conflate quantity with quality
Personally I moved from typed functional languages to Clojurescript and then Clojure around 10 years ago
Most serious Clojure code bases I'm aware of invest heavily in their test suite so yes you can just add a skill to your AI that tells it the most effective way to use your test suite then send it to the races
Some of my colleagues let the agent interact with the REPL and they report faster performance because the agent is not paying the start up cost on every interaction, personally I've been lazy there its fast enough for me
As you've hinted at Clojure does have less bits that get in the way, everything is true except false and nil, the language does not have order precedence table the core language supports immutable and persistent data structures as default
Everything is an expression nothing is a mixture of operators and expressions map, reduce, filter are built in and expected in normal code
Code you wrote 10 years ago in Clojure will likely still work today the ecosystem and language authors treat breaking code as taboo
Of all the languages I've used its the least headache inducing and the most freeing in terms of expressing my ideas
Also the defacto reverse debugger Flowstorm is a programming dream
Its a lovely language if you want to be content
The flip side of that is most users take it for granted and don't talk about it much
There are also a lot of commercial Clojure programmers who do not understand the language and as a result not that happy, they often didn't willing choose it, probably not ready for it, I think most Clojurians should have gone through a decade of noticing things in their other languages they didn't like before using it
Rich Hickey the creator of Clojure does famously influential videos on software but that doesn't mean your colleagues have watched them or care
This is important for JavaScript interop without having to include additional libraries very cool and was missing for a long time
Congratulations on the release :-)
Clojure core has always been highly protected, stable and curated
The downside of that is it's slow and difficult to get changes in
Instead of talking about throwing money to get the contributors to fix what you want it would be better to publicly talk about the problems
Are they tracked or known, what do they stop you from doing, how long have they been in the queue have you had any feedback etc?
Yeah I see this at work - people are sceptical that AI + Clojure even works
but in my experience its amazing the overall quality of Clojure code in the wild tends to be higher than your typical language so AI's training on Clojure tends to be on modern and high quality code and the language is very token efficient, you can also tell AI to interact with the REPL to avoid restarts
The only downside I've seen reported is mis-matched parens but for me models have been strong enough to balance parens for about a year at least it's not something I actively work-around even though there are work-arounds like brepl and others
Looking back Clojure has been the best thing to happen to me in this industry
I doubled my salary using it and changed industries to much more stable industries
I've been to a lot of conferences and meet ups in my career but the feeling of joy and inclusivity at Heart of Clojure was unreal
The community is still alive and well, my favourite passionate sub culture in the Clojure community at the moment is the Jank community, building a Clojure Dialect for low level work an incredible amount of work but they're doing it anyway
The problem is businesses aren't really interested in stability integrity or joy when it comes to their languages they want to commodify their developers by forcing them to write the most popular and replaceable languages possible
Then they're surprised when the quality of developers they're able to hire drops and the quality of their software drops it's all just a race to the bottom - emboldening companies to try and replace developers with AI and destroy their own companies in the process
What surprised me the most in working with Clojure commercially is how many commercial developers did not get the ethos of the language or have watched the rich hickey talks or use the REPL, all they see is restrictions and unfamiliarity I don't know how these people got hired without a passion for the language - lots of them get promoted to run Clojure codebases
As someone who loves the clojure repl I do somewhat agree with debuggers are better
If it was like a choice, Clojure has my favourite reverse debugger flowstorm which also exposes the runtime information of your program programmatically
So you can code cool visual programs against the runtime values of your first program
Like I built an emulator at work that simulates our program in production as a flowstorm plugin then you can step through the program frame by frame
I love taking the guess work out of production issues, just get the computer to show you exactly how everything went down
It's like a rewindable movie made up of thousands or millions of frames of the execution of your program
I won't use new Reddit because of its infinite scroll but old Reddit you have to press next which I find doesn't keep me as addicted
I wish all companies had to provide a non infinite scroll option for their products, YouTube, Facebook, Google, Tiktok
Most people should put in a Google maps entry
Type systems are uncomposable leaning towers
I can't decide to use the PHP type system for some of my program then the Haskell type system elsewhere I can't combine them they're infectious they don't preserve well over the wire
They're often used for more than one purpose suboptimally
I'm either in 100% agreement with the language's type system or I'm unhappy in some aspects and so I'm unhappy with the language
People seem to choose their languages more on the type system than more fundamental aspects of their language
I think what most users want is static analysis and they don't understand how that is different from a type system they just assume you have to have a type system for static analysis
There's also no conversation about how complex a type system should be to support static analysis in fact some type systems are full blown turing complete
I think there's a more interesting conversation to be had around correctness in a collaborative environment that we're not having at large because type systems exist and consume the conversations
So language developers continue finding the perfect one that is a million little choices working together that must be perfect for everyone
It's a itch that will never be satisfied
There are people out there afraid to learn or change and are keen to blame and keep things the same to protect themselves
You can listen to their thought process by asking them if they got their way politically for 15 years what would be better about living in their country
Before we started colonial capitalism there already was total abundance for everyone and for those not born yet
The common lands were for everyone, given a few sheep, vast grasslands and a dog you had self sufficient milk, meat, wool etc
People used to be nomadic with their animals, capitalism doesn't work when there's total abundance so the playbook was to kill the animals, install farms, enforce land rights by force
Only when the workers have no other choice can they be forced into the factories
We could return to abundance if we could get rid of the personality types who require attention and power over the rest of us to temporarily satisfy their narcissistic wounds
Reinstate common lands and bring back self sufficiency, capitalism is a squeezing device, innovation happens despite it not because of it
I am going to continue eating meat and plants but that's because the choice between eating plants or meat misses the point
The issue here is the industrialisation of the land and the shortcuts that farmers are doing that essentially kill the land, animals and plants in a way that is unmaintainable
The way this should work is animals should be herded on to land to eat and poo, once the grasses are nearly eaten the animals should be rotated on to other fields, the new grass regrows in this fresh environment because it has no competitor and plenty of fertiliser this process kills weeds and rejuvenates soil ready for planting
This mimics the nomadic lives that early humans would have led, following their herds of animals to fresh new pastures
Then the farmers worked out they didn't need animals to do this process they could just plow their fields and then that gets rid of the weeds, not quite as good as animals doing it in terms of soil health but effective and quick
Then the farmers were sold weed killers which meant they didn't need to plow their field, they just needed to buy GMO glyphosate resistant seeds and flood their fields with glyphosate, some types of crops are even killed close to harvest with glyphosate so it'll be in your food at high rates for certain crops
The problem with this approach is glyphosate is assumed safe because its mechanism for killing weeds is based on a system we don't directly have as humans, but our gut bacteria do, it also competes with glycine in our bodies used to create proteins, I wouldn't want to drink glyphosate from the bottle but it's being added to my food so effectively I do that
It also degrades the soil quality into dust, instead of being full of earth worms which would normally feed the birds, the local wildlife etc
So these mono culture fields are just turning huge swathe of land into sterile dust bowls that exacerbate climate change
Then these crops are either sold directly to me as a plant eater or given to the animals to make them bulk up and sick
As someone who eats a lot of meat I want my animals to be grass fed (or their natural diet) I don't want them to have to take antibiotics because the farmer needed to bulk them up with cheap glyphosate laced mono culture grains and cereals to get more profit out of the animal
So if you are vegan you cannot just wipe your hands of this problem because you're still contributing by eating these mono crops - What we really need from consumers is for them to care how their plants and animals are raised and not accept glyphosate or other weed killers in their supply chains
Animals should be pasture raised from a moral point of view but also a health and climate point of view
Yeah sorta
I would say Clojure is a big exception to that - Clojure applications tend to be more uniform than even non lisps
The real thing that's changed here is that the US gets no benefit from defending Ukraine or Europe
European politicians need to wake up NATO was really an exercise in helping the US with its proxy wars their support will not be reciprocated
Not with trump and not with his successor
Cars, I nearly got run over as a kid a few times
Now as an adult I'd be worried about cycling around with cars that would hit me in the chest and not the legs on impact
Also cars make it very easy for a stranger to pull up and kidnap, parents subconsciously know that and factor it into their decisions
There was also youth clubs where I grew up and a BMX track and no phones so play was mostly happening outside
Society is going to continue to degrading as long as debts keep increasing
Debts will keep increasing because the only way to create new money is everytime someone gets a loan the bank injects the principle into the economy but then expects interest on top so there will never be enough money in the economy for everyone to pay off all their debts
We'll either get mass debt forgiveness or societal collapse and so far we've opted for societal collapse
Plenty of ways to define complex data shapes in Clojure
Spec is definitely underrated here considering it's built into the language and has a wider scope but for most people they want the intellisense experience which you can get with clj-kondo + mailli but is not built in so most teams don't use it, fair enough
I'd like to move the goal posts though and say I want flowstorm in every (any other?!) language
I can just run the program and scrub backwards and forwards through the execution and look at all the immutable values frame by frame with a high level UI with plenty of search/autocomplete options
For program understanding there's nothing better
The fact I can program against the timeline of values of my program and create custom UI on top is crazy
One of the most mind blowing demos to me was Bret Victor's inventing on principle and having a programmable reverse debugger for your language makes those demos viable
I built an emulator recently for work that replays what happens on live locally, combined with flowstorm I can go line by line and tell you exactly what happened and why, no print statements no reruns with my own custom UI customised to our apps interesting parts
This is my appeal to anyone outside of Clojure please build flowstorm for JavaScript and or Python
The design of flowstorm is definitely helped by the fact that 95% of Clojure programs are immutable but I don't think it's impossible to replicate just very difficult
Yeah I wish variables were immutable by default and everything was an expression
Oh well continues day job as a Clojure programmer that is actively threatened by an obnoxious python take over
So use Clojure Spec or better yet Malli to parse your input data at the edges of your program
Makes sense, I think a lot of developers would want to complect this problem with their runtime type system of choice without considering the set of downsides for the users
The Clojure community tries to achieve long lived applications
It helps that the core language has been incredibly stable
Remember Forbes list is a marketing device
Do not treat it like the real list of world's richest people