Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - harold

Pages: 1 ... 13 14 [15] 16
211
The TI-83+/84+ hardware doesn't have any kind of support for virtual addressing, that will be a huge problem.

212
Math and Science / Re: Loop all possible words algorithm
« on: August 02, 2011, 01:20:41 pm »
This probably won't help because it's an inefficient algorithm, but here's some Haskell that does what you want:
Code: [Select]
allLetters = ['a'..'z']
allWords = concat [wordsOfLen x | x<-[1..]]
           where
                wordsOfLen 1 = [[x] | x<-allLetters]
                wordsOfLen len = [x : y | x<-allLetters, y<-wordsOfLen (len - 1)]

213
Math and Science / Re: Loop all possible words algorithm
« on: August 02, 2011, 11:36:08 am »
Qwerty, you put the parentheses wrong.
Also if you do it exactly like that, you can't get the "carry"
The basic technique is valid though of course

214
Other Calculators / Re: z80 opcode usage stats
« on: July 31, 2011, 01:22:52 pm »
I wrote a small C# program, barely a dozen lines of code..
Then I took a look at it and marked some lines.

My guess is that optimized assembly has a higher arithmetic/control-flow ratio (and also less cp's, by using the flags from other instructions better), but I couldn't quickly gather enough proper material to analyze.


In the upper left part of the lower right quadrant (so, just off the middle), there are a couple of intriguing diagonal lines - does anyone have any thoughts on that?

215
Other Calculators / Re: z80 opcode usage stats
« on: July 31, 2011, 12:43:59 pm »
Hotter colours are more common.
In order, black, gray, green, yellow, red, purple

One of the things I noticed is that the ED prefix isn't rare in itself, but doesn't have one of those "lines" across the map - it's only common in combination with a few select bytes following it.

216
Other Calculators / z80 opcode usage stats
« on: July 31, 2011, 09:49:28 am »
I did a primitive order-1 frequency analysis of z80 opcodes as used in TIOS.
It's pretty useless really, but it shows some interesting things.
For example, it's clear that control flow instructions are particularly popular.
Also, there's a general bias towards low values. This bias is much higher for immediate values (as in ld a,imm8 and cp imm8)
Perhaps something to keep in mind when writing a compressor for programs.

217
That's true, all things being equal, compiled is always going to be faster.

218
Probably something simpler than that (no classes but just raw code (maybe methods), only 16 and 8 bit integers, no IEEE floats, etc)
But yea I'm wondering more about whether any JIT compiling should be done on the TI at all, do you recon the pro's outweigh the con's?

219
What do you all think, should it be done?
I see some good and bad things about it, for example
good: faster than basic, smaller than asm, almost no code size limit (could be run from archive and non-executable ram)
bad: it will take a year before a program starts even with lots of lazy loading, requires the 'runtime' to be installed (embedding it in the program would negate pretty much all benefits), hard to debug code generation bugs

220
Other / Re: What computer OS do you use?
« on: July 22, 2011, 03:35:48 pm »
Back when I had an nVidia GPU, it wouldn't let me use the native resolution of my screen (not even with manual override). Now with an ATI it does (by changing the "maximum size").
But it still renders text ugly, no matter what I try to do about it. It also takes longer to boot. But the worst thing is, I don't have all my programs installed there. Sure I could fix that, but I have no reason to do so.

221
Other / Re: What computer OS do you use?
« on: July 22, 2011, 01:27:48 pm »
I dual boot 7 (x64) and XP (x64).
never use 7 though, I have it mostly in case I ever encounter something that doesn't like XP (hasn't happened so far except for nvidia's DX10 demo's)
Previously I used to have Fedora on it as well, but not for very long.

222
Miscellaneous / Re: My Little Pony: Friendship is Magic
« on: July 20, 2011, 02:29:56 pm »
What's so bad about ponies?
I don't normally like ponies, but MLP:FiM was/is a nice series..
Very funny, actually. Lots of humour. And no gag-reflex-triggering cuteness.
And lots of derivative work which is also fun

223
Miscellaneous / Re: My Little Pony: Friendship is Magic
« on: July 20, 2011, 01:46:28 pm »
But those look like old-series ponies!
These are 20% cooler:

224
Miscellaneous / Re: My Little Pony: Friendship is Magic
« on: July 20, 2011, 01:34:00 pm »
I'm 21 and like ponies anyway! :)

225
Miscellaneous / Re: My Little Pony: Friendship is Magic
« on: July 20, 2011, 01:28:32 pm »
Too late!  ;)

Pages: 1 ... 13 14 [15] 16