HNHacker News
TopNewBestAskShowJobs

mitnk

184 karma · joined October 28, 2011

submissionscomments
mitnk··on Kevin Mitnick has died
R.i.P - My id was originated from his name..
mitnk··on What chroot taught me about containers
Also:

- https://github.com/saschagrunert/demystifying-containers

- https://ericchiang.github.io/post/containers-from-scratch/

mitnk··on CS quotes found while browsing Notepad++'s code
lol..

https://github.com/notepad-plus-plus/notepad-plus-plus/blob/...

mitnk··on Grok {Shan, Shui}*: Advent of understanding the generative art
Nice series, thanks.

In day2, the author refactored some "old-school" code[1], I'd say I prefer the old-school version (the new version is less readable to me). Old-school is not out-dated nor in-correct IMO.

[1] https://ibb.co/C0cYbdt

mitnk··on Frontpage – Terms of Service; Didn't Read
Is there a DR version of github.com's?
mitnk··on Golang.org will be merged into go.dev
pkg.go.dev --> go.dev/pkg/ would be better.
mitnk··on Zsh Tricks to Blow Your Mind
There is always a group of people wanting to "hack" terminals into GUI-targeting, glittering app ;)
mitnk··on Getting better at Linux with mini-projects
Another direction to learn Linux/Unix is spending time to learn from decent books like TLPI.

https://man7.org/tlpi/

mitnk··on Cicada: A Bash-like Unix shell written in Rust
For `touch a b; echo "$(echo "$(echo "$(ls)")")"`, I'll think about it.

It looks like a bad command to me (nested $ and nested `"` do not smell good). Probably I would mark this a wont-fix. But if I found I does make sense (useful in some meaningful places) - I'll consider to update cicada to align with Bash. Thanks for reporting.

mitnk··on Cicada: A Bash-like Unix shell written in Rust
# you have to use full path to make it work:

cicada> /bin/1

A bare `1` is a math arithmetic, as described in README, which with a higher precedence.

mitnk··on Cicada: A Bash-like Unix shell written in Rust
Yeah, I submited once on HN about this project two years ago. Since then quite a few new features have been added and some improvements are made. So it's time to expand the user base a bit :)

Now cicada shell is still have some issues, but overall it's quite usable. I hope it could be useful for people who are seeking simplicity and speed in daily use of the shell.

mitnk··on Removing duplicate lines from files keeping the original order with Awk
> This is very memory intensive.

Only for ones not familiar with awk.

It would make a lot of sense after you understand how awk works (as the article explains).

mitnk··on Removing duplicate lines from files keeping the original order with Awk
The man page of (n)awk [0][1] is surprisingly short and readable.

[0] `man awk` on mac

[1] online version https://www.mankier.com/1/nawk

[2] gawk's man page works great as a reference https://www.mankier.com/1/gawk

mitnk··on Cicada – Unix shell written in Rust
You need xonsh - http://xon.sh/ :)
mitnk··on Cicada – Unix shell written in Rust
You're right, I consider Cicada is the "old" generation shell. I intend to keep it simple (for speed etc). Like in readme, it won't introduce functions or other complex stuff. But still can add some feature for my own needs.

For modern shell, please check out xonsh: http://xon.sh/ - powered by Python - It's super cool!

mitnk··on Cicada – Unix shell written in Rust
Yes, I haven't provided the pre-built binaries yet. Maybe I should..
mitnk··on Megaprocessor – A micro-processor built large
seems an implementation of the book - Code https://www.amazon.com/dp/B00JDMPOK2/ref=dp-kindle-redirect?...
mitnk··on Gimp 2.9.4 Released
GIMP stuck on Mac at times. Hope this version be better. Thanks for sharing!