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.
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.
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.
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.
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
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.
A comment at the bottom of the second one summed it up:
"So this is what programming with Satan is like."
:P