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

2000/7/3-4 [Computer/HW/Memory, Computer/SW/Languages/Functional] UID:18580 Activity:insanely high
7/3     Is it possible to derive a mathematical or logical proof which shows
        that, given a set of computations to perform, an instruction set
        consisting of only push/pop instructions (1 register) requires less
        memory footprint than that of a general purpose registered machine?
        \_ java troll, go away
        \_ Wow.  Berkeley is graduating idiots like this?
                \_ hot market + idiot programmers = old news
                \_ awww, cut the kid some slack -- ignorance != stupidity.
                   just chalk it up to being naive, inexperienced, and
                   enthusiastic.
        \_Would someone please explain exactly what the poster is asking, and
          why it's ridiculous?  What does it have to do w/ java?
                \_ cs152+252 would help
                   \_ cs164 talked about it a little
                \_ More like who cares?  Memory footprint ceased being deeply
                   meaningful after BG chewed on those "more 640k" words.  RAM
                   is cheap and other kinds of higher density storage are
                   always in the works.  Don't bother me kid.
                \_ just like soda to call someone stupid, then not be able
                   to answer (ooh, I'm too busy to answer, but have plenty of
                   time to carp). ehe.
                   \_ Didn't say you're stupid.  Said it isn't important.
        \_ i dare you to to write a loop using push/pop.
           \_ (define (loopy numtimes doit result)
                  (if (= numtimes 0)
                      result
                      (loopy (1- numtimes)
                             (cons (doit numtimes) result))))
                ITERATION = RECURSION = stacks (with push = cons)
                \_ NO!  With the assembly push/pop instructions.  Not LISP
                   _simulating_ push/pop.  You don't get "cons" and if/then
                   tests in a push/pop-only instruction set.  Read the test
                   question fully before answering.  Grade: F.
        \_ I think the guy who invented Forth wrote a whole book about when
        stack architectures are better that general purpose RISC and I read
        it online, but I don't have the URL anymore.    -muchandr
        \_ Found it. I ment this guy really:
        http://www.cs.cmu.edu/~koopman/stack_computers
        For example section 7.2.3 deals with rule-based systems being faster.
        Another good page http://www.ptsc.com/psc1000/mpu.html has an example
        on how you can do better because of better instruction bandwidth of
        8-bit zero-operand instructions
                                        -muchandr
                \_ dude, heavy computer science! The poster isn't as clueless
                   as I thought.
2025/05/24 [General] UID:1000 Activity:popular
5/24    

You may also be interested in these entries...
2012/12/18-2013/1/24 [Computer/SW/Languages/Perl] UID:54561 Activity:nil
12/18   Happy 25th birthday Perl, and FUCK YOU Larry Wall for fucking up
        the computer science formalism that sets back compilers development
        back for at least a decade:
        http://techcrunch.com/2012/12/18/print-happy-25th-birthday-perl
        \_ I tried to learn Perl but was scared away by it.  Maybe scripting
           lanauages have to be like that in order to work well?
	...
2012/2/5-3/26 [Computer/SW/WWW/Browsers] UID:54300 Activity:nil
2/5     How is Firefox on version 10, while I still have 3.6 installed.
        I wait for the X.1 versions and they never come out.
        \_ I'm also on 3.6.26.  It claims that versions 4 - 10 are all faster
           than 3.6.x, but do they use more memory?  Thx.
           \_ Newer Firefox versions use less memory too:
              http://www.maximumpc.com/article/news/mozillas_memshrink_program_brings_big_memory_savings_firefox_7
	...
2011/6/5-8/27 [Computer/HW/Memory] UID:54127 Activity:nil
6/5     In an effort to stabilize our services, we'll be rebuilding parts of
        the CSUA infrastructure over the course of this summer.  To give us
        some wiggle room, I've temporarily decreased soda's allocated RAM from
        8GB to 2GB.  If you need to run something that requires large amounts
        of memory, please send mail to root@csua.org and we'll try to
        accommodate your request.  --jordan
	...
2011/3/26-4/20 [Computer/HW/Memory] UID:54062 Activity:nil
3/19    When you're explaining the stack to people do you draw it with the
        highest addresses at the top or at the bottom?
        \_ When I explain any memory layout including stacks, I draw with the
           highest addresses at the bottom.  But I've seen people doing the
           other way.  -- yuen
           \_ do you by any chance have seen or have a jpg of the full memory
	...
2010/7/25-8/25 [Computer/SW/Graphics] UID:53897 Activity:nil
7/25    What's up with that moving bit pattern that Win7 displays when it
        boots up?  (It's the one that's like in the Apple II days when you
        use the graphics memory for code or data while it's still in HGR
        mode.)  Is there a way to disable that?  It slows things down a lot
        every time I reboot my Win7 VM on my office machine if I RDP to the
        machine via DSL.  Thanks in advance.
	...
2010/5/26-6/30 [Computer/SW/Unix/WindowManager, Computer/SW/OS/OsX] UID:53844 Activity:nil
5/26    anyone use lxde?  supposedly it is less stupid than xfce and
        less bloated than gnome.  thoughts?
        \_ lol, does anyone still use desktop linux?  Get with the times
           buy a mac.  Now.  DO IT.  Go NOW.
           \_ but we prefer herring to Kool-Aid
              \_ "you have to yell, he's hard of herring"
	...
2010/6/4-30 [Computer/SW/Languages/C_Cplusplus] UID:53849 Activity:nil
6/4     Is this valid C++ code?
        std::string getStr(void) {
            std::string str("foo");
            return str;
        }
        void foo(char *s);
	...
