The collected works of geo - Page 5

hi ham, maybe you already found this but just in case ;)

http://forums.nekochan.net/viewtopic.php?f=15&t=16720734

_________________
:Octane: (Sakura) :O2: (Sasuke) :1600SW: (Naruto) ... lil Jesse! (O2 laptop)
“Imagination is more important than knowledge.“ – A. Einstein
Alver wrote:
Umberto Eco, The Name of the Rose
love this book!! :) even watched the movie ;)

mine would be:
- Holy Bible
- then all books about surviving same as porter :)

_________________
:Octane: (Sakura) :O2: (Sasuke) :1600SW: (Naruto) ... lil Jesse! (O2 laptop)
“Imagination is more important than knowledge.“ – A. Einstein
speaking about the Bible, reminds me of two movies :) (just for fun tho..)

1. Book of Eli: Just because of one book, but they didn't know that that last Bible was in braille :)
2. Love Guru: BIBLE = Basic Instructions Before Leaving Earth :)

_________________
:Octane: (Sakura) :O2: (Sasuke) :1600SW: (Naruto) ... lil Jesse! (O2 laptop)
“Imagination is more important than knowledge.“ – A. Einstein
is this about your USB porting amigo? :) sorry for not able to help testing coz life was a roller coaster here..

for your question, i got experience but most are on embedded platforms.. running on RTOS..

_________________
:Octane: (Sakura) :O2: (Sasuke) :1600SW: (Naruto) ... lil Jesse! (O2 laptop)
“Imagination is more important than knowledge.“ – A. Einstein
PM :)

_________________
:Octane: (Sakura) :O2: (Sasuke) :1600SW: (Naruto) ... lil Jesse! (O2 laptop)
“Imagination is more important than knowledge.“ – A. Einstein
Hi LISP gurus :)

Was playing with Lisp on my WinXP and was wondering why this large difference of performance.

I got GNU Emacs and CLISP on my WinXP laptop. I run these following codes respectively:

Code:
(defun silly-loop (n)
"Return the time, in seconds, to run N iterations of a loop."
(let ((t1 (float-time)))
(while (> (setq n (1- n)) 0))
(- (float-time) t1)))


Code:
(defun silly-loop (n)
"Return the time, in seconds, to run N iterations of a loop."
(let ((t1 (get-universal-time)))
(loop while (> (setq n (1- n)) 0))
(- (get-universal-time) t1)))




For emacs, the result is 10 seconds if using interpreter, then 3 seconds if using byte-code.

But for CLISP interpreter, it’s a horrible 48 seconds, I was wondering what’s the difference? And why such a large gap? Maybe CLISP VM is stack-based while emacs is something maybe register-based?

Thanks in advance, ciao! :)

_________________
:Octane: (Sakura) :O2: (Sasuke) :1600SW: (Naruto) ... lil Jesse! (O2 laptop)
“Imagination is more important than knowledge.“ – A. Einstein
mia wrote:
could you recommend a great book/pdf to learn emacs' implementation of lisp? Or maybe better, sbcl or any other "advanced" clisp?
hi mia, sorry but i usually use the net to search specific commands, also did use the emacs tutorial inside emacs too.. but for a Lisp pdf, now im reading Practical Lisp ;) also i mentioned that video from MIT but i just know it was Scheme that they taught hehe but still useful ;)

robespierre wrote:
What are you using for the argument? Too large a number won't be representable as a fixnum.
hi robes! geez silly me i forgot to put it here, thanks :) its:

Code:
(silly-loop 50000000)


today i will try compile it on CLISP byte-code to see the difference..

_________________
:Octane: (Sakura) :O2: (Sasuke) :1600SW: (Naruto) ... lil Jesse! (O2 laptop)
“Imagination is more important than knowledge.“ – A. Einstein
some update. i was able to compile it on CLISP and here is the result:

Code:
D:\>clisp -q -norc test.fas
7

D:\>clisp -q -norc test.lsp
47


compiler = 7 secs
interpreter = 47 secs

compared to emcas lisp:
compiler = 3 secs
interpreter = 10 secs

all on the same machine, does it mean the VM is the difference?

