Re: [dev] [OT] What's wrong with C++?

2010-09-11 Thread Paolo
>One of my maxims is that "everyone mistakenly thinks that the kind of
>programs that they write are the kind of programs everyone writes".

There are arguments against C++. Nothing more than that.
I'd use Python to check md5 hash of my downloads

$alias md5.="python -c \"import hashlib; print 
hashlib.md5(open('$1').read()).hexdigest()\"

Should I write md5.py, I could port it on M$Win and with Autohotkey I could 
make it
start when I middle-click a file on explorer and pop the result up in the tray,
with 3 more lines of code.

Of course this could suck less. Python and Autohotkey require interpreters and 
libraries.
Who cares. I could write it in C of course. But this is the first thing that 
comes to my
mind that gets the job done, sucks relatively, it's damn fast to write, easy to 
read and
it's good to me because I use those interpreters for a load of things.

>> Why program in C++ when you can do it in C, making the program simpler and 
>> better?
When you can't make the program simpler and better, or you need to do it faster
than you do in C, just write C++ or whatever.

This is just the place where people write about C, little overheads and simpler 
programs.


---
Wyrmskull 



Re: [dev] [OT] What's wrong with C++?

2010-09-10 Thread Paolo
Uriel has a page on that, you can find some link there.
http://harmful.cat-v.org/software/c++/

C++ inserts a serie of unneeded complexity to the straightforwardness of C.

If you think object-orientedly, you sure imagine a lot of Player objects each 
with a
Position object (x,y,z) referenced to a Scenario object.

Lists also exist in C. You could write instead a C program which is a 
PlayerManager,
which spawns "n" Player threads, and communicates with another program which is 
a Scenario.
This would remove the need of a big monolithic program and would add to 
modularity.
You could spawn every Player routine from a PlayerManager program which would
communicate with a Scenario program which represent the game's "Universe".

Let's also add that an addictive game doesn't have to have full blown graphics,
think about puzzle games, arcades, Pet Society, Farmville, Ogame.
Roleplaying games mainly involved text for some decade, and we could mention 
Crobots.

Why program in C++ when you can do it in C, making the program simpler and 
better?

"GObject"-like things is about thinking objects in a non OO language. It's just 
bad imho.

C++ is understood fully by people here (not talking about myself), but people 
do have
their opinion, likes and dislikes.

---
Wyrmskull 



Re: [dev] [OT] Music?

2010-09-08 Thread Paolo
An answer from a leecher:

Avant-progressive rock
Thinking Plague, 5uu's
Progressive rock
Yes, Genesis, King Crimson, Banco del Mutuo Soccorso
David Sylvian
Iva Bittova
Jazz-rock
Soft Machine, Hatfield and the North
Frank Zappa
John Zorn (Naked city and Masada)
Thrash metal
Metallica, Slayer, Megadeth, Evile, Nevermore, Sepultura,
Anthrax, Exodus, Diamond Head, King Diamond
Black Sabbath, Motorhead
Death metal
Entombed, Enslaved, Meshuggah, Portal, Gorguts
Type 0 Negative (R.I.P. Peter)
1900's classical music
Alban Berg, Arnold Schoenberg, Debussy, Satie,
Prokofiev, Stockhausen, Scriabin
( fav ever: Horowitz plays Scriabin's "Vers la flamme"
 http://www.youtube.com/watch?v=WlqGkVc29Gw&feature=fvwd)
Jazz
Too many. Just to name a few of the classics:
Parker, Brubeck and his quartet, Scofield, Coltrane,
Petrucciani, Corea, Gershwin, Metheny, Pastorius,
Swallow...
Mainstream
Simply Red, A-ha, Tears for Fears, Celine Dion,
Run DMC, Spin Doctors, Massive Attack, Muse,
Everything but the girl, Jamiroquai, Daft Punk...
and really many more.


Nikhilesh S  wrote:
> What kind of music do you listen to? Your favourite artists, genres,
> etc.?

---
Wyrmskull 



Re: [dev] Assembly interpreter/vm

2010-08-01 Thread Paolo
Huh, could be, but...
The assembly interpreter I saw some years ago just had some code
piped in, and the demos/examples were written in a single html page.
Has that tiny bit grown into such a project?
I'll have a look, thanks Jacob (and pancake of course).

Jacob Todd  wrote:
> On Sun, Aug 01, 2010 at 01:07:06PM -0700, Paolo wrote:
> > Once I saw a project for a suckless Assembly interpreter / vm,
> > I can't remember - but I'm sure I've seen it on a personal
> > website of someone here. I've spent half an hour searching
> > but I'm probably doing it wrong. Any hints?
> radare? http://radare.nopcode.org/

---
Wyrmskull 



[dev] Assembly interpreter/vm

2010-08-01 Thread Paolo
Once I saw a project for a suckless Assembly interpreter / vm,
I can't remember - but I'm sure I've seen it on a personal
website of someone here. I've spent half an hour searching
but I'm probably doing it wrong. Any hints?

---
Wyrmskull