HackerLangs
TopNewTrendsCommentsPastAskShowJobs

ivanb

no profile record

Submissions

Pnpm has a new setting to stave off supply chain attacks

pnpm.io
238 points·by ivanb·10 bulan yang lalu·146 comments

comments

ivanb
·2 bulan yang lalu·discuss
Most if not all the terrorist-related deaths are attributed to The Troubles that ended in - you guessed that - 1998. It is not possible to attribute the deaths or lack thereof to corporal punishment.
ivanb
·2 bulan yang lalu·discuss
Regardless of what side you take, time is the judge. It does not care about what you consider right or wrong. It will show which societies will prosper and which will go extinct.
ivanb
·3 bulan yang lalu·discuss
It would be nice to refactor some of these. Vas deferens and laryngeal nerve look like easy pickings. Leave me my ear-wiggling. Any last bit of expression matters.

I'm dreading the horror of genetic manipulation it would open. The gene editing craze feels like it is right around the corner.
ivanb
·3 bulan yang lalu·discuss
Btw I meant quasi-mutations of course. So every quasi-mutation conses. Alright.
ivanb
·3 bulan yang lalu·discuss
Big-O is one thing. Big constant factor, heap fragmentation and cache locality are other useful characteristics of data structures.
ivanb
·3 bulan yang lalu·discuss
Balancing trade-off is crucial in software design. It would be nice if the documentation listed the trade-offs of the structures compared to their native implementations. I imagine at least every mutation is consing? There are also larger fixed and slow-growing overheads in various operations.
ivanb
·4 bulan yang lalu·discuss
Besides, one can easily code a skill+script for detecting the problem and suggesting fixes. In my anecdotal experience it cuts down the number of times dumber models walk in circle trying to balance parens.
ivanb
·4 bulan yang lalu·discuss
This is fantastic! Godspeed.
ivanb
·5 bulan yang lalu·discuss
It is not easy to tell because lparallel's documentation website has rotted away just the same as cl-user.net. Does anyone remember this beautiful wiki of CL libraries?

Anyway, it looks like lparallel is nice and has some very useful concurrency primitives, but it doesn't have lightweight scheduling, unlike Go. So no cheap async work with many open sockets, cheap context switching, better cache utilisation, simple language constructs and mental model for async tasks. Besides, Go has M:N scheduler. It has all these async benefits but in addition all the threading benefits. Such things can only be properly done by the implementation.
ivanb
·5 bulan yang lalu·discuss
>Yes, but that would be a CL violation

Let's be brave and deviate from the standard, preferably in a backward-compatible way, to provide the best achievable DX.

The CL committee, however smart it was, could not think through all the nooks and crannies of the system. Let's continue where they left off and progress.
ivanb
·5 bulan yang lalu·discuss
The same way threads are different from goroutines, green threads, JS event loop etc.
ivanb
·5 bulan yang lalu·discuss
Coalton is nice but it requires a wrapper around every form you feed a REPL or around the whole file.

If on the other hand SBCL had a more powerful type system or extension points for a pluggable type system...
ivanb
·5 bulan yang lalu·discuss
Hijacking the thread, the JetBrains plugin for Common Lisp had not been maintained since 2023. I forked it and vibed it back to life.

You don't need Emacs. Feel free to enjoy Common Lisp in your regular IDE.

https://github.com/ivanbulanov/SLT/releases
ivanb
·5 bulan yang lalu·discuss
It is probably the best Common Lisp compiler when it comes to type checking. However, it leaves a lot to be desired. For example, it cannot specialize an element type for lists. With lists being the go-to structure, if you attempt to (declaim) every function, you will immediately see how vague and insufficient the types come out compared to even Python.

The ability to specialize list parameter types would greatly improve type checking. It would also help the compiler to optimize lists into unboxed arrays.

Please don't tell me that static type checking doesn't lend itself to CL. The ship has sailed. It does work with SBCL rather well, but it can be better.

Some may blame the Common Lisp standard. It indeed doesn't specify a way for list specialization, but the syntax is extensible, so why not make it as a vendor extension, with a CDR? AFAIK CDR was supposed to be to Common Lisp what PEP is to Python.

I would use vectors and arrays, but in CL ergonomics is strongly on the side of lists. For short structures vectors and arrays don't make sense.

I think it is also a time to outgrow the standard and be more brave with extensions. A lot has changed since the standard. It is still very capable, but as powerful as CL is, some things just cannot be practically implemented in the language and have to be a part of the runtime. Yes, I'm talking about async stuff.

So I got the idea to see how difficult it would be to bolt on async runtime to SBCL. To my surprise the project is hosted on awfully slow SourceForge and project discussions are still happening on mailing lists. Sorry, but I am too corrupted by GitHub's convenience.
ivanb
·5 bulan yang lalu·discuss
That explains why Opus was so dumb yesterday. It walked in circles on tasks it used to one-shot. With these companies and services you never know what product you are actually getting regardless what is said on the tin.
ivanb
·5 bulan yang lalu·discuss
We all can google. Have you tried to install the plugin? It doesn't support the current version of the IDE and as the last commit was 8 months ago there is no hope it will get such a support soon.
ivanb
·5 bulan yang lalu·discuss
One thing this specific feature was letting me do is seeing when Claude Code takes a wrong turn, read a wrong memory MD file. I used to immediately interrupt and correct its course. Now it is more opaque and there is less of a hint at CC's reasoning.
ivanb
·6 bulan yang lalu·discuss
That 500x313 screenshot of the desktop does not help any argument.
ivanb
·6 bulan yang lalu·discuss
It will be mine as well but only because consumer agentic AI became available and good. Only it makes all quirks and hardware incompatibilities bearable. I tell it to investigate the problem and it does an incredible amount of digging to help find the cause and eventually, after several iteration, either fix it or implement a good enough crutch. Even then it takes minutes to hours and I would take months.
ivanb
·7 bulan yang lalu·discuss
What's is the deal with Linux and suspend? It seems only a select few combinations of hardware and software can handle suspend and resume. AMD is commonly praised for their Linux drivers but my all-AMD system crumbles down on power state transitions and especially suspend-resume. I never though words "data", "fabric", "sync" and "flood" can be used together, but now they are a common sight in my logs.