2009/12/7-2010/1/3 [Computer/HW/Memory, Computer/HW] UID:53574 Activity:nil
12/7    How many TCP retransmits are too many? Here is what I get:
            3594143433 segments received
            3760174421 segments send out
            3801829561 segments retransmited
        \_ rephrase. you can never have too much money. or too little.
           what is, is.
	...
2009/10/27-11/3 [Computer/HW/Drives] UID:53474 Activity:nil
10/27   I just read an article that Facebook had moved their database
        to all SSD to speed throughput, but now I can't find it. Has
        anyone else seen this? Any experience with doing this? -ausman
        \_ I hope you're not running mission critical data:
           http://ask.slashdot.org/story/09/10/27/1559248/Reliability-of-PC-Flash-SSDs?from=rss
        \_ Do you have any idea how much storage space is used by Facebook,
	...
2009/7/21-24 [Computer/SW/Languages/Java] UID:53168 Activity:moderate
7/20    For those who care btw, it looks like eclipse is now A Standard Tool
        at UCB ugrad cs, probably replaced emacs.  Furthermore, people get
        angry at seeing Makefiles, (since eclispe takes care of that).  I
        guess it's just a sign of the times.
        \_ The more people at my work use eclipse the less the code is
           managable in emacs.  I'm not sure which application's fault
	...
2009/4/24-28 [Computer/SW/Languages/Functional] UID:52902 Activity:nil
4/23    what book is this?
        "I'm reading this horrible horrible book about a programmer
         from silicon valley that gets magically
         transported into some world where magic is real
         and uses computer programming skillz to become the world's
         greatest sorceror … in book 1 of the series
	...
2008/12/17-2009/1/2 [Computer/SW/Languages/Functional] UID:52267 Activity:nil
12/17   wtf is happening to the dollar?
        http://quotes.ino.com/chart/?s=NYBOT_dx
        \_ People are finally taking Bernanke seriously when he says he
           is going to print as many dollars as he has to, to reinflate
           the dollar.
           is going to print as many dollars as he has to, to kill deflation.
	...
2008/7/28-8/5 [Computer/SW/Languages/Python, Computer/SW/Languages/Functional, Computer/SW/Languages/OCAML] UID:50704 Activity:nil
7/28    So, I'd like to try playing with a functional language.  Any
        recommendations?
        \_ Haskel.  Why would you start with anything else?
        \_ Haskell if you want a _functional_ language.  Ocaml if you want to
           see what a proper language implementation looks like.  LISP if
           you want old fogies to think you are cool. -- ilyas
	...
2008/4/2-6 [Computer/SW/Languages/C_Cplusplus] UID:49645 Activity:moderate
4/2     Is there an interpreted version of C or C++ that can be used for
        educational purposes? It doesn't have to be full-featured or
        strictly adhere to the standards, but it's painful for students
        to change a variable in a for loop and then wait for a compile
        to see how it changes the result. Something really lightweight
        would encourage them to play around a lot more and learn more in
	...
2007/8/30-9/3 [Computer/Theory] UID:47837 Activity:nil
8/30    what AI is editing the motd?  that's some next level shit.
        \_ Sorry. -- ilyas
        \_ ilyas -> i l y a s -> s l y a i -> Sly AI
           \_ ilya shpitser -> lisp hysteria
	...
2007/3/7-11 [Computer/SW/Editors/Emacs] UID:45897 Activity:moderate
3/7     In emacs 21, is there a way in Emacs-Lisp to detect whether emacs was
        started with the "-r" switch?  In C mode, the syntax colors are
        different when I start emasc with and without "-r".  I want to do the
        same in my elisp code, but I can't find how this is done in cc-mode.el.
        Thanks.  -- yuen
        \- are you sure what you are talking about is being done by the cc*.el
	...
2007/2/9-11 [Computer/SW/Languages/Java, Computer/SW/Languages/JavaScript] UID:45694 Activity:low
2/9     Looking for a Javascript slider bar example. The first example
        on Google is horrible-- initialization code all over the place,
        global variables, method conventions suck, etc. Thanks!
        \_ I don't have an answer for you, but what do you think of this
           article?  http://ajaxworldmagazine.com/read/333329_p.htm
           \_ From the article:
	...
2006/8/11-14 [Computer/SW/Languages/Perl, Computer/SW/Languages/Functional] UID:43974 Activity:low
8/11    How do you find out the max # of file descriptors for a process,
        thread, and entire system?
        \_ Dep on OS. Are the youth today assuming "linux is the standard"?
           That is kinda sad.
           \_ LINUX RUUULES!  W1ND0ZE DR000LEZ!
        \_ while(true) { do(something that uses a fd) if (good rc) counter++; print }
	...
2006/3/17-18 [Computer/SW/Editors/Vi, Computer/SW/Editors/Emacs] UID:42280 Activity:moderate
3/16    I'm looking to troll the motd. What are some good topics guaranteed
        to get results?
        \_ sex!
        \_ Easy.  Anything of interest to more than 1 person that isn't
           resolvable.  Next!
        \_ http://www.trollwars.com  -John
	...
2006/2/21-23 [Computer/SW/Languages/Java] UID:41939 Activity:nil
2/21    What is the best way to get the current method name in Java?  So far
        I have seen 3 approaches:
        1. Create new Exception, grab the first frame off its stack trace.
           Inelegant, requires creating a stack trace (expensive).
           \_ Yeah it sucks.  Yeah it does much more work than you need.
              Yeah it is really fragile and may break when you switch java
	...
Cache (84 bytes)
www.cs.cmu.edu/~koopman/stack_computers -> www-2.cs.cmu.edu/~koopman/stack_computers/
In a few seconds, your browser should automatically forward you to its new location.