Re: [dev] Suckless design in Games

2010-08-11 Thread Anh Hai Trinh
On Wed, Aug 11, 2010 at 9:13 PM, Eivind Michael Skretting
 wrote:
>
> Mozart and Chopin really have nothing to do with Minimalism. Some of Mozart's
> pieces are maybe light (but not all of them, like Don Giovanni or Kyrie
> Eleison from Requiem), and Chopin may be elegant, but Minimalism is a
> seperate genre of music, represented by composers like John Adams, Steve
> Reich and Philip Glass.
>
> One of the big differences is the theme development, Minimalists use
> none of the classical forms of Mozart or Chopin, but rather a repetitive
> form of slow progression.


You are technically right, but this "minimalism" is nothing more than
a name tag.

Opponents of Steve Reich & Philip Glass may say their music has
needless repetitions.

To contrast, consider Bach's Chaconne: "On one stave, for a small
instrument, the man writes a whole world of the deepest thoughts and
most powerful feelings." Is this a minimalist piece, even when it's
15min long? As a former composition student, I would say it is.

I think the essence of minimalism is that one take away as much as one
possibly can.

It's interesting that in this meaning, minimalism is not just the
opposite of bloat, but also denotes some kind of balance.


-- 
@chickamade



Re: [dev] Suckless design in Games

2010-08-11 Thread Anh Hai Trinh
On Wed, Aug 11, 2010 at 10:08 PM, Eivind Michael Skretting
 wrote:
> On Wed, Aug 11, 2010 at 09:35:48PM +0700, Anh Hai Trinh wrote:
>> I think the essence of minimalism is that one take away as much as one
>> possibly can.
>>
>
> Then one should exclude Chopin from that definition.

What do you mean exactly? His A major Prelude is probably the shortest
piece of music that exists (20~ seconds) and amongst the most
beautiful. If that is not minimalistic, I don't know what is. Chopin
is, after all, most famous for his _miniature_ pieces.

> On a end note, the original mention of Minimalism was with a capital
> "M", so I figured the discussion needed some clearing-up.

Point taken.


-- 
@chickamade



Re: [dev] Suckless design in Games

2010-08-11 Thread Anh Hai Trinh
On Wed, Aug 11, 2010 at 11:20 PM, Eivind Michael Skretting
 wrote:
>>
>> What do you mean exactly? His A major Prelude is probably the shortest
>> piece of music that exists (20~ seconds) and amongst the most
>> beautiful. If that is not minimalistic, I don't know what is.
>
> Well, first of all, as have been mentioned, it's not about lenght.

Email me off-list about this if you want to discuss this point further
but no matter what angle you look at this piece, there is just no way
it is not minimalistic.

> And Chopin's harmonies is in no way minimalistic (meaning "simple").

Not for that particular piece. In general, nowadays, Chopin's harmony
is considered to be in the Common Practice Period and are well
understood by second-semester harmony students. It is not simple, but
certainly not complex. Chopin's harmony to a music student is like a
heap to a programmer. (obviously this is just a way of saying)


-- 
@chickamade



Re: [dev] Suckless design in Games

2010-08-11 Thread Anh Hai Trinh
On Wed, Aug 11, 2010 at 11:06 PM, Antoni Grzymala  wrote:
>
> I would argue about that: the mid-sized Impromptus, Ballades, Fantaise
> and Barcarolle (and the lateish-largish Mazurkas and Nocturnes) are
> probably his best works, but the entire published (by him) body of
> work is of such high quality, that it's pretty difficult to discuss
> which particular works are “best”.

The ballades are quite unique, but the rest you mention is a bit of
bloat to me. Chopin sucks at larger forms. If the only Chopin
collection to survive is the Preludes, I would still consider him top
notch. I believe I'm not alone on this position.

minimalism ftw!

-- 
@chickamade



[dev] Re: [dev] Re: [dev] Re: [dev] Usage, -h, --help, hel p, synopsis, …

2010-08-17 Thread Anh Hai Trinh
On Wed, Aug 18, 2010 at 2:36 AM, Alexander Teinum  wrote:
> It would be a nice challenge to write a really small getopt()
> replacement, and a program that generates usage text. Okay, how about…
>
> usage: program -a [-b] [-c] -f file blah blah blah
>
> -a    Required. Must always be set.
> -b    Optional.
> -c    Optional.
> -f file    Required. file must always be a string.
> blah blah blah    I guess it’s up to the program to decide if this is
> optional or required.


"Required options". What an oxymoron.


-- 
@chickamade



[dev] Re: [dev] Re: [dev] [dev] Usage, -h, --help, help, s ynopsis, …

2010-08-18 Thread Anh Hai Trinh
On Wed, Aug 18, 2010 at 10:27 AM, Kris Maglione  wrote:
>
> GNU man has the annoying and difficult to stop habit of filling the entire
> width of the terminal rather than wrapping at 80 chars. And if you set
> $MANWIDTH or $COLUMNS to 80 and the terminal isn't that wide, you wind up
> with badly broken wrapping. As for bold, fortunately my terminal has it
> disabled, and reverse video has no place in manual pages.
>

$MANWIDTH can be abused to some extend:

$ cat grepman
#!/bin/sh
MANWIDTH=32767 exec man "$2" | grep --color=auto -C2 -- "$1"


Set a bigger number for your own amusement.


-- 
@chickamade



Re: [dev] A language similar to Markdown that sucks less

2010-08-22 Thread Anh Hai Trinh
On Sun, Aug 22, 2010 at 10:52 PM, Alexander Teinum  wrote:
> I didn’t want to start a completely off-topic discussion in the
> typesetting thread, so I created a new thread. I’m playing with the
> idea of creating a language that is simple to read like Markdown, but
> that has a stricter syntax. It looks like Common Lisp. I think the
> parser should be implemented in Go.
>
> (h1 A heading)
> (p This is (strong awfully) nice.)
> (h2 Another heading)
>
>
> Or, it could be written this way…
>
> (h1
>   A heading)
> (p
>   This is (strong awfully) nice.)
> (h2
>   Another heading)
>
>
> There might be a rule that says that the first level doesn’t need the
> parentheses…
>
> h1 A heading
> p This is (strong awfully) nice.
> h2 Another heading
>
>

I've written something you might like. It can do both open/closing
tags and by indentations.

http://www.trinhhaianh.com/NEST.html

It looks like this:

\html <

\h1 title
\

\< This is a comment but can be used decoratively, like the one
under the \\h1 >

\div[class=content]:

\p You may close off the tags by indentation (notice the ":").

\blockquote:
Immature poets imitate; mature poets steal; bad poets
deface what they take, and good poets make it into
something better, or at least something different.
— T.S. Eliot, The Sacred Wood

\p You can do inline \b, \code<\em<λ>x. x+1>.

\p I personally when you can nest arbitrary tags after each other
(hence the name), e.g.

\footer \div[style="float: right"] \p Yours truly

>

I have written the parsers using PLY (Python lex/yacc), which can
output HTML or ElementTree: http://github.com/aht/nest


-- 
@chickamade



[dev] some wmiirc scripts

2012-03-18 Thread Anh Hai Trinh
Hi all,

I'm sharing some simple rc scripts for wmii, notably to manage status
bars using separate processes and also a search+goto-window script.

It's at: https://github.com/aht/wmiirc


P.S. Looking at http://wmii.suckless.org/, it says wmii is now
deprecated? Was there any announcement for that?

-- 
@chickamade