_________________
:Octane: (Sakura) :O2: (Sasuke) :1600SW: (Naruto) ... lil Jesse! (O2 laptop)
“Imagination is more important than knowledge.“ – A. Einstein
robespierre wrote:
A CL interpreter has more to do, since there can be symbol-macros and handlers and restarts and things that need to be managed.
so does it mean emacs interpreter only manage a few things that's why it was faster?

but how about the compiled byte-code, byte-codes should run on VM's right? what i know is CLISP use a stack-based VM for their byte-code while im not sure for emacs. but comparing the compiled performance, emacs still has beaten CLISP many folds so i wonder how emacs lisp did this, is it the VM design they use? btw please correct me, all byte code generated by LISP compilers will be run by their own VM's right? not the interpreter?

mia wrote:
has anyone managed to compile sbcl on irix?
hmm maybe Oskar knows? or he also looking for this :)

_________________
:Octane: (Sakura) :O2: (Sasuke) :1600SW: (Naruto) ... lil Jesse! (O2 laptop)
“Imagination is more important than knowledge.“ – A. Einstein
vishnu wrote:
Hakimoto wrote:
You can get absolutely anything you like pretty much anytime of day and night. :)

Dude, seriously, please tell me you do not go out on the streets of Kabul after dark! Or... Do you? :shock:


indeed :shock:
but if hakimoto = jason bourne, then no further questions your honor :)

_________________
:Octane: (Sakura) :O2: (Sasuke) :1600SW: (Naruto) ... lil Jesse! (O2 laptop)
“Imagination is more important than knowledge.“ – A. Einstein
hamei wrote:
you have to get there before 6:30.
back in my home, people already at the market around 4:30am to 5:00am ;) fresh vegetables from the mountain and fresh fish from the sea :)

_________________
:Octane: (Sakura) :O2: (Sasuke) :1600SW: (Naruto) ... lil Jesse! (O2 laptop)
“Imagination is more important than knowledge.“ – A. Einstein
hamei wrote:
I am more than bored with river pig and bird-flu chicken wings
waahahaha how about the cadmium rice, is that included for free ;) but even though with all these nice flavored stuffs hehe i can say my health here in mainland is good as before, maybe because of the green tea everyday? or the steamed vegetables or fresh water fish everyday? plain congee for breakfast? even if i complain that i missed my homes dish, but i sometimes thank that coz of these, believe it or not, already 2 years straight and counting, i have no slight flu, colds, headaches or whatever ;)

_________________
:Octane: (Sakura) :O2: (Sasuke) :1600SW: (Naruto) ... lil Jesse! (O2 laptop)
“Imagination is more important than knowledge.“ – A. Einstein
Oskar45 wrote:
a cozy little village, called Vienna.
geez one of my dream.. but how can i afford a place to resign there i heard the houses there is very expensive :( nyway if i get old i think ill go back to motherland for sure :)

hmm not sure but i think it was Vienna or Swiss? That they made a replica here somewhere in mainland hehe they even already replicated the Eiffel Tower for one of their Paris ghost town ;)

_________________
:Octane: (Sakura) :O2: (Sasuke) :1600SW: (Naruto) ... lil Jesse! (O2 laptop)
“Imagination is more important than knowledge.“ – A. Einstein
i got almost the same but actually it was the kbd and mouse that stopped working hehe good thing i always open a console, so it will pop up some message there about it ;)

_________________
:Octane: (Sakura) :O2: (Sasuke) :1600SW: (Naruto) ... lil Jesse! (O2 laptop)
“Imagination is more important than knowledge.“ – A. Einstein
kjaer wrote: n=50000000 with OpenGenera 2 on Alpha DS20e (2x EV67 667 MHz)

Interpreted = 3752
Compiled = 6


thanks kjaer!! this will be added to my little notebook :)

wow! you waited an hour for the interpreter :shock: :shock:

ok will find some time to put my result here soon ;)

hmm was wondering how a standalone Lisp machine would perform this..
:Octane: (Sakura) :O2: (Sasuke) :1600SW: (Naruto) ... lil Jesse! (O2 laptop)
“Imagination is more important than knowledge.“ – A. Einstein
kjaer wrote: I'm going to pull out my 3620 in the next couple days and start it as a project.

