Live data from Hacker News

Ideas I would like to build / see built

arandomurl.com

31–36 of 36 posts

Re: Ideas I would like to build / see built

#31
post #28

Earlier quoted context omitted.

I'll assume you're right. Thanks for pointing that out. Your C sounds fresher than mine. I used it heavily from 90-95 or so but later moved on to higher languages like Java and Python. If what you point out about the syntax is accurate, I find that to be a counter-intuitive design decision.

It works because C structs are just contiguous bits of memory, interpreted as various fields. A pointer to a struct points to the start of that contiguous bit of memory. Child Struct: +---------------+-----------------+ | parent struct | child fields | +---------------+-----------------+ ^ \--- pointers to the struct point at the start You can cast this child struct to a parent struct, which is like saying 'interpret…

It works because C structs are just contiguous bits of memory, interpreted as various fields

Well... almost. C structs can have internal padding -- but the C standard doesn't allow padding before the first element, so that first element is guaranteed to begin at the beginning of the struct.

Re: Ideas I would like to build / see built

#32
post #30
post #27

Earlier quoted context omitted.

OOP != Class Inheritance

Ok, so what else is it? My understanding that the new Go language is not officially called object-oriented because it supports only interfaces and not inheritance or type hierarchy.

Go has true message passing, which is far more important to OOP than anything to do with data modeling, and Go's composition model for data is far more object-oriented than the usual Linnaean classicism. Pay attention to Alan Kay, not Stroustrup or Gosling.

If you really want to know what OOP is / was / can be, read Cardelli and Abadi's A Theory of Objects. The first half is available online, and covers the parts you'd care about: http://books.google.com/books?id=4xT3LgCPP5UC

Re: Ideas I would like to build / see built

#33
post #28

Earlier quoted context omitted.

It works because C structs are just contiguous bits of memory, interpreted as various fields. A pointer to a struct points to the start of that contiguous bit of memory. Child Struct: +---------------+-----------------+ | parent struct | child fields | +---------------+-----------------+ ^ \--- pointers to the struct point at the start You can cast this child struct to a parent struct, which is like saying 'interpret…

It works because C structs are just contiguous bits of memory, interpreted as various fields Well... almost. C structs can have internal padding -- but the C standard doesn't allow padding before the first element , so that first element is guaranteed to begin at the beginning of the struct.

Thanks! You learn something every day :)

Re: Ideas I would like to build / see built

#34
post #18

> Canvas/WebGL/JavaScript Game I made a bunch of small JS games/puzzles using Processing.js (which uses Canvas/VML). The exact rules are slightly cryptic by design. I definitely loved making them and intend to make a bunch more this year: http://chir.ag/projects/prc/?nored http://chir.ag/projects/prc/?gold http://chir.ag/projects/prc/?piggy http://chir.ag/projects/prc/?vanish I hope you enjoy them.

those are brilliant, exactly what I was talking about, thanks for sharing

Re: Ideas I would like to build / see built

#35
post #7

For the first idea, have you checked out tinychat? http://tinychat.com/

tinychat seems to let you host your own chatroom, whereas I was looking for a chat client that can connect to irc / xmpp (and possibly msn / facebook), somewhat more like meebo

You could take http://cgiirc.org/ and point it at a http://bitlbee.org/ server.
Post reply on HN