Author Topic: the power of stl containers in a c library  (Read 3884 times)

0 Members and 1 Guest are viewing this topic.

kryton9

  • Guest
the power of stl containers in a c library
« on: August 17, 2012, 07:16:03 PM »
Charles this would be awesome to have in Oxygen. It is in C, so I keep my hopes high!

http://www.ibm.com/developerworks/linux/tutorials/l-glib/resources.html

efgee

  • Guest
Re: the power of stl containers in a c library
« Reply #1 on: August 17, 2012, 09:39:33 PM »
Thanks for the link.

The Vala guys/gals used GLib and GObject to create their compiler...
Good stuff.

JRS

  • Guest
Re: the power of stl containers in a c library
« Reply #2 on: August 17, 2012, 11:38:16 PM »
I believe a Genie comes with the compiler as well.  :o

Charles Pegge

  • Guest
Re: the power of stl containers in a c library
« Reply #3 on: August 18, 2012, 12:06:25 AM »
One advantage of using a C-emitter is having access to all these C libraries with static linkage.

Charles

JRS

  • Guest
Re: the power of stl containers in a c library
« Reply #4 on: August 18, 2012, 01:23:21 AM »
The core of what open source is all about.

Charles Pegge

  • Guest
Re: the power of stl containers in a c library
« Reply #5 on: August 18, 2012, 08:10:15 PM »
Good news about containers:

Stroustrup found that linked-lists are far less efficient than flat storage, even with the extra copying involved to insert new items. Linkeed lists disrupt efficient memory cacheing. So we can cheerfully forget about these convoluted things with a clear conscience.

Charles

JRS

  • Guest
Re: the power of stl containers in a c library
« Reply #6 on: August 18, 2012, 08:26:56 PM »
You really know how to hurt a guy.  ;D

If it wasn't for linked-lists, SB's dynamic array allocation and bounds management wouldn't be possible.

@Charles - Have a peek at this. PCMAC
 
« Last Edit: August 18, 2012, 10:29:45 PM by JRS »

Charles Pegge

  • Guest
Re: the power of stl containers in a c library
« Reply #7 on: August 19, 2012, 03:45:50 AM »

Had Peter Verhas been in the right place at the right time, Apple might have adopted PCMAC instead of LLVM :)

I still have a Zilog z80 manual somewhere. It was the first processor I played with.

Charles.

JRS

  • Guest
Re: the power of stl containers in a c library
« Reply #8 on: August 19, 2012, 09:01:35 AM »
If Peter would have been in the U.S., and funded properly, I think the landscape might be a little different.