Better HN
topnewbestaskshowjobs
Log inSign up

slifin

1,141 karma · joined Dec 4, 2014 (11y ago) · 467 submissions

Submissions

comment 3d ago · link · parent

Rich Hickey's talk from this year:

https://youtu.be/P5eO7BNyJao?si=45zxrLUsY9AMUg6B

I feel like there was not enough fuss about what he showed off this year considering how many programmers (historically myself included) cared about checking/enforcing structure on a potentially nested thing, spec in usage has proved to be good for external boundaries but not great for internals

I remember we used to code something like:

class User { name age username password }

etc all the time but would end up having to make everything optional so that we could use the type hint against the age method and the auth method when we had partial information for the object

Obviously not an optimal design and can be broken down into yet more types and then composed together but I'm not a huge fan of object of object of object type situations — anyway my point is that Rich showed that we can just do the checks in context using deconstructing and in a reusable way rather than trying to declare a type once centrally and then cram that into everything else

I haven't explained it very well — I wanted to do a blog on it but just watch the video its one of the few things I got excited about even though I don't really code directly any more - the sad thing is current LLMs won't even use the technique because its not in their training sets and that still matters I've noticed for what they do

comment 1w ago · link · parent

I hope that doesn't mean the compiler inherits the extra work

I'm considering glojure as an interesting new hobby language to try because it's benchmarks are impressive

If the go compiler ends up bloating itself with checks its static analyser could/should have done it would be a shame

comment 2w ago · link · parent

Clojure's Flowstorm should be the minimal baseline to anything of mild complexity in any language/project

It's the primitive required for Bret Victor's seeing spaces talk and the ideas are still ignored some 15+ years later

comment 1mo ago · link · parent

Millions of people have gone years without fiber intentionally or not

I wouldn't sweat it - just focus on eating unprocessed food fiber or not

comment 1mo ago · link · parent

I love Clojure's Flowstorm, it makes it easy to verify code is doing what you think — all the data is exposed programmatically so you can also create your own GUIS from it or feed it to LLMs so they can have a deep understanding of program behaviour (or you can browse it yourself)

comment 1mo ago · link · parent

I hate that in our industry we refuse to operationalise reverse debuggers

"I never understood the code. You think it works a certain way, until you find out that it doesn't."

Bret Victor made a talk called "seeing spaces" in 2014 that should have woken up this whole industry: https://www.youtube.com/watch?v=klTjiXjqHrQ

He emphasizes that without the ability to see inside what is being built, creators often fall into "non-scientific thinking" (14:42), moving away from deep understanding and instead "blindly following recipes, from superstitions and rules of thumb" (14:47-14:51).

The worse is performance problems I've had engineers say some bizzaro things when discussing performance — we have the tools you can just measure the answer - we don't need to waste our time guessing

comment 1mo ago · link · parent

I think it's perverse that I'm going to spend the rest of my life in a global competition with every other human to survive

It's hard enough to survive but in our world you have to do survive while everyone else is incentivised to take money from you

Life shouldn't just be about efficiencies it should be about things that make us human, sharing and community used to be a big part of that

Like we're geared up for taking but not giving - like petting my dog in the global competition I'm incentivised to give him up he costs me time and money I could be grinding the next facebook

There should be a point of abundance where we reflect on what the point of all this competition is

Because I predict in the end it will be one guy with all money and everyone else in desperation

It's funny/sad that some people have so much capital they could live in absolute abundance, they could light up the lives of an entire country but they're the most robotic and desperate of all of us

As things are at the moment they're our future until we can imagine a world where everyday is not a slow decline into the end stages of a monopoly game

comment 2mo ago · link · parent

I think this is an interesting idea but the non tech parts need fleshing out a bit if only to fire the imagination

The way the title sounds is that they got fired, then they created a new CEO and continued as normal

In reality payroll would be gone, any customer relationships would be with the previous entity would be gone, any capital/fund raising whatever not helpful any more

I'm actually surprised we don't hear more about companies created where AI is the leader - I think over the next year or so when the commercial labs release persistent agents this will be more viable because right now its still very difficult to take seriously due to deficiencies in the models

comment 3mo ago · link · parent

https://github.com/lovrosdu/klor

The authors did a great talk on this in the Heart of Clojure 2024

Still my favourite conference I've ever been to

comment 3mo ago · link · parent

A lot of the poor and middle classes don't understand how a billionaire earning millions of pounds per week in passive income is any problem for them - or where it comes from

1, billion, 2 billion, 100 billion individuals makes no difference to the average person

In fact there's a misguided sense that they earnt that money through work and not rent seeking

But the sad truth of the matter is - the rich are on the other end of your mortgage or indirectly your rent - the other end of that business loan to your favourite coffee shop controls the price of your coffee - you pay them interest directly or indirectly through everything you pay for and they use that money to buy more of the assets you use - they are a massively increasing rent seeking class

Their wealth growth is exponential it compounds on itself some particularly rich people are seeing 40% annual returns and the overall economies wealth growth is 1 or 2%

It's analogous to a black hole things like capital gains tax and income tax mean nothing to these people because they don't sell and they don't have a "working" income because that's not how the ultra rich accumulate wealth

The sad thing is for people on benefits the government look automatically into your personal bank account and track anything coming in - they have built a massively invasive infrastructure to track the poor so they can remove their benefits if they try to earn £5 selling music or selling IT services - but if you're rich the government don't even know how wealthy you are - the government doesn't know how many billionaires there are - let alone any talk of having to tax them - so they get to pay very close to - if not nothing - whilst software engineers (as an example relative to this forum) in the UK get to be the high rate tax payers where 50% or more is taken

Everyone else has to fund their free ride and its absurd - they're the group that need the least support financially

comment 3mo ago · link · parent

Reminds me of https://github.com/lovrosdu/klor

comment 4mo ago · link · parent

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

comment 4mo ago · link · parent

As a profession we need to phase out point in time debuggers and replace them with reverse debuggers or "time travel" debuggers

comment 4mo ago · link · parent

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

comment 4mo ago · link · parent

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

comment 4mo ago · link · parent

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

comment 4mo ago · link · parent

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

comment 4mo ago · link · parent

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

comment 5mo ago · link · parent

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

comment 6mo ago · link · parent

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

comment 6mo ago · link · parent

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

comment 6mo ago · link · parent

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

comment 6mo ago · link · parent

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 :-)

comment 6mo ago · link · parent

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?

comment 7mo ago · link · parent

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

comment 7mo ago · link · parent

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

comment 7mo ago · link · parent

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

comment 8mo ago · link · parent

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

comment 8mo ago · link · parent

Most people should put in a Google maps entry
12345
16