The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
I figure anywhere they'd send you is somewhere nobody wants to be so I'm wondering why he draws the line.
Helpers are usually welcome, but there are morons everywhere so one can't be 100% sure.
honey the codewitch wrote:
On to nursing school.
Woo. He hopes Doctors without borders
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
It might not be top 5; but with Nigeria's Boko Haram insurgency bleeding across the border and it ending up on most corrupt/failed state lists it'd be very low on the list of sub-saharan countries that I'd consider making a visit to.
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, weighing all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies.
-- Sarah Hoyt
My wife if one of those people you can trust to organize anything (not technical).
She also fittingly works as a project leader.
So after a long and stressful autumn with a lot of deadlines and to many projects, her company invites her to a "conference" at a spa in Bad Gastein.
Guess who arrives at the airport with my passport?
Slang is kinda big, and build tools used in a pre-build step don't need DLL's to be dragged along with them.
But a slang enabled exe can be 350k easy in release mode.
So what I've done, is endeavored to remove
A) the startup processing time of a slang enabled code generator tool
B) the dependency of said tool on the large CodeDOM Go Kit (which includes Slang)
How I did it was I went meta, and I wrote code that generates code that generates code.
In this case, I can take all the work that slang requires and prebake it, because now I can serialize those code trees to arrays as code, so now I don't slang to reinstantiate them.
It's confusing to explain but easy to use.
So now i have this tool, Deslang. Basically you can precook all the work slang did into the code, add your dynamism by visiting that tree that got from Deslang as a prefab array (no slang required, just one visitor file) and add in your dynamic arrays or whatever that you wanted to generate.
Build Tool -> Slang -> Output
Build Tool -> Precooked Slang -> Output
The latter runs a lot faster, and the build tool binary winds up a lot smaller because i don't need to include all the CodeDOM Go Kit source code.
Works perfectly for rolex, where 80% of what Slang is used for is easing maintenance - it's just static code, but it's written in slang just so it can be language agnostic and not force me to manually build a codedom.
Point is this is is clever. Rolex is 200k !! smaller and lightning fast now.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
Tripping through some older but still used C code, I found this section:
if ((a = hash_table[r]) && !cmdcmp(commands[--a].name, p)
|| (a = short_hash_table[r]) && !cmdcmp(commands[--a].short_name, p)) r = a;
else r = -1;
Somebody sure put a lot of faith that the order of evaluation, especially short-circuit evaluation, would remain the same across compilers!
Of course, the programmer saved a couple of characters by excluding four(?) unnecessary parens.
Upon further investigation, I found many instances of this type of statement structure. Apparently that was the preferred coding style. So, I'm guessing the programmer probably saved 100 characters. But it takes a lot of time to examine each statement and hopefully understand what is going on.
I hate that kind of stuff. I always add the redundant parenthesis because I want to be explicit about what is going on and I find it helps in deciphering the statement. I do NOT want to rely on the precedence order.
"They have a consciousness, they have a life, they have a soul! Damn you! Let the rabbits wear glasses! Save our brothers! Can I get an amen?"
Last Visit: 19-Jan-20 5:37 Last Update: 19-Jan-20 5:37