|
NFA: Lexed in 0.713062 msec
*NFA+DFA (optimized): Lexed in 0.491195 msec
*DFA: Lexed in 0.493133 msec
NFA (raw): Lexed in 1.516519 msec
DFA (raw): Lexed in 0.147636 msec
I think this is interesting in that all but the (raw) are powered by my Pike VM, but the two Raw runs are just implemented using straight finite automata
The raw DFA is of course the fastest by far, but what's interesting about it is this is a special case of the raw NFA algorithm. However, the raw NFA algorithm is much slower than the pike vm! For the DFAs it's the opposite, because of the overhead of running a pike VM, but the pike VM does NFA very efficiently. That's a really interesting property of it.
I might be able to take advantage of that to create some kind of NFA based workflow engine powered by a pike VM
* same lexer program - the NFA+DFA optimized is pure DFA in this instance
Real programmers use butterflies
|
|
|
|
|
|
So, so true. Definitely wisdom I apply to "we have a crisis and we need you to look at this RIGHT NOW!"
|
|
|
|
|
Been trying to get the Microsoft speech synth to speak Pinyin (a "sounds like" for Chinese).
I can get it to speak English but only sometimes with Pinyin: sometimes the word comes out right, something it sounds like it's being spelled out.
Turns out the "en-US" language voices handle it, the "en-CA" voices don't. Both considered "English".
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food
|
|
|
|
|
Maybe try South African - en_ZA or "real" english "en_UK", or maybe en_NG for Nigeria?
|
|
|
|
|
That last one always sounds the same "Hello. I am a Nigerian Prince, and ..."
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
You mean Chinese with Dutch accent?
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food
|
|
|
|
|
I blame u. And u. And u too eh!
I, for one, like Roman Numerals.
|
|
|
|
|
So my little Pike VM based lexer[^] now generates ideal code. The optimization took me over a week but this is so cool.
I found out that each machine program that is not optimized has i think one ideal optimized program, and because of the way the bytecode works it's very hard (if not impossible) to make two programs match the same language.
I just can't get over how cool this endeavor was. Super satisfying.
It's a "real" compiler, with a "real" optimization phase, only for regex instead of sourcecode.
I've never made one before. It was neat. Now I'm not sure what to do next.
Real programmers use butterflies
|
|
|
|
|
honey the codewitch wrote: Now I'm not sure what to do next. well what comes after lexing?
compilation, [optimisation] code gen, [optimisation] linking [optimisation].
back to work.
after many otherwise intelligent sounding suggestions that achieved nothing the nice folks at Technet said the only solution was to low level format my hard disk then reinstall my signature. Sadly, this still didn't fix the issue!
|
|
|
|
|
that's all done.
parsing comes after lexing but I've made parsers already.
I'll probably be working with Qwertie on LLLPG here soon but I'm waiting on him for some things.
Real programmers use butterflies
|
|
|
|
|
This is where you take a glass of Whisky, snuggle down with your significant better half and watch a movie, or whatever fits your bill.
About half ways through the movie you will get annoyed why the main actor does something the wrong way and then try to create a solution for that...
|
|
|
|
|
If a developer has hand surgery, is that Tech Knuckle support?
(Sorry pkfox but I couldn't resist)
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Does the surgeon use a palm operating system for that?
|
|
|
|
|
Most of the time it's White Knuckle support!
Monday starts Diarrhea awareness week, runs until Friday!
JaxCoder.com
|
|
|
|
|
you'd think by now they would start fitting USB ports while they're there?
(certainly less obtrusive than those electriconical hair nets they've been playing with)
... then again the next get USB will offer so much more, maybe it is better to wait.
after many otherwise intelligent sounding suggestions that achieved nothing the nice folks at Technet said the only solution was to low level format my hard disk then reinstall my signature. Sadly, this still didn't fix the issue!
|
|
|
|
|
At the wrist of skirting KSS, it's just his/her way of giving some medico the finger - five times - if they have a tendon-c for such things.
(I suppose I deserve a slap-on-the-wrist for this)
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
Having been to the hospital today surgery might be on the cards
"We can't stop here - this is bat country" - Hunter S Thompson - RIP
|
|
|
|
|
Quote: surgery might be on the cards "Cards?" Which body part is that?
But seriously: Best of luck if they do operate!
|
|
|
|
|
If a SW engineer slugs a bad person who's hitting on another person, was he just offering Tech Knuckle support?
The best way to improve Windows is run it on a Mac.
The best way to bring a Mac to its knees is to run Windows on it.
~ my brother Jeff
|
|
|
|
|
I managed to make my lil' optimizing compiler choke on some unicode i fed it for a very complicated lexer.
It handles it, but you could take a shower while you're waiting.
I'm not precisely sure why yet - i've narrowed it to a routine, but the routine uses a work queue that it keeps adding and removing to so it's hard to know when it's finished or how long an operation will take. There's not really bounded loops i can measure.
I may have to profile the whole function, and it's big-ish
I'm not pleased. I spent two weeks getting past this to avoid this exact slowdown
Real programmers use butterflies
|
|
|
|
|
But I passed my Linux+ cert exam on the first try.
a) I've only been working with Linux since October (My last Unix-like experience was with Coherent back in the 80s)
b) The practice tests I was using for studying bore no resemblance to the actual test. (Yes, they were supposedly for XK0-004, too)
c) For the amount of money they charge for the test, they dang well better pass everyone.
d) My employer will be reimbursing me for passing the test...as opposed to firing me for not passing.
|
|
|
|
|
I assume it covered the really important things, like how to install a Windows VM so you can be productive?
|
|
|
|
|
Wow. I thought the snarky comments only came from the other way.
Got my +5
|
|
|
|
|
OP wrote: I assume it covered the really important things, like how to install a Windows VM so you can be productive? I think it's a good and very valid comment. (on linux, installed windows VM's to do my work.)
best part: when windows inevitably breaks itself it can be rolled back
- faster than reinstalling etc - you will be more productive running windows on linux than on metal.
next best thing: can keep your private stuff on linux, away from redmunts snooping eyes.
next next best thing: linux let's you get your money's worth out of your shiny new new gen hardware.
It's the natural and best order of things: windows on bare metal is dead.
after many otherwise intelligent sounding suggestions that achieved nothing the nice folks at Technet said the only solution was to low level format my hard disk then reinstall my signature. Sadly, this still didn't fix the issue!
|
|
|
|