Live data from Hacker News

Viewing profile — lokedhs

lokedhs

HN member
Joined
Sat, Mar 05, 2011, 4:51 AM UTC
HN karma
2,907
Public activity
1,370 items

About lokedhs

No profile information was provided.

Recent public activity

  1. comment
    Comment #48257938

    Dyalog APL, along with other modern array languages that are related to it can all do imperative programming with loops etc. There are certainly valid arguments that you hive certa…

  2. comment
    Comment #48017522

    Thanks, that makes sense. I guess most CSV data you see in the real world do have headers. Perhaps I was looking too much about thr default CSV export format from Excel, focusing o…

  3. comment
    Comment #48017104

    I see. Kap tries to be as generic as possible, so assuming that the table has headers doesn't feel right. If the table dont have headers, and the reader assumes it does, then you'l…

  4. comment
    Comment #48016368

    The string to specify the column types is not a terrible idea. Does it have other configuration options, like whether or not to assume the first row is the headers, or specifying t…

  5. comment
    Comment #47978274

    That wouldn't help much. People who don't use these languages doesn't understand that what makes the language different isn't the syntax. There are plenty of dialects that use Engl…

  6. comment
    Comment #47909218

    Which would have been fine. In fact, if you read the notes from the very first implementation of APL you'll find that it was noted that they considered the lack of proper flow cont…

  7. comment
    Comment #47909150

    That list is incomplete. Those are things that Lisp invented but is now commonplace. What it also invented but rather few languages also support is the capability of metaprogrammin…

  8. comment
    Comment #47908544

    This is a good article to understand the thinking behind array languages in general, and APL in particular. However, I disagree with some points made. In particular, this one: > So…

  9. comment
    Comment #47908500

    To be fair, most languages in use today are just FORTRAN with diffrent syntax. Both Lisp and array language programmers are sadly somewhat rare.

  10. story
  11. story
  12. comment
    Comment #42004638

    Interesting observation. The fundamental syntax of Kap is the same as APL. The imperative style is added on top, and isn't really the way you'd normally write code. The examples we…

  13. story
  14. comment
    Comment #41758659

    That depends on the specific code. Some code is written to be agnostic to the rank, while others make certain assumptions. In my code I'd sometimes write assertions in the beginnin…

  15. comment
    Comment #41758637

    Just because you can write everything on one line without any spaces doesn't mean you should. You can ofcourse removethe capability to do thatand you'll effectively force the progr…

  16. comment
    Comment #41756932

    It's likely a combination of both. It's certainly possible to write Kap in a much more condensed form. But things like if-statements and hash maps does allow for a more imperative …

  17. comment
    Comment #41756586

    You're not wrong. It's very easy to get that impression when trying to learn the array languages. It's very easy for someone who's used these languages for a long time to look at a…

  18. comment
    Comment #41756529

    "More efficiently"? Maybe. It opens up a new way to think about solutions to problems. Sometimes those solutions are more efficient, and sometimes they are just different. It's a u…

  19. comment
    Comment #41093236

    The short answer is yes. There have been many presentations on this topic that tries to explain it in various ways. The problem is that most people who are unfamiliar with APL usua…

  20. comment
    Comment #39614902

    It's not sort. In Kap, sort down is ∨. The grade functions returns a sorted index. Basically ⍒ 3 1 2 1 1 returns 0 2 1 3 4. So yes, it performs a sort, but it returns an index that…

  21. comment
    Comment #39614831

    I am the author by the way. The intent wasn't really to try to sell the language. The language is what it is, but the thing I wanted to highlight was that the entire solution (lang…

  22. comment
  23. comment
    Comment #39614390

    Well, it's for the JVM, JS or Linux native. :-) Point taken about the tutorials. It's still a work in progress.

  24. comment
    Comment #39614357

    That was not the point of the statement. The argument (possibly poorly phrased) was the there are people people out there that are comfortable with manipulating arrays of numbers t…

  25. comment
    Comment #39614305

    I'd argue it's partly because of tradition. If you look at early APL code, including Iverson's earliest papers, it's written with pretty much zero spaces (well, except for where sp…