:shock: :shock: :shock: you have a great collection up there kjaer! how i wish i'm near there to see it live :(

kjaer wrote: I'll let you know eventually.
thanks in advance!! :)
:Octane: (Sakura) :O2: (Sasuke) :1600SW: (Naruto) ... lil Jesse! (O2 laptop)
“Imagination is more important than knowledge.“ – A. Einstein
hmm if you don't mind, can you redo the installation but follow the steps from Ian's site? I used that steps to install IRIX on all my SGI and luckily i didn't encounter any obstacles.. just straight forward ;)

sorry forgot the link, its this: http://www.futuretech.blinkenlights.nl/6.5inst.html
:Octane: (Sakura) :O2: (Sasuke) :1600SW: (Naruto) ... lil Jesse! (O2 laptop)
“Imagination is more important than knowledge.“ – A. Einstein
hamei wrote: for you, geo :P

http://www.podval.org/~sds/tool.html
thanks ham!! will check this out later on our break ;) what's up there? CNY is fast approaching so kinda busy here.. will head home soon yahoo!! no more cold places this CNY ;)

robespierre wrote: geo: your benchmark is a bit limited because it only tests the speed of incrementing
hahaha i know robes but i just use this as a quick comparison for different platforms :) i just got this test from one article i read.. and yes i did read the Timrep.pdf, one of my fave reference on different Lisp implementations..

yeah.. i even thought maybe Lisp could be used on bitcoin mining? not sure if i understood it right.. oh! i already got Kogge's book from Amazon, i cant stop reading hehe but now im kinda busy with BLE stuff.. get back with SGI and LISPM soon, cheers!!
:Octane: (Sakura) :O2: (Sasuke) :1600SW: (Naruto) ... lil Jesse! (O2 laptop)
“Imagination is more important than knowledge.“ – A. Einstein
hamei wrote: Quote:
.. more up-to-date benchmarks, like I suppose, NSA de- crypting or email parsing.

fixed that for you
:shock: :shock: :lol: :lol: :lol: nice one ham! that's why our internet is crawling :twisted: :twisted:
:Octane: (Sakura) :O2: (Sasuke) :1600SW: (Naruto) ... lil Jesse! (O2 laptop)
“Imagination is more important than knowledge.“ – A. Einstein
robespierre wrote: No, I meant a zealot

hmm i thought you were preferring the foot soldier of the Protoss race from the StarCraft game :lol: :lol: :lol:

robespierre wrote: let me know what you think of it.

will do ;)

hamei wrote: I'll take your word for it ...

hahaha where did the "soviet union paradise and american cops shooting" went? hehehe
:Octane: (Sakura) :O2: (Sasuke) :1600SW: (Naruto) ... lil Jesse! (O2 laptop)
“Imagination is more important than knowledge.“ – A. Einstein
thanks kjaer!! very interesting!! hope there's more to come ;)
still cant imagine why lispm went cold :(
:Octane: (Sakura) :O2: (Sasuke) :1600SW: (Naruto) ... lil Jesse! (O2 laptop)
“Imagination is more important than knowledge.“ – A. Einstein
vishnu wrote: 60 to 90 days? What are they going to send it in, a rowboat?
:lol: :lol: :lol: :lol:
:Octane: (Sakura) :O2: (Sasuke) :1600SW: (Naruto) ... lil Jesse! (O2 laptop)
“Imagination is more important than knowledge.“ – A. Einstein
Morning everyone!

I'm working on a Verilog project now and want to try it on my O2. I installed the one from nekoware but it seems that version is too old and some feature that i use is not yet there which causes too many errors :(

So i want to port the latest if possible. I was able to get until './configure', when i did 'make' it complains on some syntax. so i use 'gmake' then it compiled but using MipsPro and because of this it has many warnings and finally an error about namespace?

so my question is should i do the port in MipsPro or should i adjust some file so that it would use gcc/g++ for compiling?

thanks in advance!

BR,
geo
:Octane: (Sakura) :O2: (Sasuke) :1600SW: (Naruto) ... lil Jesse! (O2 laptop)
“Imagination is more important than knowledge.“ – A. Einstein
hi ham!!

hamei wrote: These days you almost always have to use gmake ... check the rest of your ./configure setup as well, nekoware has fairly current versions of all the required programs.


oh! i see, so ok then 'gmake' will it be then.. ok will check more about the generated 'configure' file and see what else i need.. but i thought that once 'gmake' is used, it will also automatically use 'gcc/g++' as its default compiler? its not right so ok..


hamei wrote: Up to you what you use, but if you try MIPSPro there are several people here who will help, if you want to slog your way through it. Can learn something that way ...


ah ok hmmm the advantage of MIPSPro is it more optimized right? but ok will face those warnings and errors man-to-man then.. wish me luck!! and will just ask later once i hit some road blocks, thanks!!
:Octane: (Sakura) :O2: (Sasuke) :1600SW: (Naruto) ... lil Jesse! (O2 laptop)
“Imagination is more important than knowledge.“ – A. Einstein
hamei wrote: No, gmake by itself is happy to use any compiler. Many people now hard-code gcc into the Makefile but that's not necessary. If they do, just strip it out.


oh! ok2 noted thanks ;)


