Berkeley CSUA MOTD:Entry 21252
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/05/26 [General] UID:1000 Activity:popular
5/26    

2001/5/12 [Computer/SW/Compilers, Computer/SW/Languages/Perl, Computer/SW/Editors/Vi] UID:21252 Activity:nil
5/11    http://www.grrl.com/hackerboy.html
2025/05/26 [General] UID:1000 Activity:popular
5/26    

You may also be interested in these entries...
2005/2/18-20 [Computer/SW/Compilers] UID:36229 Activity:nil
2/18    When you need to parse something simple do you usually use (f)lex/yacc
        or just write a recursive-descent parser? I've done both in the past,
        but I can't seem to justify using one approach over the other.
        \_ the point of yacc is so that you can write a grammar for it so that
           when things change you don't have to spend a lot of time
           rewriting your hand-written C/Java recursive-descent parser. For
	...
2004/12/20-21 [Computer/SW/Languages/Java, Computer/SW/Compilers] UID:35368 Activity:kinda low
12/20   Has anyone used the parser generator JavaCC?  Is it just me, or is
        it completely awful?
        \_ what do you need it for? If you need to use the visitor and
           traverse the syntax tree, I recommend JTB, available here
           http://compilers.cs.ucla.edu/jtb  It is built on top of
           javacc and generates visitors that you can extend functionalities
	...
2004/5/21-22 [Computer/SW/Compilers] UID:30345 Activity:very high
5/21    I was not a CS major and never took the compiler class.  What is
        a good book to help me write a compiler?  And what about interpreter?
        Do they basically involve the same issues except code generation and
        optimization?
        \_ Use the book by Robert Mak, called "Writing Interpreters and
           Compilers in C++." It's a practical, hands-on "lab" type book which
	...
2004/5/12-13 [Computer/SW/Editors/Emacs, Computer/SW/Compilers] UID:30198 Activity:kinda low
5/12    Are there any emacs modes for .l files (lex) and .y files (yacc)?  I'm
        running emacs20.  Thanks.
        \_ just use c-mode or c++-mode.
	...
2004/5/6 [Computer/SW/Compilers] UID:30060 Activity:high
5/6     I've been out of school for too long.  If I want to write a simple
        compiler, what tools do I need besides yacc and what do they do?
        Thanks a bunch!
        \_ well there's also lex (flex) for the lexical analyzer (tokenizing).
        \_ java or c? if c, lex/flex=good tokenizer. yacc/bison are great
           for grammar. both are LALR so they're pretty powerful.
	...
2003/6/25-26 [Computer/SW/Compilers] UID:28839 Activity:high
6/25    When yacc man page refers to "LR(1) parser", is LR(1) a reference to
        some other man page or does LR(1) have some other special meaning?
                -clueless
        \_ some other special meaning, LR(1) is a style of parse tree
           generation that has certain limitatations.  Sort of like how
           reg exps can't search for all the things you want to search for
	...
2001/7/16-17 [Computer/SW/Languages/C_Cplusplus] UID:21812 Activity:moderate
7/16    Dear motd, is it true that the gnu implementation of C++ lacks
        <sstream>?  What gives?
        \_ see below on the bit on ali.  C++?  who cares.
           \_ what should we care about, java? eiffel? mh?
           \_ what should we care about, java? eiffel? ml?
              \_ Ocaml.
	...
2000/12/17 [Computer/SW/Compilers, Computer/Theory] UID:20114 Activity:high
12/14   I totally don't see any relevance in teaching Lambda calculus in an
        undergrad course to describe stupid semantic rules. Fuck Aiken and
        his stupid ambiguous exams!!!
              researcher)
           \_ usually to emphasize its distinction from an algebra.  keep
              in mind that "the calculus" taught in high school is
	...
2000/8/14-15 [Computer/Theory] UID:18977 Activity:high
8/13    Is there such a thing as an algorithm that can output another
        algorithm? Kind of like self tuning, self evolving algorithm?
        \_ Yes. Not as glamorous as it sounds; see also: genetic algorithms,
           Remez algorithms, data-directed programming
        \_ bison, yacc, (f)lex, and many many more. not self tuning though.
        \_ There are algorithmns that can learn from data.  It's really not
	...
2000/5/20-22 [Computer/SW/Languages/Misc] UID:18307 Activity:kinda low
5/20    When I need an spec/interface/extension language, I use
        0 my own language and lex+yacc
        1 my own language and my own lexer/parser
        <number value="0"/> XML
        2 scheme
        1 PROLOG!!!
	...
2000/1/19-20 [Computer/SW/Database] UID:17267 Activity:kinda low
1/18    Wanted 2 programmers to help develop web based apps:  Between the
        two, will need PERL, CGI, SQL, Yacc(or Bison), Javascript, HTML.
        Full time or Part time (20 hours minimum).  At least two weeks(tm)
        with possibilities of more if appropriate.  Work on-site (downTown
        Oakland)  or off-site. (510) 271-4142 ask for Garo, Alan or Ephram.
        -gargamel
	...
1999/7/11-14 [Computer/SW/Compilers] UID:16105 Activity:high
7/11    Since bison/yacc/(f)lex all act like state machines is there any way
        to implement a program with multiple context parsers (eg. a
        multithreaded network deamon that needs to parse an input)?
        \_ This problem is even worse in OpenGL that employ specialized
           rendering hardware since the GL libraries act on the state of
           the video card.  In other words, there's only one rendering
	...
