Live data from Hacker News

Viewing profile — rabarbers

rabarbers

HN member
Joined
Tue, May 03, 2011, 12:02 PM UTC
HN karma
12
Public activity
38 items

About rabarbers

No profile information was provided.

Recent public activity

  1. story
    Ask HN: Looking for a good course to learn proof assistant Lean 4

    Hi HN, I’ve been exploring Lean 4, the theorem prover and programming language, and I’m impressed by what it offers for formal reasoning and proofs. However, it’s been difficult to…

  2. comment
    Comment #29423727

    Thanks for explaining! But how about this example: x:42 {x+1}[5] It results in 6 It seems like you can define variables with the name 'x', but when you do not have explicit paramet…

  3. comment
    Comment #29422930

    I tested and seems, that x is the first implicit parameter, y - second, z - third. It is as stated in their online documentation. When you try following example: {y+x*z}[1;2;3] It …

  4. comment
    Comment #29419264

    A1 in Javascript pseudocode would be: function A1(x, y) {return x*y + x; } But A2 would be: function A2(y, x) {return y*x + y; } If you do not like the default order of implicit pa…

  5. comment
    Comment #29419091

    Can you explain the difference little bit more, Maybe using Javascript pseudocode as comparable example? I want to understand how Q is different from KatLang. The problem with me i…

  6. comment
    Comment #29417394

    Link to documentation is broken: https://codigo.so/docs/ (also link to community is broken, but I care more about Documentation link).

  7. comment
    Comment #29417264

    More specifically: the first unknown identifier becomes the first parameter for the closest algorithm defined with {} brackets. Properties (also called named algorithms) are define…

  8. comment
    Comment #29417124

    According to Q documentation, Q supports only 3 implicit parameters x, y, z: https://web.archive.org/web/20190213035913/http://code.kx.co...

  9. comment
    Comment #29416823

    Yes, the first unknown identifier becomes the first parameter, next unknown identifier becomes next parameter and so on...

  10. comment
    Comment #29416490

    Probably picking the term "perfect" was not the best think I could do. Seems, that others actively fight against it. I still believe that the perfect syntax has both attributes: 1)…

  11. comment
    Comment #29416396

    You need to carefully pick the right brackets () or {}. You can define an algorithm with both of the brackets, the difference is that () does not capture the parameter, but {} capt…

  12. comment
    Comment #29416269

    I will do some research on APL and your mentioned 'commute operator', cannot comment on it now. But regarding languages: k/q the issues with them is that they use x, y and z as key…

  13. comment
    Comment #29416146

    I am mainly inspired by C#. Ok, I can agree, that some things depends on the interpretation. You can think about several returned values as a tuple. In designing Algorithm concept,…

  14. comment
    Comment #29416009

    I think, that there is needed Android app - calculator using KatLang syntax. That (or maybe iOS version) would make You care about it. I am planning to use KatLang syntax for physi…

  15. comment
    Comment #29415961

    Your OCaml function example looks like feature I call conditional parameters in KatLang (inspired from Erlang). In mathematics exists many different concepts which are called perfe…

  16. comment
    Comment #29415675

    Tuples require object deconstruction syntax. KatLang does not have object deconstruction feature. KatLang has simply deconstructed the function into input and output. In KatLang yo…

  17. comment
    Comment #29415242

    Modern math syntax is relatively new, it started to form in 18th century. It is not too late to make some changes. Implicit parameters is only one feature in KatLang. Classic math …

  18. comment
    Comment #29415090

    It is not the same. A1 = x * y + x A2 = y * x + x A1(1, 2), A2(1, 2) returns results 3, 4 If You want to change parameter order, You can use Grace~ operator like this: A1 = x~ * y …

  19. comment
    Comment #29415050

    When you have A=x y+x from math perspective it looks like assigning a value to a variable. When You use A(x,y)=x y+x it looks like math function definition. You can look at it as i…

  20. comment
    Comment #29414995

    KatLang parser is executed as Blazor webassembly app on client side, therefore your entered KatLang code is not sent to the server. But I agree, it needs https, especially when Kat…

  21. comment
    Comment #29414947

    Page does not require any authentication and I wanted to make it simple. But too many people are asking about https, so I will configure https.

  22. comment
    Comment #29414641

    I was obsessed with the perfect syntax. Declaring method parameters in method parameters list is redundant, because the parameters appear in the method body anyway. This approach i…

  23. comment
    Comment #29414361

    The author here. I am ready to answer any questions about KatLang. The future plan is to create android app and I hope that it will become the future calculator. I have been postpo…

  24. story
  25. comment
    Comment #8508464

    I started with udacity course: https://www.udacity.com/course/cs262 it teached how to build simple javascript parser.