13 comments

  • tristenharr 7 minutes ago
    Woah this is AWESOME! I am going to have to take a look! Love the thoughts, doing something similar at https://logicaffeine.com/studio

    Check out Logos lang, would love to chat sometime. love that you chose Haskell!

  • joomy 1 hour ago
    Hi all, Kip's developer here! I was going to wait until we had finished the playground and landing page before posting about the project more, but here's the browser-based playground we have so far (thanks to Alperen Keles) for anyone who wants to play with the language: https://alpaylan.github.io/kip/

    (The work on JavaScript transpilation just started today and currently doesn't work, but running the language should mostly work, though it probably has bugs, which I'd love to hear about in the repo's issues!)

    • araes 37 minutes ago
      Question on some of the syntax. It's neat, and think the idea's cool. Would definitely be something if nothing else for security through obscurity. Is it even code?

      However, for some of the number stuff, if you write something like:

        (5'le 3'ün farkını) yaz.
        (3'ün 5'le farkını) yaz.
      
      How does it tell whether it is:

        5 - 3 =  2, or
        3 - 5 = -2  ?
      
      Does it always just return 2 because of the meaning of "farkını" and the placement of 'le and 'ün? Like:

        (5 first, 3 second, difference) write, vs
        (3 second, 5 first, difference) write  ?
      
      Google just gave back:

        Write (the difference between 5 and 3).
        Write (the difference between 3 and 5).
      
      Not especially familiar with Turkish, and mostly had to use translation, yet it looks like a language for defining math theorems? Number following "zero" shall be called "one", number following "one" shall be called "two". Or is that more just a feature of using natural language for the writing syntax?
      • joomy 33 minutes ago
        "fark" here takes two arguments, the first (the minuend) is in instrumental case (-le), the second (the subtrahend) is in genitive case (-in). Now, because of the suffixes of the cases, regardless of the order in which you give the arguments, the type system can figure out which one is supposed to be the minuend and which the subtrahend.

        If it helps, you can think of it like named arguments where the name is inferred from the case.

    • sedatk 1 hour ago
      Fantastic work, an area I’ve always wanted to explore.
    • nhatcher 1 hour ago
      Sorry! It was too beautiful not to share it. But I'm sure you can do a show HN once you think is ready.
      • joomy 1 hour ago
        That's okay, thanks for sharing!
  • celaleddin 2 hours ago
    Got especially excited, since I also experimented on a similar idea a few years ago:

    https://github.com/celaleddin/sembolik-fikir

    Will check this out further in the following days. Thanks for sharing!

    • joomy 1 hour ago
      That's pretty cool! From what I can tell, it does a morphological guess based on the suffix. If you didn't have the apostrophe, it'd have issues with ambiguity (say "aşı", does it mean vaccine or does it mean "aş" in accusative case?) but the apostrophe solves that problem too.

      My solution for this problem in Kip was to go all the way with the morphological analysis using TRmorph (https://github.com/coltekin/TRmorph) for it, and then resolve the ambiguities in type checking / elaboration. (Therefore Kip almost never needs apostrophes.) Whether it was worth it, I don't know, but it was a fun problem to solve. :)

  • hexfran 2 hours ago
    Not relevant to the language itself but to the grammar: https://languagelog.ldc.upenn.edu/nll/?p=73
  • ugurs 2 hours ago
    Clicking the link with a prejudice in my mind, I found the definitions cleverly clean and easy to understand. I would be pleased to see a German version of it, just to have a good laugh.
  • lolc 3 hours ago
    Haha I can read some casual Turkish and this made my day!

    Funny how the case system of Turkish is both strong and standardized enough for this to work well. I don't know any other language where flexible argument order would work so well.

  • chuckadams 1 hour ago
    Reminds me a bit of Lingua::Romana::Perligata.
    • joomy 39 minutes ago
      Yes, that's one of my inspirations! I'm writing a short paper about Kip and I'm citing Perligata there for sure. The closest modern non-English programming language I know that also uses grammar features is Tampio, for Finnish. https://github.com/fergusq/tampio
  • SuperNinKenDo 49 minutes ago
    I love this kind of stuff - non-English programming languages, particularly when they utilise language features in unexpected ways like this.

    My Turkish is pretty rusty - and was never any good anyway, but really cool stuff.

  • hahahahhaah 1 hour ago
    A language an LLM can choke on!
  • octoberfranklin 34 minutes ago
    It would be really helpful if this page showed side-by-side comparisons of the same program written in Kip and some other language, like say Haskell.

    I'm having a hard time seeing how this is much different from record types, except that you're limited to only eight fixed record field names (one for each grammatical case).

    • joomy 29 minutes ago
      Cases essentially act like named arguments, except the names are inferred from the case of an argument, which is inferred through morphological analysis. And that analysis can be ambiguous, so the ambiguities are solved by the type checker / elaborator. It's different from record types in the sense that you can provide the arguments in any order to a function, and the system will figure it out because of the cases.
  • readthenotes1 2 hours ago
  • rafohy12 2 hours ago
    the developers don't even live in turkey. one is in maryland, the other in new york. and developing turkish programming language. ayy lmao
    • alpaylan 1 hour ago
      The Maryland one (that would be me, although I haven’t really done anything except the WASM bindings, this is really all Joomy’s work, kudos to him) is vacationing in Izmir right now, why would that even be important though?
    • BigTTYGothGF 52 minutes ago
      I don't even live in England but still write in English, heck of a thing if you think about it.
    • pinkmuffinere 2 hours ago
      Both developers are Turkish