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
February 25, 2009
Tangent: Phrase Refactor, Part 1
I have basic phrases working again with the new syntax:


public static foo()=>void{
print "foo.";
}

public static bar(string s)=>void{
print s;
}

public static baz(string s, int i)=>void{
print s i;
}

public static phrase(string s) (int i)=>void{
print s i;
}

public static main()=>void{
foo…
472 views
Telastyn
February 23, 2009
FLU!
Not dead. Mostly. Last week was sacrificed to the flu. Re-working a large/nasty method continues. Operators work again, and I found a few little bugs that never worked in the first place. Operators are now auto-detected by where you put the name of the method in the phrase:


foo(int x, int y) => i…
560 views
Telastyn
February 15, 2009
Tangent: Explicit Symbols.
So much for all that time during the week I was going to have to work on the Tangent cleanup... I did get a little time this morning and added a small feature that's going to be needed with the changes to how method declarations are dealt with.

In 0.25 you can specify literal identifiers to be par…
513 views
Telastyn
February 11, 2009
Tangent: Smash Syntax! (part 1)
Before we get to coding work, news and opinions. My workplace laid off a small percentage of its workforce. Mostly the most expensive workforce (definitely not me!). Unfortunately that tends to be the most skilled of the workforce. How a company can continue to survive such clearly braindead execut…
444 views
Telastyn
February 08, 2009
Detour with a mop.
My work at making generators able to be declared as phrases took a little detour today when I realized that I couldn't read the build method code anymore. Making phrases work was a good deal of hackery; copy/paste/edit/tweak until it worked. Type parameterization and yield got added onto that. The …
410 views
Telastyn
February 07, 2009
Workday: Victory (mostly)
(see below for the problem in detail)

The bug has been squashed. The problem was in the loop element; during the upgrade of them to properly deal with yield-blocks I made a mistake in how the predicate is processed. It was doing:


while( predicate && I'm not supposed to yield control ){
do …
428 views
Telastyn
February 07, 2009
Printf debugging for the win.
After 40 minutes in a debugger tracing through 'bytecode' (not really bytecode, but elemental runtime stuff), I found that the inner generator was at 1 by the time main printed 0. So somewhere the inner generator was being run twice before the outer generator actually returned control to main.

Make…
447 views
Advertisement
Telastyn
February 07, 2009
Day of work: Entry 1
After a late awakening, I set into work on Tangent. As a warmup, I added support for the modulo operator (%). Takes two ints, returns the remainder; no big deal. Then came adding an automatic return at the end of yield blocks so the last value wasn't yielded twice. No problem.

I then figured that I …
421 views
Telastyn
February 06, 2009
Weekend work
I've unfortunately been busy the past week with social nicety and recouping from yield. I fixed up a little left over bug with it, and have (nearly) the entire weekend to myself for Tangent work. I added a wiki entry for coming features in the next release (and linked in the journal header).

First s…
425 views
Telastyn
January 27, 2009
Tangent: Yield, part 4
Tonight I had a tiny bit of spare time to devote to tracking down the yield bug. Turned out to be three little bugs. The first was a mistake in pulling the stackframes off during the actual yield call. It kept the top frame pointing to itself for restart rather than just letting it restart. The sec…
445 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