HNHacker News
TopNewBestAskShowJobs

travv0

125 karma · joined September 17, 2014

submissionscomments
travv0··on Java for Everything (2014)
> Btw LISP can be fast as C.

Assuming you're talking about Common Lisp, you definitely need to make heavy use of type declarations and be using a very performant implementation for its speed to be anywhere as fast as C.

travv0··on Am I Doctor Stallman?
Actually, he explicitly states the context:

> in formal situations, in connection with talks, interviews and publications, not in ordinary conversation.

travv0··on Golang: Know Your 'Nil'

    func foo(maybeInt Optional<int>) {
       switch maybeInt {
       case None:
          panic("not so optional!!!!!")
       ...
       }
    }
This function would never take an Optional in real life if it's just going to crash on None so I'm not sure what you're getting at here. The benefit of using Optional/Maybe is that you're encoding at the type level whether it makes sense for a given variable to be able to be nothing, and if it does make sense, the compiler makes sure you check whether it's nothing or not, but this is an example of where that doesn't make sense so the type should just be int instead of Optional<int>.
travv0··on Crystal 1.0 – What to expect
> So... pretty much everything I could do on .net framework runs on Linux and Mac now?

No, which doesn't really matter since we're talking about .NET, not .NET Framework. Poor naming choice by Microsoft I guess.

travv0··on Crystal 1.0 – What to expect
The cross-platform story of .NET hasn't been complicated in a while. It's fully cross-platform between Windows, Linux, and macOS and has been for a few years.

Edit: I just saw the person that you replied to said the same thing, so I'm not sure why you're pushing that it has a complicated cross-platform story.

travv0··on Ask HN: Should I learn C++ in 2021?
And plenty of C++ projects also aren't projects of that size. I'm not sure what that has to do with whether or not OP should learn C++. Should OP not learn C because the Linux kernel is written in it?
travv0··on Ask HN: Should I learn C++ in 2021?
> C++ projects on the other hand can be huge and extremely complex. Think 4 hrs for a clean build, with 10+ people working on the same code base.

I'm not sure what this has to do with the language itself or why you think other languages don't also have large projects written in them.

travv0··on A warning about 5.12-rc1
If you click the link, there's a TL;DR right up at the top, under the title.
travv0··on Go typosquatting package relays info to tech firm
It's worth noting that Haskell has escape hatches for doing IO from outside the IO monad, so that wouldn't exactly solve this problem.
travv0··on Why Learn Haskell? (2018)
What problems have you run into with Stack on Windows?
travv0··on Why Learn Haskell? (2018)
Have you looked into using a heterogeneous map library in Haskell? I haven't used any myself, but a quick search shows that they do at least exist.
travv0··on Mypyc: Compile type-annotated Python to C
Thanks for the example, always good to hear about some real-world experience with this stuff. I'm curious if you think that the rewriting of the system itself also helped improve the situation, as I've found that oftentimes if I rewrite something, I'm able to use what I learned from working on the original iteration to design things a bit more effectively. Not saying that if the initial implementation had been in Python it wouldn't have been better than the Scala one, just curious how much of a difference you think that made.
travv0··on Mypyc: Compile type-annotated Python to C
> The “types do not impede, they help [clarity of thought / program structure / catching many important classes of bugs]” claim is hogwash.

You say this, but then never address this claim in the text below. Could you expand on it?

You also do a lot of conflating typeclasses and OOP concepts like interfaces and inheritance, while those OOP concepts don't have much of anything to do with static typing and exist in object-oriented dynamic languages as well.

The "types prevent you from easily changing things to meet business needs" argument is one I've heard a lot but I'm not familiar with any concrete scenarios where that would be the case. Do you have any examples you can share from your time working with Haskell or Scala?

travv0··on GameStop shares soar more than 100% amid executive shuffle
I got pretty excited when you made me think it was Thursday afternoon.
travv0··on Why Discord is switching from Go to Rust (2020)
So let me get this straight: You don't like Haskell because someone used it to write an inefficient quicksort example online?
travv0··on Drug for treating obesity cuts body weight by 20%
We get it, everybody should be more like you. If only overweight people cared that they were overweight they could just stop overeating.
travv0··on Organizations Using the D Language
> (C and Java aren't really statically typed; they rely on run-time typing for polymorphism.)

Um, what? Having type information available at runtime is orthogonal to whether or not a language is statically typed.

travv0··on Functorio
"Functional core, imperative shell" is exactly what IO in the Haskell type system enforces.
travv0··on State of the Common Lisp ecosystem, 2020
If you're referring to bordeaux-threads, that's a compatibility library that gives a consistent interface to the various CL implementations' threading interfaces.
travv0··on DrScheme in Space
> Question: How many LISPers truly use homoiconicity?

Every time someone uses a Lisp macro they're taking advantage of homoiconicity. Homoiconicity is a characteristic of the language, not something somebody "uses."

travv0··on Linux and Powershell
Haskell has https://hoogle.haskell.org/ which lets you search functions named by symbols, function signatures, etc.
travv0··on A rabbit hole full of Lisp
I use Emacs pretty casually, so it's cool to see the thought process of someone that actually knows their way around it when customizing it.
travv0··on A rabbit hole full of Lisp
I use Emacs pretty casually, so it's cool to see the thought process of someone that actually knows their way around it when customizing it.
travv0··on A Proposal for Adding Generics to Go
> Several thousand out of bounds, missing keys, null reference exceptions, hash collisions and the hair starts to get thin on top.

What does any of that have to do with generics?

travv0··on Haskell is a Bad Programming Language (2020)
You claim that they’re ignoring facts, but provide no facts of your own beyond “some companies use it in production,” which is undoubtably also true of Haskell.
travv0··on Haskell is a Bad Programming Language (2020)
That’s a nice thought, but I haven’t seen examples of that myself. And your claim of real-world use seems to be the opposite of what I found with a quick Google search:

https://redmonk.com/sogrady/2020/02/28/language-rankings-1-2... https://www.tiobe.com/tiobe-index/ https://insights.stackoverflow.com/survey/2020

Obviously this is far from scientific, but Clojure being a new, hyped language, it wouldn’t surprise me if that skewed people’s perception of how much it was used in production code.

travv0··on Haskell is a Bad Programming Language (2020)
Yeah, it’s kind of mind-blowing to me that this post is so highly rated when to me it just seems like a bunch of unsubstantiated claims like this, as well as blatant misunderstandings of fundamental functional programming concepts.
travv0··on Peter Norvig's “pytudes” for Advent of Code 2020
Unless I'm really unhappy with my solution, I stick with the first thing I write that spits out the correct answer. Since a lot of the problems require you to do some potentially interesting optimization to get an answer in a reasonable amount of time, I don't bother optimizing the ones that don't.
travv0··on How Tail Call Optimization Works
> an SBCL program can.

SBCL will only perform TCO at specific optimization levels, so you can't even rely on it in SBCL.

travv0··on Debugging Lisp (2015)
One other nicety I'd add that you don't get from the Python stacktrace is the ability to inspect each frame to see the local bindings, and even restart evaluation from a previous frame. I agree that the Python stacktrace looks nicer on a surface level, but I'd argue that in practice SBCL's debugger is more helpful.
← PreviousPage 2 of 4Next →