HNHacker News
TopNewBestAskShowJobs

kruhft

1,034 karma · joined April 7, 2011

Artist, musician, meta-linguist, and Lisp hacker.

Email: kruhft@gmail.com

https://www.github.com/scarlet31.github.io

submissionscomments
kruhft··on Introducing the 'waves' Audio Synthesizer Written in Common Lisp
Named parameters how? The building blocks are so simple (ramp, sine and envelope) that they stick in my head pretty easily.
kruhft··on Introducing 'waves': a Common Lisp audio synthesizer
Sorry about that, must have been a copy paste error; here's the real link:

http://busfactor1.ca/kruhft

kruhft··on Introducing 'waves': a Common Lisp audio synthesizer
http://busfactor1.ca/kruhft
kruhft··on XMonad 0.13 released
It's not strictly tiling, but 9wm, based on Plan9's rio window manager, is a no frills, mouse oriented, window manager for X.
kruhft··on Building a Lisp from scratch with Swift
Cool. That's one of the biggest pains I've found with implementing a lisp in a typed language.
kruhft··on Building a Lisp from scratch with Swift
Can you type declare the fact that NIL is both a list and an atom in Swift?
kruhft··on LCFS: A New Container Filesystem for Modern Datacenters
Yes, I forgot to put in -xdev, but what's wrong with ln -f?
kruhft··on LCFS: A New Container Filesystem for Modern Datacenters
Good point. This is for data that's not in use.
kruhft··on LCFS: A New Container Filesystem for Modern Datacenters
Here's a quick one if your filesystem supports hard links:

    #!/bin/ksh

    typeset -A hashes

    find . -type f  -exec shasum -a 512 {} \; |
        while read hash filename; do
            if [[ -z ${hashes[$hash]} ]]; then
                hashes[$hash]="$filename"
            else
                echo ln -f "'${hashes[$hash]}'"  "'$filename'"
            fi
        done
Pipe to /bin/sh if you're happy with the results.
kruhft··on Rsa.lisp – An Implementation of the RSA Encryption Algorithm in Common Lisp
This is mean to be a simple and straightforward implementation of the RSA encryption algorithm in Common Lisp.

Review would be greatly appreciated.

This code does not solve the key exchange problem or do any transport.

kruhft··on Chrome will aggressively throttle background tabs
How appropriate the day after finding the Task Manger in Chrome for the first time yesterday. Finally got my fan to turn off on my laptop.
kruhft··on Nicotine Normalizes Brain Activity Deficits That Are Key to Schizophrenia
> blind people are never Schizophrenic

That is an interesting observation. Do you have a source?

kruhft··on Solaris 12 removed from Oracle roadmap, Solaris 11.next planned as next release
No, the ability for the machine to not crash or need to be rebooted for long periods of time. Linux has gone completely downhill in this respect for the past few years. Switching to Solaris on my main Unix workstation has been a breath of fresh air compared to the constant naggering from Linux systems for updates, but I like old school...because it seems to 'just work'.
kruhft··on Solaris 12 removed from Oracle roadmap, Solaris 11.next planned as next release
Stability.
kruhft··on How Do I Declare a Function Pointer in C?
One of the only reasons I had "The C Programming Language" on my desk when I was a C coder. The only thing I could never remember...
kruhft··on Ask HN: What are your favorite thin websites (text only or limited images)?
www.telehack.com - classic hacking adventure game.
kruhft··on Ask HN: What “old” programming languages will you still be using in 2017?
Common Lisp.
kruhft··on The Origin of CAR and CDR in Lisp (2005)
Thank you for sharing your work. I could see some good use out of it.
kruhft··on The Origin of CAR and CDR in Lisp (2005)
It's not pretty, but it has a consistency to it that includes a lot of compact information in a digestable manner. It takes no longer to decode what the instructions say, but it saves a lot of time parsing, for the human reader of the program.

Compare:

    (caadar x) => (car (car (car (cdr (car x)))))
Saves parens too.
kruhft··on The Origin of CAR and CDR in Lisp (2005)
Good point. Haven't seen that example before.
kruhft··on FreeDOS 1.2
If anybody is interested in some 'current' open source MS-DOS software, I put up my old undergraduate thesis sources from 1997 recently:

    https://github.com/burtonsamograd/xp32
Te repo has a full DJGPP (GCC for DOS) toolchain environment included to build the included sources of the project, so you can just clone and build.

Probably a lot easier to understand and build than the Doom sources.

kruhft··on The Origin of CAR and CDR in Lisp (2005)
car and cdr may not be the best names, but they allowed for composition, like:

    (caar x) == (car (car x))
    (cddar x) == (cdr (cdr (car (x)))
Something which you can't do with first and rest. This has (AFAIK) always been one of the arguments for car and cdr.
kruhft··on Raytracer.el: a raytracer in Emacs Lisp
Unlike NULL (a void* of value 0), nil is an interesting construct in that it's a special cons cell, an element of two pointers, where each cell points to itself. Or that's one way to think of it.
kruhft··on Raytracer.el: a raytracer in Emacs Lisp
At 256 I think about a minute or so...
kruhft··on Raytracer.el: a raytracer in Emacs Lisp
D'oh. Can't even read my own code this morning :) Thanks.
kruhft··on Raytracer.el: a raytracer in Emacs Lisp
To run:

    Open raytracer.el
    M-x eval-buffer
    M-: (ray-test 256)
Output will be in a buffer as well as 'image.pbm'.
kruhft··on Raytracer.el: a raytracer in Emacs Lisp
I get the ACSII part, but what would be the purpose/intent of the 'lazy DAG transformation on eval'?
kruhft··on Raytracer.el: a raytracer in Emacs Lisp
I've also written a GPU tracer using the same style of calculation, and it just blows anything done on the CPU out of the water. It gets about 10fps with 100 spheres on a mid range Mac Pro.
kruhft··on Raytracer.el: a raytracer in Emacs Lisp
It's built to test the JIT but shouldn't depend on it.

To run:

    Open raytracer.el
    M-x eval-buffer
    M-: (ray-test 256)
Output will be in a buffer as well as in 'image.pbm'
kruhft··on Sxc – An s-expression based language source transpiler for C
Thank you. I tried to stay as much with the 'grammar' of C but with the syntax of s-expressions. Whatever came out most naturally as a C programmer was what I used in the S-Expr language.
← PreviousPage 9 of 21Next →