olecom's blog

philosophically about sed and text processing

Submitted by olecom
on April 21, 2008 - 2:40pm

I was pointed out to book called "Mastering Regular Expressions".
Well, this was my very quick and small response.
Note, '\{0,s\}' is my proposition for shortest match in BRE.

Date: Mon, 21 Apr 2008 18:54:47 +0100
From: "Oleg Verych"
To: "sed users"
Subject: more on design of some UNIX tools (Re: gsed man pages; custom sed news; `sed` in the wild.)

text processing: security audit and easy porting of patches

Submitted by olecom
on April 16, 2008 - 12:06am

Brad Spengler <spender@grsecurity>:
Due to Linux kernel developers continuing to silently fix exploitable bugs (in particular, trivially exploitable NULL ptr dereference bugs continue to be fixed without any mention of their security implications) we continue to suggest that the 2.6 kernels be avoided if possible.
______

inventing Intention Description Language for drivers

Submitted by olecom
on April 11, 2008 - 10:29am
Summary: programming languages are CS cargo cult;
         for me it's plain text, so get `sed` and do text processing;
         but before, some kind of designing meta-language is needed anyway;
         drivers is a good place to try.
Conclusion: linux's, BSD arch/ && kernel/ analogue in meta-language.

I am a flamer and troll

Submitted by olecom
on April 8, 2008 - 11:45am

"ez430-rf2500 driver problems" kerneltrap.org/node/15941
Reminded me some old stuff:

* TI TUSB3410 chip is too universal for linux USB core,
this core might have a design flaw, developers don't agree;
(some time latter ez430-rf2500 uses chip in the different way)

http://article.gmane.org/gmane.linux.usb.devel/50296
(see also flame in thread)

* i don't like Greg:

about AI and LISP -- CS shining diamonds (a followup on what was done)

Submitted by olecom
on April 7, 2008 - 8:16pm
Original "Worse Is Better" article: http://www.dreamsongs.com/WIB.html

"The good news is that in 1995 we will have a good operating system and
programming language; the bad news is that they will be Unix and C++."

Stop it right there. It was MS Windows(R) 95(TM) and Borland Delphi (or
pick anything from asm, Borland Pascal/C, Watcom C, FoxPro, etc.)

Syntax highlighting (oh, that handcrafted programming)

Submitted by olecom
on April 7, 2008 - 5:17pm
User-Agent: jed (x86_64-pc-linux-glibc-debian)

Value of syntax highlighting for programming in text editors is hard to
overestimate. I recall one my buddy, a keen school olympic competitor on
programming, who said, that move from Borland Pascal 5 to 6 and 7 was a
great thing because of highlighting.

Many syntax and logic errors just popped up right before one's eyes.

Back to text and graphic terminals.

Submitted by olecom
on April 5, 2008 - 6:32pm

It's about my view of another incarnation of text/graphic terminals in modern, not so efficient, noisy, but power-saving reality. One, three or more useless x86 cores? Why? Toasters from xbill are finally here?

It's better to have one processor in display and a bit of imagination.

http://www.advogato.org/person/olecom/diary/7.html

A view: linux RAW net, raw sockets. A fast communication for small devices without overhead of IP, TCP, UDP.

Submitted by olecom
on April 2, 2008 - 3:04am

If somebody have experience with small devices with on-board ethernet, then this small view can be interesting.

] capture(shell): `tcpdump -w /tmp/dump -e -n -vvv -xx -XX -i eth0`
] reading(shell): `tcpdump -r /tmp/dump -e -n -vvv -xx -XX | pager`

] input(python):

== IP RAW socket under 254 (SOMETHING/IP) PROTO ==

>>> s=socket(AF_INET,SOCK_RAW,254)

Text processing and coding style.

Submitted by olecom
on April 1, 2008 - 12:38pm
http://article.gmane.org/gmane.linux.kernel/649945

After this message on LKML, i decided to start a web page about coding style
in C, that will be friendly for text processing, namely by `sed`.

Preliminary result are here: http://kernelnewbies.org/olecom

As i wanted to start from basic thing -- function definitions -- it quickly