HNHacker News
TopNewBestAskShowJobs

kagevf

261 karma · joined March 12, 2013

Learning Common Lisp along with Parenscript. Day job using C# on asp.net (core). Also dabble in reactjs and F#
submissionscomments
kagevf··on Why did old phone numbers start with letters? (2015)
I vaguely recall there was a Twilight Zone episode that might have used “Klondike” - anybody happen to know which one? I think they picked up the phone, the operator was either already on the line, or they might’ve dialed zero, then requested the number they wanted to call. I just remember it wasn’t completely numeric.

I always had wondered what was going on with that phone number, and I think these comments have pretty much solved the larger mystery, now I’d just like to re-watch that scene again with this new (to me) context.

kagevf··on Why did old phone numbers start with letters? (2015)
So he could have literally earned “FU money”!
kagevf··on Fortran
Common Lisp has complex numbers: https://lispcookbook.github.io/cl-cookbook/numbers.html#comp...

Is stack-free function calling equivalent to tail call optimization? If so, then many CL implementations support it, including SBCL. For Scheme, it’s part of the standard.

kagevf··on CLI text processing with GNU awk
> have it describe step by step what it’s doing

And then building on the original “update the script to do $thing” where $thing isn’t obvious/trivial. It saves a lot of time.

kagevf··on Dining like Darwin: When scientists swallow their subjects (2015)
Just curious - have you tried rabbit, and would you consider it to also be gamey?
kagevf··on Show HN: Going into freshman year, figured I should build an interpreter
Maybe it is on a PDP-11 . . .
kagevf··on Why do cats love tuna so much?
I thought this was true of all mammals, but apparently it’s gill slits that mammal embryos have. I guess the difference is functional vs non-functional . . .
kagevf··on Leaving Haskell behind
> I think the requirement would be purity

Well, yeah, I think if I had instead said "if not static typing, then how would it be possible?" ... I had no idea how it could be done, but with something like purity - by which we mean deterministic functions, right? - I can at least start to see how it would be possible with Scheme.

kagevf··on Leaving Haskell behind
> the experience of code refactors via algebraic manipulation is still possible in other languages, especially in non-pure functional languages like Scheme or SML

Wouldn't "code refactors via algebraic manipulation" require static types? How would this work in Scheme?

kagevf··on Ask HN: Is Lisp Simple?
> (defun <name> (list of arguments) > "docstring" > (function body))

> How do I read this as an s-expression?

It's still a list.

You can re-write it as:

    (let ((my-list '(defun <name> (list of arguments) "docstring" (function body))))
     (print (first my-list))
     (print (second my-list))
     (print (third my-list))
     (print (fourth my-list)))
It will print:

    DEFUN
    <NAME>
    (LIST OF ARGUMENTS)
    "docstring"
If "docstring" appears twice when you run the above, that's because it's the value produced by the final form in the block, so it shows up as the return value of the block.
kagevf··on Ask HN: Is Lisp Simple?
> it's all just lists. Yes, Lisp code is made up of lists.

> But it seems like there are so many special constructs and macros, that make it hard to read.

> (loop for i in '(1 2 3)

Common Lisp is a "programmable programming language" meaning that it's possible to make macros like the loop macro that aren't even what many consider "Lispy" - lots of people who otherwise like Common Lisp dislike the loop macro. But, it's a good example of a DSL and how far you can go with making one. Of course, there are other ways to do iteration besides loop, both standard built-in forms such as do or dolist, and even 3rd party libraries like series or iterate.

Also, when macros are expanded they resolve to lists - even the loop macro.

OTOH, something like MIT Scheme which was used in SICP is a much simpler Lisp compared to CL.

kagevf··on The Bipolar Lisp Programmer (2007)
> "Undefine Function"

That's the key; if you delete a function make sure to undefine it so it's not sticking around in the image.

In slime you can use `C-c C-u` which is bound to FMAKUNBOUND.

kagevf··on My favorite Vim oneliners for text manipulation
Neat! I didn't know # was "backwards" *
kagevf··on My favorite Vim oneliners for text manipulation
I like using `q:` to get at the command history, and recently I realized `ctrl-w _` also works there to get a nearly full screen view of the history!
kagevf··on Netscape and Sun announce JavaScript (1995)
> even if there was no web app to show at that time

Wasn't OWA ("Outlook Web Access") the web app that XMLHttpRequest was made for?

kagevf··on Netscape and Sun announce JavaScript (1995)
That's definitely server side JS, but I thought the person I was replying to meant a web server that was written in JS, but I suppose "powered" could mean that it just runs JS.

I saw that link elsewhere in this thread after my reply, and I also thought that this might have been what was being referred to.

kagevf··on Netscape and Sun announce JavaScript (1995)
I recall a web browser[1] written in /Java/ ... I don't remember any servers using javascript back then.

1. http://www.java.sun.com/products/archive/hotjava/index.html

kagevf··on Perl first commit: a “replacement” for Awk and sed
Cool, I'm in the market for that.
kagevf··on Perl first commit: a “replacement” for Awk and sed
Thank you for mentioning that book - I'm very interested in how perl can replace awk and sed and even grep(!) - I use grep multiple times a day, awk maybe a few times a week, and sed very rarely. I think I'm in the target demographic for this :)
kagevf··on Perl first commit: a “replacement” for Awk and sed
Thank you for the tip re: strict! Escaping - that's definitely a sore point. I feel like I get tripped up by embedded double quotes way too often - does perl have a good way to handle them?
kagevf··on Perl first commit: a “replacement” for Awk and sed
The next time I need awk or sed, whatever I end up writing I’ll submit to chat gpt and ask it to rewrite it in perl so I can compare. I’m curious because so many people (well, enough people anyway) speak so highly of perl’s text processing capabilities. If it’s such a great tool, then I want to use it too.

Edit: one plus is that perl is as ubiquitous as awk and sed. It was there the whole time and I didn’t even realize it!

kagevf··on Why use Pascal?
I think they meant in terms of how the feature was implemented, not the feature itself.
kagevf··on Owner of Symbolics Lisp machines IP is interested in a non-commercial release
> but this didn't really go anywhere.

What about guix? It uses guile ...

kagevf··on Sleeping through the technical interview (2022)
> Just in time for his calendar to fire a reminder that his standup meeting was about to start

Sounds like our universe . . .

I think that universe is better at naming things.

kagevf··on Growing a Language (1998) [video]
Right, CLTL2 doesn't conform to the ansi spec. I just wonder if it's common to read all the way through, or as a reference in addition to CLHS, to maybe get some additional perspective on why a feature is a certain way, etc ...
kagevf··on Growing a Language (1998) [video]
Do you know if it's common to read CLTL2 from front to back, or just use it strictly as a reference?
kagevf··on Turning my hobby into a business made me hate it
Excellent point!
kagevf··on Learn how to design systems at scale and prepare for system design interviews
Or, if you want the candidate to talk about a certain approach, maybe think of some ways you can nudge them in that direction. If something's not at top of mind, some subtle hints from the interviewer could trigger a discussion of what they want to talk about. The interviewer shouldn't be tied to a "script".
kagevf··on Steel Bank Common Lisp
I wanted to get last modified dates from some files, and I tried to use OSICAT-POSIX, but it didn't work because it was missing a non-CL dependency, so I used SB-POSIX instead, and it worked as expected, no issues. I was glad to have that option, and for that particular code, cross-compatibility with other implementations wasn't a concern.
kagevf··on Racket frustrates me
The other day on IRC, someone (pjb) mentioned that clisp is the best CL, so now I'm very curious :)
← PreviousPage 6 of 10Next →