News for hackers. Stuff that matters.

codery

Re:When if is just a function on Monday October 20, 2025 @01:20AM (#45640341)
This looks great, I'm still learning Janet and couldn't write it myself.

I only know about: https://github.com/Engelberg/better-cond in clojure which is different it adds syntax enhancement + control flow convenience.

Similar better-cond can be written in clojure too:

  (defn better-cond [& clauses]
    (fn [& args]
      (some (fn [[pred result]]
              (when (apply pred args)
                (if (fn? result)
                  (apply result args)
                  result)))
            (partition 2 clauses))))
But it's not composable as Janet's version, it will fail when mapped over, because it may return a plain value instead of a callable one. In Janet, all values can naturally participate in higher-order contexts due to its uniform treatment of callables, while in Clojure, only actual functions can be composed or mapped.
"The use of FORTRAN, like the earlier symbolic programming, was very slow to be taken up by the professionals. And this is typical of almost all professional groups. Doctors clearly do not follow the advice they give to others, and they also have a high proportion of drug addicts. Lawyers often do not leave decent wills when they die. Almost all professionals are slow to use their own expertise for their own work. The situation is nicely summarized by the old saying, “The shoe maker’s children go without shoes”. Consider how in the future, when you are a great expert, you will avoid this typical error!"

Richard W. Hamming, “The Art of Doing Science and Engineering”

Today, lawyers delegate many paralegal tasks like document discovery to computers and doctors routinely use machine learning models to help diagnose patients.

So why aren’t we — ostensibly the people writing software — doing more with LLM in our day-to-day?

If you take seriously the idea that LLM will fundamentally change the nature of many occupations in the coming decade, what reason do you have to believe that you’ll be immune from that because you work in software? Looking at the code you’ve been paid to write over the past few years, how much of that can you honestly say is truly novel?

We’re really not as clever as we think we are.

Re:Give your brain time to think and remember on Wednesday May 17, 2023 @11:41AM (#35976913)
I use org-mode timers[1] all the time, here's youtube short[2] on that.

[1]:orgmode.org/manual/Timers.html [2]:youtube.com/shorts/JbHE819kVGQ

Re:Monoliths Are Not Dinosaurs on Saturday May 06, 2023 @03:04AM (#35838887)
Last paragraph about essential and incidental complexity rings my ear about Rich Hickey's "Simple Made Easy" talk.

Talk: https://youtube.com/watch?v=SxdOUGdseq4

Re:Passkeys: The Beginning of the End of the Password on Thursday May 04, 2023 @03:37AM (#35812442)
I wish world (Apple, Google, Microsoft etc.) had implemented SQRL instead of PassKeys :(

SQRL: https://www.grc.com/sqrl/sqrl.htm

Re:Emacs Is on F-Droid on Thursday February 23, 2023 @11:19PM (#34920713)
None of the above permissions are asked by the app, go to settings > apps > emacs > permissions, by default app hasn't requested a single permission!!

All the permissions are set to FALSE. They are there, if any package you install needs that permission, it will be asked to allow such.