HNHacker News
TopNewBestAskShowJobs

travv0

125 karma · joined September 17, 2014

submissionscomments
travv0··on Debugging Lisp (2015)

    * (merge-pathnames nil)

    debugger invoked on a TYPE-ERROR in thread
    #<THREAD "main thread" RUNNING {10010B0523}>:
    The value
        NIL
    is not of type
        (OR (VECTOR CHARACTER) (VECTOR NIL) BASE-STRING PATHNAME SYNONYM-STREAM
            FILE-STREAM)

    when binding PATHNAME

    Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL.

    restarts (invokable by number or by possibly-abbreviated name):
    0: [ABORT] Exit debugger, returning to top level.

    (MERGE-PATHNAMES NIL 4946604 MERGE-PATHNAMES) [external]
    0] :backtrace

    Backtrace for: #<SB-THREAD:THREAD "main thread" RUNNING {10010B0523}>
    0: (MERGE-PATHNAMES NIL 4946604 MERGE-PATHNAMES) [external]
    1: (SB-INT:SIMPLE-EVAL-IN-LEXENV (MERGE-PATHNAMES NIL) #<NULL-LEXENV>)
    2: (EVAL (MERGE-PATHNAMES NIL))
    3: (INTERACTIVE-EVAL (MERGE-PATHNAMES NIL) :EVAL NIL)
    4: (SB-IMPL::REPL-FUN NIL)
    5: ((FLET "LAMBDA0" :IN "SYS:SRC;CODE;TOPLEVEL.LISP"))
    6: (SB-IMPL::%WITH-REBOUND-IO-SYNTAX #<CLOSURE (FLET "LAMBDA0" :IN "SYS:SRC;CODE;TOPLEVEL.LISP") {96F7CB}>)
    7: (SB-IMPL::TOPLEVEL-REPL NIL)
    8: (SB-IMPL::TOPLEVEL-INIT)
    9: ((FLET SB-UNIX::BODY :IN SAVE-LISP-AND-DIE))
    10: ((FLET "WITHOUT-INTERRUPTS-BODY-7" :IN SAVE-LISP-AND-DIE))
    11: ((LABELS SB-IMPL::RESTART-LISP :IN SAVE-LISP-AND-DIE))
    12: ("foreign function: #x43270B")
    13: ("foreign function: #x403F08")

    0]
travv0··on Debugging Lisp (2015)
You didn't post CL's stacktrace.
travv0··on Emacs Symbolic Integration
I use evil-mode as well.
travv0··on Emacs Symbolic Integration
I care that the editor I use has good support for the language I’m writing, so, like I explained in my post, I use Emacs since that’s where the language’s community puts their effort. Also, to address your first sentence, the things I don’t like about Emacs can’t be fixed by writing a bit of elisp.
travv0··on Emacs Symbolic Integration
> "a great operating system, lacking only a decent editor"

That joke seems to imply a perfect understanding that it's more than a text editor. It is, however, referred to as "The Emacs Editor" in its documentation and "an extensible, customizable, free/libre text editor — and more" on its official website, which could lead to some confusion about its primary purpose if that's not editing text. I do begrudgingly use Emacs as my main editor because that's what the communities of the languages I like use, but I do find the editing experience to be sub-par compared to other editors I've worked with, and I find that there are better external alternatives to any of the common elisp applications, barring org-mode.

travv0··on Verified Programming in F*: A Tutorial
I’m not sure what point you’re trying to make with that quote. The languages that F* can be compiled to and the ones it’s written in aren’t relevant to what was being discussed.
travv0··on ShenScript – An Implementation of the Shen Language for JavaScript
That's weird, because I just checked their home page and found this list of features:

        pattern matching,
        lambda calculus consistency,
        macros for defining domain specific languages,
        optional lazy evaluation,
        static type checking based on sequent calculus, one of the most powerful systems for typing in functional programming,
        an integrated fully functional Prolog,
        an inbuilt compiler-compiler,
        has a BSD kernel that runs under a host of different languages (Lisp, Python, Javascript, C ...) and operating systems (Windows, Linux, OS/X),
        is extensively documented in a book
If those don't interest you, there's probably not a reason for you to spend time learning it. I'm not sure what other info you're expecting to find.
travv0··on State of Common Lisp Survey 2020
> You can look at some lisp code and have no idea of what it does if you don't expand a few layers of macros first.

I've not once expanded a macro in order to see what it does. The only reason I can think of that one would do that is to see how it works, but one also has to look at e.g. the definition of a function to see how that function works, and that should almost never be important. How are macros different? Just like functions, one often has to read the documentation to know how to use a macro, but I'm not sure how being a macro makes (loop for i from min to max do ...) harder to read than a function would be.

travv0··on Facebook announces policy changes ahead of 2020 elections
Isn't that how you end up with echo chambers? I think something obviously needs to change, but giving the majority a button to hide posts they don't like from everybody on the site won't lead to more meaningful discussion.
travv0··on The Next Step for Generics
> All generics do is bring back the lack of typesafety and all the manual typechecking that comes with muddying generalizing the parameter typeset.

I'm not sure if I'm misunderstanding you here, but generics are type safe. They're statically checked at compile-time.

travv0··on Ask HN: What is the best way to learn Lisp in 2020?
If we're talking origins of lisp, the original description of lisp[1] spends much of its time describing cons cells, something that clojure lacks completely.

[1] http://www-formal.stanford.edu/jmc/recursive/node4.html

travv0··on Is it time to treat sugar like smoking?
I just finished a month of carnivore and have stopped doing it, as my life had become a living hell from my frequent and urgent trips to the bathroom. Other than that, it was good for my waistline.
travv0··on Japan Begins Experiment of Opening to Immigration
> Having seen how Japanese work I know that the work ethic, reliability and efficiency can not be matched by anybody else on the globe.

You certainly haven't worked in a Japanese office then. It's also strange that you attribute the efficiency of their service industry to the workers being Japanese (though a good chunk of them actually aren't) and not simply to the techniques the workers are trained to use, the efficient layout of the stores, the equipment used, etc.

travv0··on It seems that Google is forgetting the old web
Your DDG link is now the second result in the Google results for me. (One spot higher up than your reply.)
travv0··on The MacBook keyboard fiasco is way worse than Apple thinks
> Snapping windows on the sides is something that have existed for a really long time on other systems.

You can do a side-by-side split of two windows by long-pressing the full-screen button, but it would be nice to have something with a little more versatility out of the box. I used to use a program that let me snap windows to the sides Windows-style, but it got in the way of other gestures and I almost always just want two windows side-by-side anyway so I just use the built-in functionality now.

travv0··on Coc.nvim – Intellisense Engine for Vim8 and Neovim
> But it won't work for all languages, or for all project set ups.

Unlike GDB, right?

travv0··on What Finally Killed AirPower
I'm pretty sure the point is that you are likely picking up the phone to use it, so during that time it's not charging.
travv0··on Duolingo Suddenly Has Over Twice as Much Language Learning Material
> That being said memorization apps can be useful, such as for vocabulary, but I’ve yet to find an app that markets itself as that.

What about Anki?

travv0··on A Gentle Introduction to Rust
Who built a GC?
travv0··on Personal Reason for Hating Facebook (2015)
I've been aware of this for a while but haven't done anything about it, but since you mentioned it I might as well ask: Is there an easy way to block this beacon? Is it something an adblocker would block by default?
travv0··on Vimperator: a Vim-like Firefox
Thanks, not sure how that slipped my mind.
travv0··on Vimperator: a Vim-like Firefox
Serious question: Is there a way to scroll without using the arrow keys, scroll by pages without PgUp/PgDn, etc? I didn't see anything in the links you provided, and those buttons aren't very convenient on most keyboards I've used.
travv0··on You Are Not Paid to Write Code
What problem did you have that the easiest way to solve it was by rewriting grep?
travv0··on Rust and the Future of Systems Programming [video]
> I often use ripgrep on a copy of the rust repo locally to find answers

I mean, that works, but it's a workaround and not a solution.

travv0··on MacBook Pro is a lie
Are you referring to the trackpad with the haptic feedback? That was on last year's models as well.
travv0··on Nyancat on the touchbar
Look down at your functions keys. Surely you can read them just fine without being directly over them?
travv0··on Apple cuts USB-C adapter prices in response to MacBook Pro complaints
Thanks, I stand corrected.
travv0··on One week with the Google Pixel
Fair enough. In regards to the first point, though, you'd already have to carry the cable which I find to be more cumbersome than the plug itself.

I wish he would've elaborated a little more on battery life, as there's a big difference between a phone that barely makes it from morning to night and one that can't quite survive until the night of the second day since charge, both of which would need a daily charging.

travv0··on Programming is boring
I'm the same way. I wouldn't want to go home and do what I do at work, but I love programming things that I choose to program.
travv0··on One week with the Google Pixel
"The Pixel needs charging once a day, which is a little bit of a disappointment, but it charges really quickly."

I'm not sure I understand this negative. I'd think any problems caused by this would be easily remedied by just charging your phone while you're sleeping, when you can't use it anyway.

Or is he saying that it needs to be charged once a day, even if you charge it overnight?

← PreviousPage 3 of 4Next →