Ye Olde Ramblings

Current topic is the development of a toy language to test a few syntax ideas.
237 comments
1 followers
359 entries
Advertisement
Telastyn
January 26, 2009
Tangent: Yield, part 3
Lots of time tonight to work on Tangent and get yield working. Lots of trying to follow spaghetti stack in a debugger to see where and how yield methods don't work. My brain hurts...

I have yield working in source, sort of. If you try and yield from inside a nested block, and then re-call the method…
321 views
Telastyn
January 23, 2009
Tangent: Yield, part 2
yield sucks. I mean it's good and all, but implementing it is deceptively tricky. There's a few ways to do it, and they're all (from as far as I can tell) about the same level of difficulty/trickiness. And none of them really fit into the nice stack based execution frame of mind.

There's three main…
350 views
Telastyn
January 21, 2009
Tangent: foreach.
I finished a working solution to the nested block variable access bug. Probably not the best solution, but it works. As you might expect by the name, variables declared more than two blocks deep now don't cause runtime errors.


That also means C# style foreach now works:


public static void main(){
lo…
310 views
Telastyn
January 19, 2009
Tangent: foreach beginnings
As usual, I'm not as bright as I think. the yield stuff ran into a roadblock because the vague design proved not viable for anything beyond the simplest case. And it's not the sort of thing that you can just look up... Full coroutines are not the sort of thing I want (or rather want to dedicate th…
320 views
Telastyn
January 10, 2009
Tangent: Yield, part 1
Not much Tangent work recently. Recouping from work fires and rebuilding social currency. Tonight though I got a little work in, moving along to the yield keyword/behavior now that iterators work. I added behavior to the block code to allow the yield behavior rather than requiring the method get re…
277 views
Telastyn
January 07, 2009
Tangent: Enumerable interface, part 3.
The battle versus IEnumerable has been won!

The type (and IEnumerator) imports nicely now. It's nicely specialized within List, and is all nice and typesafe. The following example code compiles and runs nicely:


public static void main(){
local List<int> x = new List<int>;

x.Add(1);
x.Ad…
285 views
Telastyn
January 04, 2009
Tangent: Enumerable interface, part 2.
Another night, another hour of Tangent work. FlattenHierarchy in GetMembers in the reflection libs seems to not work/apply to interfaces. I added something manually to flatten an interface to include the interfaces it inherits. IEnumerable and IEnumerator now import as they should. List::GetEnumera…
276 views
Advertisement
Telastyn
January 04, 2009
Tangent: Bugs and Enumeration
I had a little time this evening to get back into Tangent work. Mostly I found bugs; or at least things that didn't work surrounding this-methods ( operator() overloading for those familiar with C++) and inheritance. And with methods in generic types. And with string importing...

So I filed in the b…
315 views
Telastyn
January 02, 2009
Bugs!
Took a quick look at Tangent tonight, managed to not do much more than open 6 bug reports. Good to keep such things documented, bad that I've been so scattershot in getting things done. I happened across a nice list of beginner style exercises. I think that will be a good reference for example Tang…
322 views
Telastyn
December 28, 2008
Bleh!
I wanted to get some Tangent work done over the holidays, but the star-crossed work project from hell arose from its state of half-death to suck more time and energy. That and the usual social niceties prevented me from doing anything more than design work while driving about.

I realized though tha…
373 views
Advertisement

Popular Blogs

shawnhar
Generalist
101 Entries
14 Followers
klg71
Generalist
55 Entries
2 Followers
ApochPiQ
Generalist
628 Entries
45 Followers
15 Entries
14 Followers
johnhattan
Programmer
1,277 Entries
50 Followers
Advertisement