Good day fellow hackers,
Over the years I've wondered why we at suckless are still using such
slow and antiquated languages like C and Bash instead of advanced and
really fast ones like Java or C#.
To adress this problem, I'm currently working on porting sbase to Java
to bring more performance into this piece of software and make it suck
less and more memory-efficient.
Using Java, I found many ways to improve the echo-command. For
instance, using a LinkedList of LinkedLists of Characters allows easy
storage of parameters and easy access through LinkedList- and
LinkedList<LinkedList>-Iterators.
A StringBuffer is used to store the output.
--
Longer code usually is safer, because there are more ways to do it
right.
--
As of now, I only ported the echo-command into echo.java. More will
come.
Please let me know what you think about this great advancement.
Happy hacking!
Cheers
FRIGN
PS: compile with "javac echo.java" and execute with "java echo".
--
FRIGN <dev_AT_frign.de>
Received on Tue Apr 01 2014 - 16:39:00 CEST