Live data from Hacker News

Viewing profile — c0nstantine

c0nstantine

HN member
Joined
Sat, Mar 04, 2023, 3:30 AM UTC
HN karma
144
Public activity
39 items

About c0nstantine

I am a machine learning engineer and researcher with a focus on representation learning, information theory, and inductive reasoning. Please feel free to reach out - I’d love to connect.

https://c0stya.github.io/about.html

Recent public activity

  1. comment
    Comment #44100099

    Working on trre - extension of regex for text editing. I'm redesigning the underlying engine to operate on deterministic automata (transducers) for most expressions. Theoretically,…

  2. comment
    Comment #43035172

    I have a minimalistic one (7 lines in Python) using convolutions: https://c0stya.github.io/articles/game_of_life.html ### The code ### import numpy as np from scipy.signal import c…

  3. comment
    Comment #43017036

    Thank you for your feedback. There is a bunch of deterministic methods to infer regex from samples (positive and negative). There are ml-based as well. But it is a different story.…

  4. comment
    Comment #43003701

    Let me know if you need any help. Not it is still raw but I hope I'll polish it soon.

  5. comment
    Comment #43002116

    Hi. Missed your message initially. Helix is a great project. Let me know if/how I can help. The trre is a bit raw. But hope I can polish it within a month or two.

  6. comment
    Comment #42997642

    Did it solve the problem? I guess the issue is the process substitution construction of bash "<()". Not all shells support this.

  7. comment
    Comment #42990025

    Epsilon injection appears whenever right or left side of ':' has no operand. E.g. (:a) (a:) a:|b a|b: etc I will try to change the precedence and see how it works. Btw what do you …

  8. comment
    Comment #42985442

    Thank you for the detailed comment. So Unicode is something on a top of my TODO list. Boundaries is a very interesting topic. Maybe I'll extend the doc to include the details. > wh…

  9. comment
    Comment #42985326

    I agree with the point that precedence is arbitrary. The current version looks like this: 1 Escaped characters 2 [] 3 () 4 * + ? {m,n} 5 : 6 . (implicit concatenation) 7 | I have s…

  10. comment
    Comment #42983330

    Thank you for doing my work! :)

  11. comment
    Comment #42983325

    Hi, If I understand it correctly you want to change something inside the "..." block and change the quotas to single '. It can be done by this expression: echo '"hello world" "hell…

  12. comment
    Comment #42983192

    Oh, I've learnt a lot. Initially wanted to complete the whole project in two weeks and it took a few months. The hardest part was the DFT determinization algorithm design. Thanks f…

  13. comment
    Comment #42982090

    The right side is a normal regex language syntactically. Semantically it is a generator instead of a parser (consumer). But I got your point. Maybe there could be some ways to do i…

  14. comment
    Comment #42981873

    Thank you! Still a lot of work to do. I really like the jq style.

  15. comment
    Comment #42981866

    The grammar is underspecified. The full grammar is more complex. I guess I need just remove the current version from docs. Now it is confusing indeed. > Why is "c" not being replac…

  16. comment
    Comment #42981833

    The '-g' flag is obsolete. Somehow it got into my new docs. The right way is to use '-ma' flags where '-m' is for matching the whole string and '-a' stands for all the outputs. You…

  17. comment
    Comment #42981202

    That's true. Thank you for elaborating. There is a hidden operator of concatenation as for usual regular expressions. In the code I denote it as lower dot '.' (as in the old Thomps…

  18. comment
    Comment #42981181

    [a-z] is equivalent to 'a|b|...|z' in the normal regex language. So if we do [a-z]:[A-Z] it should be expanded to: (a|b|...|z):(A|B|...|Z) which is pretty legal in trre but has dif…

  19. comment
    Comment #42981023

    Thank you for the link. I think I came across it some years ago. They implement weighted transducers. Nice tool for things like morphology from the era before the LLMs. I've implem…

  20. comment
    Comment #42981009

    I guess folks generally more interested in searching for the pattern then modifying it. > Tools like sed build a transducer around the whole automaton: s/this/that/g. That sounds r…

  21. comment
    Comment #42976603

    Hey, I didn't claim it is something groundbreaking. The idea is quite old, indeed. You don not need AI or LLMs here. The sed is superior, actually. I do not cover all the functions…

  22. comment
    Comment #42976501

    Are you using MAC? For tests please try: $ make && bash test.sh with 'bash' instead. For the second part it is a bug in the README. Thank you for pointing this out! I had to be mor…

  23. comment
    Comment #42976368

    Thank you for the feedback. Yes, the precedence is a question for me. Maybe I will change this. If I shift it behind concatenation there could be another problem. E.g. with non-ass…

  24. comment
    Comment #42975997

    Can't reproduce. I have the following: > echo 'cat dog' | ./trre 'c:bat|d:hog' bat hog

  25. comment
    Comment #42975972

    >> E.g. what if I want to turn xyz into zYx? echo 'zyx' | ./trre 'xy:Yz|zy:Yx' It is still a regular language. I do not introduce references. You are right in sense the `sed` is fa…