Re: [dev] s - suckless shell

2016-08-12 Thread Ben Woolley
> On Aug 12, 2016, at 2:41 PM, ra...@openmailbox.org wrote: > > Hello! > > GNU Bash is 138227 lines of code. I wrote a simpler shell* in 800 lines: > https://notabug.org/rain1/s/ > > *It is not a true POSIX shell. You can't run existing scripts with it. It's > technically just a command inte

Re: [dev] s - suckless shell

2016-08-12 Thread Ali H. Fardan
On 2016-08-13 03:28, hiro wrote: there already is a suckless shell, called rc. stupid you. A new shell will have it's own use cases and might be a perfect fit for certain projects, some cases might not require shell scripting so the interpreter part is unneeded. Raiz

Re: [dev] s - suckless shell

2016-08-12 Thread hiro
waiting for the day someone of you rewrites all the other stuff in 9base, too.

Re: [dev] s - suckless shell

2016-08-12 Thread Mattias Andrée
On Sat, 13 Aug 2016 01:45:48 +0100 wrote: > On 2016-08-13 01:28, hiro wrote: > > there already is a suckless shell, called rc. stupid > > you. > > [rc-1.7.4]$ wc * > 210651 5748 acinclude.m4 ? >1150 5297 41954 aclocal.m4 ? > 25 64397 addon.c > 3113481

Re: [dev] s - suckless shell

2016-08-12 Thread hiro
shut up if you know nothing. cpu% wc -l *.[hc] 483 code.c 993 exec.c 76 exec.h 67 fns.h 233 getflags.c 7 getflags.h 261 glob.c 241 havefork.c 217 haventfork.c 152 here.c 266 io.c 27 io.h 388 lex.c 147 pcmd.c 71 pfnc.c 638 plan9.

Re: [dev] s - suckless shell

2016-08-12 Thread rain1
On 2016-08-13 01:28, hiro wrote: there already is a suckless shell, called rc. stupid you. [rc-1.7.4]$ wc * 210651 5748 acinclude.m4 1150 5297 41954 aclocal.m4 25 64397 addon.c 31134816 addon.h 40352 2206 AUTHORS 558 1887 12048 builtins.c

Re: [dev] What do you guys think about competitive programming?

2016-08-12 Thread Ben Woolley
> On Aug 12, 2016, at 1:13 PM, Mattias Andrée wrote: > > On Fri, 12 Aug 2016 22:05:26 +0200 > Martin Kühne wrote: > >> On Fri, Aug 12, 2016 at 9:58 PM, Mattias Andrée >> wrote: >>> Programming contests can be fun, but it depends on the >>> competition, some barely have a focus on programming

Re: [dev] s - suckless shell

2016-08-12 Thread hiro
there already is a suckless shell, called rc. stupid you.

Re: [dev] s - suckless shell

2016-08-12 Thread Mattias Andrée
On Fri, 12 Aug 2016 23:51:46 +0100 wrote: > On 2016-08-12 22:52, Mattias Andrée wrote: > > Also, the names of shells conventionally end with > > sh, just do go with ssh (which incidentally is not > > a shell but ends with “sh” because the full name ends > > with “shell”.) > > > > On Fri, 12 Aug

Re: [dev] s - suckless shell

2016-08-12 Thread rain1
On 2016-08-12 22:52, Mattias Andrée wrote: Also, the names of shells conventionally end with sh, just do go with ssh (which incidentally is not a shell but ends with “sh” because the full name ends with “shell”.) On Fri, 12 Aug 2016 23:48:29 +0200 Mattias Andrée wrote: Sorry for replying befo

Re: [dev] s - suckless shell

2016-08-12 Thread Mattias Andrée
Also, the names of shells conventionally end with sh, just do go with ssh (which incidentally is not a shell but ends with “sh” because the full name ends with “shell”.) On Fri, 12 Aug 2016 23:48:29 +0200 Mattias Andrée wrote: > Sorry for replying before reading, but I don't think a > single-cha

Re: [dev] s - suckless shell

2016-08-12 Thread Mattias Andrée
Sorry for replying before reading, but I don't think a single-character name is a good idea. Two-characters should also be avoided, but it's acceptable. The number of available names are severely limited and introduces an unnecessarily high risk of collision. Short names, and single-character name

[dev] s - suckless shell

2016-08-12 Thread rain1
Hello! GNU Bash is 138227 lines of code. I wrote a simpler shell* in 800 lines: https://notabug.org/rain1/s/ *It is not a true POSIX shell. You can't run existing scripts with it. It's technically just a command interpreter. With that out the way here's an overview of how it works: Tokeniz

Re: [dev] What do you guys think about competitive programming?

2016-08-12 Thread Mattias Andrée
On Fri, 12 Aug 2016 22:05:26 +0200 Martin Kühne wrote: > On Fri, Aug 12, 2016 at 9:58 PM, Mattias Andrée > wrote: > > Programming contests can be fun, but it depends on the > > competition, some barely have a focus on programming > > but mathematics instead. I don't see them as promoting > > bad

Re: [dev] What do you guys think about competitive programming?

2016-08-12 Thread Martin Kühne
On Fri, Aug 12, 2016 at 9:58 PM, Mattias Andrée wrote: > Programming contests can be fun, but it depends on the > competition, some barely have a focus on programming > but mathematics instead. I don't see them as promoting > bad practices, you are under extraordinary pressure so > this should not

Re: [dev] What do you guys think about competitive programming?

2016-08-12 Thread Mattias Andrée
Programming contests can be fun, but it depends on the competition, some barely have a focus on programming but mathematics instead. I don't see them as promoting bad practices, you are under extraordinary pressure so this should not influence your programming practices under normal conditions. I d

[dev] What do you guys think about competitive programming?

2016-08-12 Thread Kevin Michael Frick
Hello suckless.org fellows! I find myself competing in the national selection for the IOI[0] and was wondering: what does the suckless.org community think about competitive programming contests? They certainly promote bad practices such as namespace pollution, non-descriptive naming of variables,

Re: [dev] st lack of scrollback

2016-08-12 Thread Amer
Actually, it's no more than what you have called it, hack. It works only in bash -- due to it's policy of propagating HUP to childs when main process exits. So dash, etc. are out of question -- even by applying numerous nested dirty hacks. It makes me sad, being unable to compose clean solution.