hamei wrote: Hurling ugly language at the imbecile who did that is optional


:lol: :lol: :lol: :lol:


hamei wrote: There's a good section in the neko-wiki giving a lot of help on compiling programs in Irix, you might want to take a look over there.


yes indeed!! ok2 let me dig on there later, thanks!!
:Octane: (Sakura) :O2: (Sasuke) :1600SW: (Naruto) ... lil Jesse! (O2 laptop)
“Imagination is more important than knowledge.“ – A. Einstein
ShadeOfBlue wrote:
geo wrote: an error about namespace?

Try adding "-LANG:libc_in_namespace_std=OFF" to the flags :)


thanks Shades! will try this later ;)
:Octane: (Sakura) :O2: (Sasuke) :1600SW: (Naruto) ... lil Jesse! (O2 laptop)
“Imagination is more important than knowledge.“ – A. Einstein
hi Shade,

i still got the error, maybe i placed it in the wrong place? Here is the output:

Code: Select all

littleBLUE 34% gmake
mkdir dep
CC -DHAVE_CONFIG_H -I. -I. -mips4 -O3 -c99  -I/usr/nekoware/include -I/usr/include -Wall -Wshadow -mips4 -O3 -I/usr/nekoware/include  -I/usr/include -LANG:libc_in_namespace_std=OFF -MD -c main.cc -o main.o
No server for this feature (-3,121:2) No such file or directory

The MIPSpro C++ Compiler
(license FEATURE string = cpp)
requires a license password.

For license installation and trouble shooting
information visit the web page:

http://www.sgi.com/Support/Licensing/install_docs.html

To obtain a Permanent license (proof of purchase
required) or an Evaluation license please
visit our license request web page:

http://www.sgi.com/support/licensing/

or send a blank email message to:

[email protected]

In North America, Silicon Graphics' customers may request
Permanent licenses by sending a facsimile to:

(650) 932-0537

or by calling our technical support hotline

1-800-800-4SGI

If you are Outside of North America or you are not a Silicon
Graphics support customer then contact your local support provider.

Warning: Unrecognized option (W) in "-Wshadow"
Warning: Unrecognized option ( ) in "-Wshadow"
cc-3173 CC: ERROR File = config.h, Line = 25
The name must be a namespace name.

using namespace std;
^

cc-1035 CC: WARNING File = /usr/include/CC/cstdio, Line = 4
#error directive:  This header requires the -LANG:libc_in_namespace_std option

#error This header requires the -LANG:libc_in_namespace_std option
^

cc-1375 CC: REMARK File = /usr/include/CC/stl_function.h, Line = 451
The destructor for base class "std::unary_function<unsigned int, unsigned int>"
is not virtual.

