|
For a moment forget about your environment and try to think like the original developers. You've got very limited RAM, and slightly-less limited code space. This means your code has to be clever. It also implies you don't necessarily have to handle the arbitrary, general case where all possibilities are handled regardless of what seems to be allowed by the parameters.
As an example, suppose you have a signed 16-bit value to handle. Does the usage really need to allow for negative values? What about zero (0)? What's the actual, practical range for the value?
Figuring out the actual, implicit (and undocumented) constraints can help figure out a practical algorithm.
Software Zen: delete this;
|
|
|
|
|
I totally agree with this, and when I originally planned this I was writing clever code.
I use signed values for most things because midi is largely a 7-bit protocol. that way if I accidentally set the sign bit the number jumps out at me as negative.
In the end I solved it. It took me moving my code to a real PC so I could fire up a debugger. It was just too complicated to work through it without one.
To err is human. Fortune favors the monsters.
|
|
|
|
|
honey the codewitch wrote: It took me moving my code to a real PC so I could fire up a debugger. It was just too complicated to work through it without one. I like it! I've used this approach on occasion when I "couldn't see the forest for the trees".
Software Zen: delete this;
|
|
|
|
|
It also helps keep it cross platform, so it's win win. I developed most of my GFX library for IoT devices on a PC. I would just draw to in memory bitmaps and then write those to the console as ascii. =)
To err is human. Fortune favors the monsters.
|
|
|
|
|
honey the codewitch wrote: memory bitmaps and then write those to the console as ascii That triggers a flashback to the early 90's. At the time all of the fonts in our printers were hand-drawn bitmaps. We had a text format where each character's bitmap was drawn using "." for a white pixel, and "@" for a black one. We then had a utility that would convert the text format to the binary form of the font file.
Software Zen: delete this;
|
|
|
|
|
haha I had a python script that created or extracted win 3.1 .FON files in that format for editing or creating.
I used it as a reference to create my raster font loading routines.
To err is human. Fortune favors the monsters.
|
|
|
|
|
|
I got my book written in French last week from a German seller and browsed some pages.
I felt 50% French words are English and guessed their meanings.
figured out some formulas and graphs and got some sense of this book already...
diligent hands rule....
|
|
|
|
|
formulase
The other half is Latin.
|
|
|
|
|
thanks
diligent hands rule....
|
|
|
|
|
And the third half is German.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Technical language is pretty much internationalised. Literature definitely isn't!
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
I guess it's the same in every language - identify the verb, and the subject and object, plus the adjectives, adverbs. The verb, action word is the most important to identify. Today, we have the advantage of having Google Translate.
|
|
|
|
|
I have the same feeling... Both formulas and graphs looks very English (or Italian as well).
"In testa che avete, Signor di Ceprano?"
-- Rigoletto
|
|
|
|
|
I'm pretty sure it's the other way around; 50% English is French.
A looong time ago I was learning some Norwegian, and found a lot of words were obviously the root of English words.
|
|
|
|
|
Give Baudelaire a go, then let us know how similar French is to English.
“That which can be asserted without evidence, can be dismissed without evidence.”
― Christopher Hitchens
modified 5-May-22 5:39am.
|
|
|
|
|
It's Norman Effect
|
|
|
|
|
Wordle 320 6/6
⬛🟨⬛⬛🟨
⬛🟨🟨⬛⬛
⬛🟩⬛🟩🟩
⬛🟩⬛🟩🟩
⬛🟩⬛🟩🟩
🟩🟩🟩🟩🟩
Phew!
|
|
|
|
|
Wordle 320 4/6*
⬜🟩⬜⬜🟨
🟩🟩🟩🟩⬜
🟩🟩🟩🟩⬜
🟩🟩🟩🟩🟩
Happiness will never come to those who fail to appreciate what they already have. -Anon
|
|
|
|
|
Wordle 320 6/6
⬜⬜⬜🟩⬜
⬜⬜⬜🟩🟩
⬜🟩⬜🟩🟩
🟨🟩⬜🟩🟩
⬜🟩🟩🟩🟩
🟩🟩🟩🟩🟩
Just managed.
|
|
|
|
|
Oo! Close!
Wordle 320 5/6
⬜⬜⬜🟩⬜
⬜🟩⬜🟩🟩
⬜🟩⬜🟩🟩
🟨🟩⬜🟩🟩
🟩🟩🟩🟩🟩
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Wordle 320 5/6
⬜⬜⬜⬜🟨
⬜🟩🟨⬜🟨
⬜⬜⬜⬜⬜
🟩🟩⬜🟩🟩
🟩🟩🟩🟩🟩
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
Wordle 320 4/6*
⬜🟨⬜⬜⬜
🟨⬜⬜⬜⬜
🟩🟩⬜🟩🟩
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 320 6/6
🟨⬜⬜⬜⬜
⬜⬜⬜⬜🟨
🟨⬜🟨⬜⬜
⬜🟩⬜🟩🟩
⬜🟩⬜🟩🟩
🟩🟩🟩🟩🟩
Phew indeed.
And I don't even know this word other than the name
|
|
|
|
|
It is from an American game, so I expected that people outside the US would have difficulty with the word.
And of course there are way too many choices, too,
|
|
|
|