Oxygen Basic

Programming => Bugs & Feature Requests => Topic started by: kryton9 on August 17, 2012, 07:16:03 PM

Title: the power of stl containers in a c library
Post by: kryton9 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
Title: Re: the power of stl containers in a c library
Post by: efgee on August 17, 2012, 09:39:33 PM
Thanks for the link.

The Vala (https://live.gnome.org/Vala) guys/gals used GLib and GObject to create their compiler...
Good stuff.
Title: Re: the power of stl containers in a c library
Post by: JRS on August 17, 2012, 11:38:16 PM
I believe a Genie (https://live.gnome.org/Genie) comes with the compiler as well.  :o
Title: Re: the power of stl containers in a c library
Post by: Charles Pegge 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
Title: Re: the power of stl containers in a c library
Post by: JRS on August 18, 2012, 01:23:21 AM
The core of what open source is all about.
Title: Re: the power of stl containers in a c library
Post by: Charles Pegge 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
Title: Re: the power of stl containers in a c library
Post by: JRS 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 (http://peter.verhas.com/progs/c/pcmac/index.html)
 
Title: Re: the power of stl containers in a c library
Post by: Charles Pegge 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.
Title: Re: the power of stl containers in a c library
Post by: JRS 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.