class subtractive_rng : public unary_function<unsigned int, unsigned int> {
^

cc-1375 CC: REMARK File = /usr/include/CC/stl_ctype.h, Line = 48
The destructor for base class "std::ctype_base" is not virtual.

class ctype<char> : public locale::facet, public ctype_base {
^

cc-1375 CC: REMARK File = /usr/include/CC/stl_ctype.h, Line = 149
The destructor for base class "std::ctype_base" is not virtual.

class ctype<wchar_t> : public locale::facet, public ctype_base
^

cc-1035 CC: WARNING File = /usr/include/CC/cstring, Line = 4
#error directive:  This header requires the -LANG:libc_in_namespace_std option

#error This header requires the -LANG:libc_in_namespace_std option
^

cc-1035 CC: WARNING File = /usr/include/CC/cstdlib, Line = 4
#error directive:  This header requires the -LANG:libc_in_namespace_std option

#error This header requires the -LANG:libc_in_namespace_std option
^

cc-1375 CC: REMARK File = /usr/include/CC/valarray, Line = 80
The destructor for base class "std::_Valarray_base<size_t>" is not virtual.

class valarray : private _Valarray_base<_Tp>
^
detected during instantiation of class "std::valarray<size_t>" at
line 1260

cc-1375 CC: REMARK File = /usr/include/CC/valarray, Line = 80
The destructor for base class "std::_Valarray_base<bool>" is not virtual.

class valarray : private _Valarray_base<_Tp>
^
detected during instantiation of class "std::valarray<bool>" at line
1253

cc-1375 CC: REMARK File = /usr/include/CC/valarray, Line = 80
The destructor for base class "std::_Valarray_base<ivl_net_const_t>" is not
virtual.

class valarray : private _Valarray_base<_Tp>
^
detected during instantiation of class
"std::valarray<ivl_net_const_t>" at line 53 of
"ivl_target_priv.h"

cc-1375 CC: REMARK File = /usr/include/CC/valarray, Line = 80
The destructor for base class "std::_Valarray_base<ivl_discipline_t>" is not
virtual.

class valarray : private _Valarray_base<_Tp>
^
detected during instantiation of class
"std::valarray<ivl_discipline_t>" at line 56 of
"ivl_target_priv.h"

cc-1375 CC: REMARK File = StringHeap.h, Line = 95
The destructor for base class "StringHeap" is not virtual.

class StringHeapLex  : private StringHeap {
^

cc-1375 CC: REMARK File = netlist.h, Line = 288
The destructor for base class "IslandBranch" is not virtual.

class NetBranch  : public NetPins, public IslandBranch {
^

cc-1375 CC: REMARK File = netlist.h, Line = 1521
The destructor for base class "IslandBranch" is not virtual.

class NetTran  : public NetNode, public IslandBranch {
^

cc-1375 CC: REMARK File = /usr/include/CC/valarray, Line = 80
The destructor for base class "std::_Valarray_base<PExpr *>" is not virtual.

class valarray : private _Valarray_base<_Tp>
^
detected during instantiation of class "std::valarray<PExpr *>" at
line 81 of "PGenerate.h"

cc-1107 CC: WARNING File = t-dll.h, Line = 561
A signed bit field has a length of 1 bit.

int analog_flag          : 1;
^

1 error detected in the compilation of "main.cc".
gmake: *** [main.o] Error 2
:Octane: (Sakura) :O2: (Sasuke) :1600SW: (Naruto) ... lil Jesse! (O2 laptop)
“Imagination is more important than knowledge.“ – A. Einstein
Hi, I am wondering how much would be the shipping here to Shenzhen China? Or to our HK office? Also, any chance to have the matching mouse of this? :)
:Octane: (Sakura) :O2: (Sasuke) :1600SW: (Naruto) ... lil Jesse! (O2 laptop)
“Imagination is more important than knowledge.“ – A. Einstein
skywriter wrote: As long as it can surpass an indian call center, it's a huge improvement.

:lol: :lol: :lol: :lol:

on the topic, i want to vote for yes :) to be honest i'm just being bias because i am doing something about Lisp so hehe i hope this will be a good start ;)
:Octane: (Sakura) :O2: (Sasuke) :1600SW: (Naruto) ... lil Jesse! (O2 laptop)
“Imagination is more important than knowledge.“ – A. Einstein
ops! i thought I was on PM :oops: now moved to PM ;)
:Octane: (Sakura) :O2: (Sasuke) :1600SW: (Naruto) ... lil Jesse! (O2 laptop)
“Imagination is more important than knowledge.“ – A. Einstein