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 Interview with Robert Virding, Creator of Lisp Flavored Erlang
For those looking to learn the basics of Lisp and macro programming from the 'bare essentials', you might be interested in my "The Order of Symbols", a WIP course I'm developing:

http://busfactor1.ca/bin/eturia/lib/sigil/the-order-of-symbo...

Feedback appreciated.

kruhft··on React Makes You Sad?
No, I don't really, it's just part of my job, unfortunately.
kruhft··on React Makes You Sad?
Unfortunately I'm not looking for a Religion, I'm just looking to get my job done. Too much structure can be just as bad as not enough when it comes to programming.
kruhft··on React Makes You Sad?
Thanks.
kruhft··on React Makes You Sad?
Tried that, couldn't figure out how to get it to work. Still didn't have access to child's state.
kruhft··on React Makes You Sad?
That's what I thought until I actually tried. findDOMNode was the first thing I found and then I thought it would be trivial, but the problems of passing child state up to the parent left me befuddled for days.
kruhft··on React Makes You Sad?
I don't see how a desire for flexibility (hackability) is a weird argument. But I do see why React works this way to keep the hacking to minimum; unfortunately I needed to 'hack' react to do what I was doing and found it's use of readonly variables and state setting and availability during the lifecycle process to be highly frustrating.
kruhft··on React Makes You Sad?
Writing a 'driver' to integrate my low level UI component library to be usable with React. My major issue was the 'rule' that a parent can't access the 'state' of it's children; this turned a 2 hour job into a 3 day job for me just trying to find a way to get access to this state through all of the lifecycle callbacks while instantiating children at the same time.

When asked in #reactjs, they said that if you need access to a child's state you should put it into the parent, which makes sense but not in my case. There is a natural way of hiding working 'upwards' through the chain, but I can't say I've seen it ever work downwards like in React, and I found that rather frustrating and difficult to work around.

kruhft··on React Makes You Sad?
Just my experience. Obviously not one that's common, but I was also doing something quite a bit different than most people that use it, I'm sure.
kruhft··on React Makes You Sad?
I've just started playing with React and my general opinion is that it's a very 'Facebook' project. Lots of restrictions on what you can do and when keeping all of the coders in line with what you're supposed to be doing and following the 'Facebook' way of programming. I'm sure it's great for writing traditional crud apps, but anything outside of the box that it wasn't intended is a major pain requiring major hacks just to get around it's ideas of data protection and timing.

I'm sure there are plenty that like this rigidity, but for me, I'll pass.

kruhft··on MentalHealthError: an exception occurred
This is an interesting read on the difference of views between the Western and African views of 'mental illness' from an African (Witch) Doctor after visiting some western mental hospitals:

    http://www.wakingtimes.com/2014/08/22/shaman-sees-mental-hospital/
tl;dr: Most of what we view as mental illness they view as the birth or awakening of a 'healer' and should be treated that way for proper acceptance of the person into society and eventual recoverey.
kruhft··on The Lisp Curse (2011)
Thanks for the explanation. Never really thought of it that way.
kruhft··on The Lisp Curse (2011)
Yes, they learn the second syntax from birth. There have been arguments to teach the lisp syntax in mathematics due to it being easier to understand with multiple arguments:

    (+ x y z a) instead of (x + y + z + a)
Also, there are no order of operations problems with the lisp syntax like there are with traditional mathematical notation (unless you use parens, which makes it look even more lispy).
kruhft··on The Lisp Curse (2011)
Here's a good wiki on the topic:

http://c2.com/cgi/wiki?LispLacksVisualCues

After a brief period of usage 'the parens disappear' and you just read the code by indentation.

kruhft··on The Lisp Curse (2011)
> If you mean Lisp as a straightforward expression of "Lambda calculus, then I would agree.

That's what I was talking about. The language, being programmable, especially with read macros, can be used to create a very syntactically full language, but at it's basic core level, there is really just '(', ')', '.' and symbols.

kruhft··on The Lisp Curse (2011)
Really, the major difference syntactically is:

   (f x)
vs.

   f(x)
I've never really understood why people seem to have such a hard time with that.
kruhft··on The Lisp Curse (2011)
Yes, sometimes 'car' and 'cdr' are replaced with 'first' and 'rest' and are some of the first things you cover when learning the language, so I don't think the names would really be hindering adoption for those that try to learn the language. The benefits of car and cdr are that they can be composed: (caadr l) instead of (car (car (cdr l))) for example.
kruhft··on The Lisp Curse (2011)
Thanks. I wrote it myself. I just put out a new album yesterday:

    http://kruhft.bandcamp.com/album/listener
kruhft··on The Lisp Curse (2011)
For those that are interested, here's some livecoding streams of me developing and working in a Lisp I'm developing Sigil:

https://www.livecoding.tv/burtonsamograd/videos/

See the 'building a language' parts for actual lisp programming, the rest is JS webdev.

Sigil is a minimal lisp with only the basic primitives (cons, car, cdr, cond, null, atom, lambda and a few others) and macros. The project is an experiment in building a lisp from the axioms and seeing how far one can go without having to add to the underlying lisp implementation (which is in javascript).

kruhft··on The Lisp Curse (2011)
> I think the challenge with mainstream adoption of both Lisp-like and functional languages is the syntax

Ironic(?) considering there is almost no syntax to Lisp.

kruhft··on The Lisp Curse (2011)
The underlying 'functional assembly' VM language of Urbit (Nock) is a lisp that works on arbitrarily large integers. Here's a compiler for it I wrote a while ago, written in Common Lisp:

https://gist.github.com/burtonsamograd/29103c2dfaa67f4fd344

kruhft··on The Lisp Curse (2011)
Common Lisp has an optional type system and many compilers have excellent type inference engines for optimization.
kruhft··on The Lisp Curse (2011)
emacs (mostly)
kruhft··on Facebook Reactions, the Redesigned Like Button, Is Here
"In the end the whole notion of goodness and badness will be covered by only six words" - Syme, 1984
kruhft··on Windows Now Showing Full-Screen Ads
I remember that process used to be called 'deboning' the magazine.
kruhft··on Ketamine’s effect bolsters a new theory of mental illness
Most (illegal) drugs are a wonder-drug for depression.

At least until they wear off.

kruhft··on Animated icons in email subject lines
Nothing says 'spam' like...
kruhft··on The Traveling Salesman with Simulated Annealing, R, and Shiny
I would assume so that this algorithm could be solved using a DWave with it's supposed 10^8 speedup if successful?
kruhft··on The sad economics of being famous on the internet
If only there was a way to cash in our imaginary internet points.
kruhft··on Why ML/OCaml are good for writing compilers (1998)
A (classic?) book on writing compilers with ML:

http://www.amazon.com/Compiling-Continuations-Andrew-W-Appel...

← PreviousPage 12 of 21Next →