HNHacker News
TopNewBestAskShowJobs

PuercoPop

1,153 karma · joined April 1, 2012

submissionscomments
PuercoPop··on Experimental browser built in HTML
A similar effort: http://breach.cc/

it uses nodeJS's webkit binding. You can open an inspector on any element of the UI

PuercoPop··on Why Racket? Why Lisp? (2014)
My experience with racket is certainly not one of steep learning curve. Plus it is _thoroughly_ documented. If I had to recommend a Lisp implementation for someone that wants to learn a Lisp it would definitely be Racket as it is easy to install (and works on windows), has great documentation and a super friendly and interesting community.

The only thing I'm not fond of Racket is that compared to CL w/ Slime it feels way less interactive, a step up from Python, but still not CL (nor Smalltalk)

But lets focus on the positive, the OP is highlighting that the trite criticism of non-lispers about parens is bogus.

PuercoPop··on Why Racket? Why Lisp? (2014)
Racket also defaults to immutable cons and you have to require set-car! and friends. But I agree, most Lisps do not impose/favor immutability
PuercoPop··on Mg: an Emacs-like editor in 160 kb
> a mostly complete Emacs experience (sans scripting ...),

That is mostly not like not Emacs? Or did Zwei and other emacsen had the same key bindings as emacs and gnu's readline?

