News for hackers. Stuff that matters.

eismcc

Re:l: A new runtime for k and q on Tuesday July 07, 2026 @09:57PM (#48826563)
If this kind of thing interests you, you can try KlongPy (based on Klong) which also now has backprop support making it a differential array language.
Re:Ask HN: What Are You Working On? (February 2026) on Sunday February 08, 2026 @08:45PM (#46940634)
I added autograd support to the KlongPy array language. It’s been fun to integrate PyTorch and come up with new examples.

https://klongpy.org

Show HN: KlongPy array language now supports autograd

http://www.klongpy.org/

Hello HN!I had some free time so I have been upgrading KlongPy.KlongPy now supports PyTorch as a backend and autograd over the array language.A while back someone on HN thought it would be cool to have Klong support autograd and I also thought that would be cool.There's a lot of examples in https://github.com/briangu/klongpy/tree/main/examples/autogr...but here's a taste:f::{x^2} :"...

( Read More... | no comments | on HN )
Re:Zork: The Great Inner Workings (2020) on Monday January 20, 2025 @02:05PM (#42771910)
You may want to look into the nintendo zelda chemistry engine
Re:A Marriage Proposal Spoken in Office Jargon on Wednesday January 15, 2025 @02:12PM (#42715590)
I’m ded
Re:KlongPy: High-Performance Array Programming in Python on Tuesday December 03, 2024 @03:08PM (#42310708)
Not yet. I want to make an online book.
Re:KlongPy: High-Performance Array Programming in Python on Monday December 02, 2024 @08:20PM (#42302132)
I don’t use windows so not sure.
Re:KlongPy: High-Performance Array Programming in Python on Monday December 02, 2024 @08:10PM (#42302096)
Numpy is just the backend and KlongPy has a lot more application features than Numpy. You can see something like kdb+ as inspiration.
Re:KlongPy: High-Performance Array Programming in Python on Monday December 02, 2024 @12:55PM (#42298562)
KlongPy has a lot of other features beyond pure NumPy operations (such as IPC and web server), which you could see as a kind of making use of array operations in some application. You could look at the core Klong language as what you suggest.
Re:KlongPy: High-Performance Array Programming in Python on Monday December 02, 2024 @12:34PM (#42298357)
KlongPy author here: AMA
Re:Ask HN: What are you working on (September 2024)? on Monday September 30, 2024 @08:32AM (#41696419)
Working on WaddleML, and open source variant of weights and balances that uses DuckDb.

https://github.com/briangu/waddleml

Re:The future of kdb+? on Saturday August 03, 2024 @12:26PM (#41147532)
You can do realtime in the sense that you can build Numpy arrays in memory from realtime data and then use these as columns in DuckDb. This is approach I took when designing KlongPy to interop array operations with DuckDb.
I recall that Richard Hamming used to also reserve Friday afternoons to deep/big thinking. Sounds wonderful.
Re:Connection Machine Lisp (1986) on Friday June 21, 2024 @08:22PM (#40755163)
Steve Omohundro was one of the main authors of starlisp.
Re:Flowers for Algernon (1965) [pdf] on Monday March 11, 2024 @09:43AM (#39668143)
After my class read this book in high school, we wrote the author and he responded. How often does that happen in today’s schools?
Re:Bare minimum atw-style K interpreter for learning purposes on Wednesday January 17, 2024 @09:37PM (#39036872)
Thanks the insights. Not to over do self promotion, but aside from learning, the main reason I made KlongPy was to allow for optionality with the ecosystem. Use Klong for array operations and other libraries for standard stuff.
Re:Bare minimum atw-style K interpreter for learning purposes on Wednesday January 17, 2024 @04:03PM (#39033419)
shakti has GPU support now, i believe.
Re:Bare minimum atw-style K interpreter for learning purposes on Wednesday January 17, 2024 @03:32PM (#39033038)
Arthur Whitney is showing how to build an array language using C in array language form.

AW is known for kdb+ which is often used in finance due to its extreme performance properties and ability for quants to quickly explore ideas.

Personally, to get a better handle on how array languages worked, I implemented KlongPy which is a python implementation of Klong, which descends from K (which AW wrote).

You have to play with this stuff to understand it intuitively.

Re:Thinking in an Array Language on Saturday January 13, 2024 @02:38PM (#38983693)
In KlongPy, dot product is: dot::{+/x*y}

    P::[2 3 4]
    Q::[1 0 2]
    dot(P;Q)
Re:k on pdp11 on Thursday January 11, 2024 @12:13PM (#38955191)
Just gonna say, this is why i wrote KlongPy - an array language in Python that lets you interop with Python while also getting some array lang. efficiencies. Klong isn't as smooth as K, but it's still quite useful.
Re:k on pdp11 on Monday January 08, 2024 @01:50PM (#38916345)
Judging by the google group, they are in early development phase and are onboarding their first customer.
Re:Origins of J on Thursday January 04, 2024 @12:01PM (#38869379)
KlongPy sits on NumPy so gets pretty far. For some features, it’s still early days.

Http://klongpy.org

Re:Python, C, Assembly – Faster Cosine Similarity on Tuesday December 19, 2023 @04:34PM (#38701968)
I was mainly surprised how fast NumPy can be if you push it. KlongPy is effectively a NumPy DSL (array language). So vector thinking is natural.
Re:Python, C, Assembly – Faster Cosine Similarity on Tuesday December 19, 2023 @12:41PM (#38698736)
Since NumPy is called out here, I wrote an example in KlongPy which is NumPy backed and got about 1ns/iter on my M2 Studio:

dot::{+/xy};mag::{(+/xx)^0.5};cossim::{dot(x;y)%mag(x)*mag(y)};cd::{1-cossim(x;y)}

https://github.com/briangu/klongpy/blob/main/examples/ml/cos...

Chapel[0] was created, in part to replace MPI in HPC communities. However, MPI remains dominant.

[0] https://chapel-lang.org/

Re:Why ACPI? on Wednesday November 01, 2023 @02:28PM (#38102711)
I worked on windows kernel team and my first real projects were ACPI 1 and 2 implementation. It's been a while and ACPI was well on its way when i got there, the story at the time was that huge gaps in BIOS were problem and we need to move it into the kernel. There was also a big push from the industry at the same time to use EFI to allow devices to have a pre-os experience (e.g. play DVDs) and not be dependent upon Windows for those.

Another memory I have for that time was that powermgmt was a big priority. So i suspect the ability for the OS to do that via ACPI was strategic - I wasn't involved in the decision making.

I worked in the windows kernel team and my favorite story about DC is when he basically made x64 happen because he hated Itanium architecture so much. He worked with AMD and basically made it happen while cranking in his corner office.

Older »