2013/3/25-5/18 [Computer/SW/OS/Windows] UID:54639 Activity:nil
3/25    It's strange that only every other Windows version is a hit.
        NT 4.0: hit
        2000:   flop
        XP:     hit
        Vista:  flop
        7:      hit
	...
2009/8/19-9/1 [Computer/SW/Unix] UID:53285 Activity:nil
8/18    Hi again, new freebsd guy here again, in bash I was able to go
        LD_LIBRARY_PATH=/opt/foo/lib ./runmyapp
        I managed to do this in tcsh by using setenv in a shell script
        that setenv's the lib path and then executes $1, just wondering
        if there was a way to do it in 1 line from the cmd line as in bash?
        Thanks, btw %2c or %3c worked.  Freebsd, tcsh and vi forever!
	...
2009/7/24-29 [Computer/SW/Editors/Vi] UID:53195 Activity:low
7/24    Is dos2unix available somewhere?  Someone added all those Ctrl-M's to
        motd.public.
        \_ %s/^V^M//g in vim. What has your editor done for you today?
           \_ that works great in vi actually... in vim :set filetype=unix
	...
2008/12/2-7 [Computer/SW/Editors/Vi] UID:52143 Activity:nil
12/2    Article 1, Section 6
        No Senator or Representative shall, during the Time for which he was
        elected, be appointed to any civil Office under the Authority of the
        United States, which shall have been created, or the Emoluments whereof
        shall have been encreased during such time
        \_ Stop stomping my changes.
	...
2008/9/22-24 [Science/Electric, Computer/Companies/Google, Computer/SW/Editors/Vi] UID:51263 Activity:kinda low
9/22    Gmail's "conversation feature" drives me nuts! Is there a way to
        disable that and make Gmail act like every other e-mail client on the
        planet? WTF thought this was a nice thing to have on by default?
        \_ Umm, why don't you just use another email service then...
           \_ Umm, I do, which is how I have something to compare to. I get
              mail in at least 4 places only one of which is Gmail. I
	...
2008/6/12-13 [Computer/SW/Editors/Emacs, Computer/SW/Editors/Vi, Computer/SW/Unix] UID:50233 Activity:nil
6/12    Does emacs or vi include a column paste?  I sometimes have a block
        text I want to insert horizntally next to another block/column.  This
        is common for data plotting etc.  In Microsoft Word has this, I need
        it in a Unix text editor.
        \_ Does M-x picture-mode in emacs work for you?
           \_ Yes, with the commands below, thanks.
	...
2008/2/21-25 [Academia/Berkeley/CSUA/Motd, Computer/SW/Editors/Vi] UID:49207 Activity:nil
2/21    Why don't people respect the lock on the motd put on by vi or
        emacs? Are they that paranoid about kchang's motd watching program?
        Is anyone still using motdedit?
        \_ hey I still use it.  Some people don't though.  some sneaky folks
           edit a copy of the motd offline and put it in place, not caring how
           much they stomp on others' changes that might have happened in the
	...
2007/11/13-21 [Computer/Networking] UID:48628 Activity:low
11/13   If I have a application on machine foo sending data really fast to
        an application on machine bar via TCP, and the bar applications job
        is write that to disk as fast as possible, what happens if the
        network stream is faster than the disk writes?
        \_ Look up the differences between TCP/IP flow control and
           congestion control. The answer is in front of you.
	...
Cache (2007 bytes)
www.grrl.com/hackerboy.html
Many people online have their own definition of what a hacker is, but for this dating section we'll make it fairly cut and dry. Sometimes they approach relationships as though there's a reset button nearby. But here's some tips to help you in the quest to capture the heart of your own self-proclaimed cyborg. Hacking into the phone company to change your phone bill might be romantic at first, but if the Feds come a knockin', you could sharing a jail cell. The most they'll probably end up doing is get a tacky tattoo of metal ripping through his arm. Many hackers fancy themselves as cyberpunx and like to discuss topics such as memory implants and information smugglers. Hackers have a way of treating their girlfriends as would-be fembots. An old-school hacker will want to spend romantic moonlit nights snooping around dumpsters behind computer companies and universities. After all, you don't want to compete with the modem for his attention. Most hackers like to stay indoors in front of the computer. He may occasionally venture outside to go to a computer swap meet. This means saying no when he asks to implant a tracker microchip in your wrist. He may want to spend hours and hours chatting with his fellow Lone Gunmen about how to take down the NSA rather than chat with you about your day. Just be suspicious if he's partial to sex chats with strangers. Oh and if you really want to impress him, learn Lex, Yacc and Emacs. Demonstrate Perls of wisdom, weild VI like a wizard and explain why Linux is the only moral OS choice. This means he'll probably play a lot of Illuminati or RoboRally instead of wanting to go out to a party or dance club. Sure not all musicians care more about their guitars than their girlfriends, and not all stoners eat tons of Ho-Hos, and not all goths wear black eyeliner, and not all ravers take E. After all, not only have I dated all these stereotypes, but at different points of my life I was each of these stereotyoes myself -- except for the Redneck, that is.