PuercoPop··on John Carmack: “I just dumped the C++ server I wrote for a new one in Racket”
As other have said, Racket is a 'batteries included' scheme. The two things I miss from CL are CLOS (and no, tinyCLOS doesn't count) and loop/format.

Their pattern matching is easier to extend than optima though.

PuercoPop··on CL21: An experimental project redesigning Common Lisp
Looping is still under discussion, check Dan Lentz's comments on the issue: https://github.com/cl21/cl21/issues/18
PuercoPop··on Mezzano, an operating system written in Common Lisp
Yeah it is the same project, it was renamed to avoid clash with another unrelated project.
PuercoPop··on Guy Steele Interviews John McCarthy, Father of Lisp (2009)
Do you have a blog? I'd love to read that post if you write some day.

Although I personally use loop and eschew other iteration constructs I see the point you are getting at, it communicates better the intent.

PuercoPop··on Security: OpenBSD vs. FreeBSD
yes.
PuercoPop··on Is it really 'Complex'? Or did we just make it 'Complicated'? [video]
This appears to be a presentation of part of the work of VPRI[0], you should check it out, they made a whole OS and the (word processor, PDF viewer, Web Browser, etc) in under 20K lines of code. There is more info on: http://www.vpri.org/vp_wiki/index.php/Main_Page

Besides Nile, the parser OMeta is pretty cool to imho.

PuercoPop··on Deconstructing K&R C (2010)
You use ECL[0] o MKCL[1], but don't let snarkyness get in the way of reality.

[0]: http://ecls.sourceforge.net/

[1]: http://common-lisp.net/project/mkcl/

PuercoPop··on Deconstructing K&R C (2010)
It's called safer copy not safe copy.
PuercoPop··on Omniref (YC W15) Is Rap Genius for Code
I view sourcegraph as a better starting point for rap genius for code
PuercoPop··on Woo: Fast HTTP Server in Common Lisp
download AllegroCL if you want a GUI Builder.

SLIMe doesns't have a GUI but is pretty good tooling. has Autocomplete according to symbols available to your image out of the box, xref (who calls function/who setsvariable/etc), a menu for managing threads, an object inspector and much more.

PuercoPop··on Hy – A dialect of Lisp that’s embedded in Python
"Real" List Comprehensions in 24 Lines of Lisp[0]

[0]: http://lisp-univ-etc.blogspot.com/2013/01/real-list-comprehe...

PuercoPop··on Fun with Lisp: Programming the NES (2012)
If one likes the article, as do I, there are couple of cool lisp projects related to the 6502 chip.

Brit Butler has written a 6502 emulator[0] and is now writting a NES emulator in lisp[1]

Henry baker wrote a compiler for a simple lisp named 'comfy' for the 6502 chip which intended to replace it's assembly in emacs lisp[2] which has been ported to common lisp[3]

[0]: https://github.com/redline6561/famiclom

[1]: https://github.com/redline6561/cl-6502

[2]: http://home.pipeline.com/~hbaker1/sigplannotices/sigcol03.pd...

[3]: https://github.com/jaoswald/cl-comfy-6502

PuercoPop··on The Hack Transpiler: Run your Hack project on a PHP5 engine
> It doesn't execute code,

Because if it did, it would be an interpreter.

> or produce anything that is directly executable itself.

My PoV is that the CPU as a interpreter. compilers just translate. It appears to me that you are under the impression that there is something special about machine code, that compilers should generate machine code in order to be one. If that were the case I would disagree. I concur with the OP that transpiler should just be dropped, just use compiler.

PuercoPop··on A fast HTTP request/response parser for Common Lisp
Strings are a simple-array of characters and functions that work sequences work on strings (ej. remove). They are complemented with a some string specific functions like string-equal, string-trim, string-upcase, etc. It has been that way for at least 20 years. It might have been that the site was doing a horrible job at explaining it.
PuercoPop··on A fast HTTP request/response parser for Common Lisp
Why do you think that? Is it because most languages compile to C? That is not the case with most CL implementations. (ej. CL & CCL).

Although I agree that it is generally the case, you can read here[0] for an example where CL would gain an advantage over C compilers. Albeit in an implementation specific way.

[0]: http://www.pvk.ca/Blog/2014/08/16/how-to-define-new-intrinsi...

PuercoPop··on A fast HTTP request/response parser for Common Lisp
Being able to run on the JVM is not a differentiating factor among lisps. Kawa Scheme and ABCL give you access to Java Libraries.

If you ask me the strengths of Clojure that it is built upon abstraction/interfaces (ie. conj instead of cons) and how it manages hygiene while retaining quasiquotes templates leveraging clj's namespaces. But then again you should probably ask a clojurian instead.

PuercoPop··on A fast HTTP request/response parser for Common Lisp
This -> people make social rather than technical decisions

Leo Meyerovich did a study on the social factors that affect language adoption[0]. Vivek Haldar has a highlights the salient points[1]. More info at his site: [2]

[0]: http://lmeyerov.github.io/projects/socioplt/papers/oopsla201...

[1]: http://blog.vivekhaldar.com/post/56972066006/empirical-analy...

[2]: http://lmeyerov.github.io/

PuercoPop··on A fast HTTP request/response parser for Common Lisp
out of curiosity, what did you found horrible about string handling?
PuercoPop··on 1984 v. Brave New World
Life is Struggle.

“Why, suffering is the sole origin of consciousness. Though I did lay it down at the beginning that consciousness is the greatest misfortune for man, yet I know man prizes it and would not give it up for any satisfaction.”[0]

http://dostoyevsky.thefreelibrary.com/Notes-from-the-Undergr...

PuercoPop··on The Future of Emacs, Guile, and Emacs Lisp
the #' in CL and Elisp are not the same. Elisp is a lisp-1 vs CL 'lisp-2'. The only similarity is that #'foo expands too (function foo). In CL (function foo) looks up foo in the function namespace (and iiuc can be omitted where functions are expected) in elisp the function form is like quote except for when byte-compiling. It allows the function to be byte-compiled.
PuercoPop··on Lisp as an alternative to Java (2000) [pdf]
Ruby is far from an 'acceptable' lisp.

The article's first premise of what are lisp's virtues is dead wrong. First Lisp is NOT a functional language. A functional language is one that maintains referential transparency. i.e. where I can replace the reference/variable with its value its semantics are unchanged. Common Lisp is a multi-paradigm language and pervasively uses the the concept of places to setf state. And in a more general lisp sense, macros are opaque to the run-time and directly opposes referential transparency.

His second statement, Ruby gives you 80% of what you need of macros, implies that we know what macros are for. Macros are not a solved problem, you can see Racket is actively researching macros. For example, how does one do meaningful error reporting in macros? And given that macros, generally, are programming at compile time the statement is as analogous to saying we know what we are programming for, a statement I couldn't disagree more with.

The quid of Lisp I would argue is not specifically macros, but its 'meta-circular semantics', that is to say, the capacity of lisp to speak of itself in a meaningful way[0][1]. For example, in C++ we can speak of C++ but not in C++ but in its template language, that is to say a meta language. Lisp is its own meta language. We could also speak of Python in Python, for example express Python's for loop in python[2], except there is now way to replace python's definition of for with my own.

BTW, that doesn't mean Ruby isn't a good language. Lisp is not an idyllic standard from which to measure how good all other languages are. For example, Smalltalk is far from being a Lisp, that doesn't mean it is not good.

[0]: http://home.pipeline.com/~hbaker1/MetaCircular.html

[2]: https://gist.github.com/PuercoPop/9d192f94f88074d06625

[1]: "Informal "design patterns" are only for inexpressive languages. In Lisp, you can always express the "design pattern" formally, through a function or a macro. (...) No half-assed informal descriptions of repetitive patterns needed; if you can actually identify and express a redundancy using English language, you can also code a formal function or macro to get rid of it" — Fare in http://fare.tunes.org/files/fun/fibonacci.lisp

PuercoPop··on A Doom Renderer written in Rust
A similar project, Quake 2 map renderer written with Julia https://github.com/jayschwa/Quake2.jl
PuercoPop··on How RAM Scrapers Work: The Tool Behind the Latest Credit Card Hacks
YES! Paul Chiusano wrote in detail about the fundamental broken model of 'secure transaction' http://pchiusano.blogspot.com/2014/01/an-actually-secure-pay...
PuercoPop··on Planet Emacsen
The emacs style CSS is cool. A friend started to work on a prototype: https://github.com/ronaldpoi/puercoblog?files=1
PuercoPop··on Planet Emacsen
OP Probably wanted to link to the Top post, which is about scheme on android: http://www.blogbyben.com/2014/09/more-scheme-dev-on-android-...
PuercoPop··on Espruino – An open JavaScript microcontroller
We shouldn't conflate the language with the implementation [1]

[1]: http://dept-info.labri.u-bordeaux.fr/~strandh/Teaching/Langa...

← PreviousPage 8 of 12Next →