14 votes

Desed: a debugger for sed

4 comments

  1. Soptik
    (edited )
    Link
    I’ve written a debugger for sed in Rust. This was not only to learn rust, but to actually have a solid debugger for sed. I’ve started learning sed recently and decided to start writing various...

    I’ve written a debugger for sed in Rust. This was not only to learn rust, but to actually have a solid debugger for sed. I’ve started learning sed recently and decided to start writing various algorithms in it. And as sed doesn’t have numbers and can just filter/transform text, this is a challenge even for something like comparing two numbers. I’ve seen people (@mironimous actually) do amazing things with it.

    I’d be glad for any comments regarding code quality or the debugger itself.

    Edit: I've written a bit about how it was built.

    6 votes
  2. [3]
    cfabbro
    (edited )
    Link
    Saw this on /r/linux, and I was curious whether you had posted it here yet, which lead me here. I'm kinda surprised it didn't get much attention here, since it's pretty neat IMO. The video you...

    Saw this on /r/linux, and I was curious whether you had posted it here yet, which lead me here. I'm kinda surprised it didn't get much attention here, since it's pretty neat IMO. The video you added to the reddit post showing it in action probably helped though, I guess.

    p.s. These two comments have links in them that are interesting in their own right:
    https://tild.es/b2k#comment-2run
    http://www.drregex.com/2018/11/how-to-match-b-c-where-abc-beast-reborn.html?m=1

    2 votes
    1. [2]
      Soptik
      Link Parent
      Yay thanks! Btw the first link is actually what prompted me to write this in the first place. I wanted to understand how does the monstrosity work. And the second one, eehhhhh. I'm kind of scared...

      Yay thanks!

      Btw the first link is actually what prompted me to write this in the first place. I wanted to understand how does the monstrosity work.
      And the second one, eehhhhh. I'm kind of scared of someone who comes up with a problem like this, let alone a solution. Outstanding work right there.

      2 votes
      1. cfabbro
        Link Parent
        A comment at the bottom of the second one summed it up: "So this is what programming with Satan is like." :P

        A comment at the bottom of the second one summed it up:
        "So this is what programming with Satan is like."
        :P

        2 votes