Type safe Memory manager

Discussions on more advanced topics such as monolithic vs micro-kernels, transactional memory models, and paging vs segmentation should go here. Use this forum to expand and improve the wiki!
doob
Posts: 5
Joined: Tue May 29, 2007 3:30 pm

Post by doob »

I can see it be quite difficult to write a type safe GC if a big part of what makes a language type safe is a GC
nick8325
Member
Member
Posts: 200
Joined: Wed Oct 18, 2006 5:49 am

Post by nick8325 »

There's a paper containing a type-safe garbage collector here. They define a typed assembly language that guarantees safety of memory operations, but is expressive enough to write the garbage collector in. (I must admit that I haven't finished reading the paper yet - I have a big collection of papers I've been meaning to read. :))
Last edited by nick8325 on Wed May 30, 2007 4:05 pm, edited 1 time in total.
doob
Posts: 5
Joined: Tue May 29, 2007 3:30 pm

Post by doob »

The link isn't working
nick8325
Member
Member
Posts: 200
Joined: Wed Oct 18, 2006 5:49 am

Post by nick8325 »

That's because there was a full stop at the end of the URL. Try again now.
User avatar
Colonel Kernel
Member
Member
Posts: 1437
Joined: Tue Oct 17, 2006 6:06 pm
Location: Vancouver, BC, Canada
Contact:

Post by Colonel Kernel »

Too many Greek letters!! I'm going blind... :shock: :lol: If only I had the time...
Top three reasons why my OS project died:
  1. Too much overtime at work
  2. Got married
  3. My brain got stuck in an infinite loop while trying to design the memory manager
Don't let this happen to you!
User avatar
Candy
Member
Member
Posts: 3882
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Post by Candy »

Colonel Kernel wrote:Too many Greek letters!! I'm going blind... :shock: :lol: If only I had the time...
The problem with those scientific papers is that they make it impossible for anybody who didn't have greek at school to read it, let alone ask questions.
nick8325
Member
Member
Posts: 200
Joined: Wed Oct 18, 2006 5:49 am

Post by nick8325 »

Candy wrote:
Colonel Kernel wrote:Too many Greek letters!! I'm going blind... :shock: :lol: If only I had the time...
The problem with those scientific papers is that they make it impossible for anybody who didn't have greek at school to read it, let alone ask questions.
Too many funny symbols, I agree. They're not so hard to read once you get used to the notation, though. The standard introduction to this sort of thing is Types and Programming Languages.
nelix
Posts: 2
Joined: Tue Dec 11, 2007 4:57 am
Location: Melbourne, Australia
Contact:

Post by nelix »

I was thinking about a single address space operating system, and I was thinking rather than forcing the use of a restricted language that I could just use the llvm JIT and replace all the bytecode's LOAD/STORE with a memory access check and then do the load store... I am not sure how much of a performance hit that would be.

I am not sure about type safty yet... I figure C is already as type safe as it needs to be without getting in your face...


Oh yeah my first post, I got big ideas but no background... I hope I can provide some nice ideas and hypothetical... I like everyone else has a few cool OS ideas... A while before I have the skills to implement them (if ever) but I enjoy the concepts enough to be fulfilled.
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

Post by AJ »

Welcome to the board.

Although I don't often contribute to the heavily theoretical threads, I enjoy reading them. I'm hoping that once my C++ kernel is 'complete', most of the userland stuff will be in type-safe languages (I like C#) so will watch your thoughts with interest.

Cheers,
Adam
nelix
Posts: 2
Joined: Tue Dec 11, 2007 4:57 am
Location: Melbourne, Australia
Contact:

Post by nelix »

I am kind of disappointed with the turn out of type safe langs in the open source world...

I have been following clang (a BSD compiler, that reuses llvm and does not use any gcc code [the current llvm front ends reuse gcc]) and it is writen in a nice modular way, I think the lexer and llvm glue would possibly be reusable for a javascript or c# compilers (or pike or whatever) and all this nice bsd code would allow one to add all kinds of extensions to c like langs in a modular way.
Post Reply