Click here to Skip to main content
15,887,175 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

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.

 
GeneralRe: how hard to rewrite a legacy software from C++ to C# in WinForm? Pin
Bruno van Dooren6-Jan-24 23:40
mvaBruno van Dooren6-Jan-24 23:40 
GeneralRe: how hard to rewrite a legacy software from C++ to C# in WinForm? Pin
Gary R. Wheeler7-Jan-24 4:36
Gary R. Wheeler7-Jan-24 4:36 
GeneralRe: how hard to rewrite a legacy software from C++ to C# in WinForm? Pin
MSBassSinger8-Jan-24 2:44
professionalMSBassSinger8-Jan-24 2:44 
GeneralRe: how hard to rewrite a legacy software from C++ to C# in WinForm? Pin
Behzad Sedighzadeh8-Jan-24 4:55
Behzad Sedighzadeh8-Jan-24 4:55 
GeneralRe: how hard to rewrite a legacy software from C++ to C# in WinForm? Pin
obeobe8-Jan-24 5:48
obeobe8-Jan-24 5:48 
GeneralRe: how hard to rewrite a legacy software from C++ to C# in WinForm? Pin
Thornik8-Jan-24 6:13
Thornik8-Jan-24 6:13 
GeneralRe: how hard to rewrite a legacy software from C++ to C# in WinForm? Pin
jochance8-Jan-24 8:14
jochance8-Jan-24 8:14 
GeneralI did a thing. It's neat. Pin
honey the codewitch6-Jan-24 2:11
mvahoney the codewitch6-Jan-24 2:11 
I needed a project to ward of boredom in the wee hours.

I decided to do something I can't do - Reflection Emit from C#

I built a Compile() feature into my regular expression engine that works like .NET's does.

After wrestling with it for a little over a day, pay dirt!

Gosh, IL is weird, but pretty simple once you get the hang of it. The VM is a very basic stack machine. It's extremely minimalist compared to modern CISC CPUs.

Anyway, now I need to figure out how to write an article around it once I'm done basking in my accomplishment. Laugh | :laugh: Edit: I wrote the article: Compiling DFA Regular Expressions into .NET Assemblies[^]

I'm pretty proud of this code.

Edit 2: Updated the timing to remove the time for console writing and I'm blown away.

Terminal
Microsoft Regex "Lexer": [■■■■■■■■■■] 100% Done in 1556ms
Microsoft Regex Compiled "Lexer": [■■■■■■■■■■] 100% Done in 1186ms
Expanded NFA Lexer: [■■■■■■■■■■] 100% Done in 109ms
Compacted NFA Lexer: [■■■■■■■■■■] 100% Done in 100ms
Unoptimized DFA Lexer: [■■■■■■■■■■] 100% Done in 111ms
Optimized DFA Lexer: [■■■■■■■■■■] 100% Done in 6ms
Table based DFA Lexer: [■■■■■■■■■■] 100% Done in 4ms
Compiled DFA Lexer: [■■■■■■■■■■] 100% Done in 5ms

Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix


modified 6-Jan-24 20:42pm.

GeneralRe: I did a thing. It's neat. Pin
Gary Stachelski 20216-Jan-24 4:32
Gary Stachelski 20216-Jan-24 4:32 
GeneralRe: I did a thing. It's neat. Pin
PIEBALDconsult6-Jan-24 5:41
mvePIEBALDconsult6-Jan-24 5:41 
GeneralRe: I did a thing. It's neat. Pin
honey the codewitch6-Jan-24 5:44
mvahoney the codewitch6-Jan-24 5:44 
GeneralRe: I did a thing. It's neat. Pin
PIEBALDconsult6-Jan-24 6:23
mvePIEBALDconsult6-Jan-24 6:23 
GeneralRe: I did a thing. It's neat. Pin
honey the codewitch6-Jan-24 6:32
mvahoney the codewitch6-Jan-24 6:32 
GeneralRe: I did a thing. It's neat. Pin
jschell8-Jan-24 6:47
jschell8-Jan-24 6:47 
GeneralRe: I did a thing. It's neat. Pin
honey the codewitch8-Jan-24 7:04
mvahoney the codewitch8-Jan-24 7:04 
GeneralRe: I did a thing. It's neat. Pin
honey the codewitch6-Jan-24 12:52
mvahoney the codewitch6-Jan-24 12:52 
GeneralRe: I did a thing. It's neat. Pin
PIEBALDconsult6-Jan-24 16:57
mvePIEBALDconsult6-Jan-24 16:57 
GeneralRe: I did a thing. It's neat. Pin
jochance8-Jan-24 8:18
jochance8-Jan-24 8:18 
GeneralRe: I did a thing. It's neat. Pin
PIEBALDconsult8-Jan-24 8:53
mvePIEBALDconsult8-Jan-24 8:53 
GeneralRe: I did a thing. It's neat. Pin
Southmountain6-Jan-24 6:06
Southmountain6-Jan-24 6:06 
GeneralRe: I did a thing. It's neat. Pin
Kenneth Haugland6-Jan-24 6:40
mvaKenneth Haugland6-Jan-24 6:40 
GeneralRe: I did a thing. It's neat. Pin
honey the codewitch6-Jan-24 6:41
mvahoney the codewitch6-Jan-24 6:41 
GeneralFree game Pin
Nelek6-Jan-24 1:58
protectorNelek6-Jan-24 1:58 
GeneralRe: Free game Pin
RickZeeland6-Jan-24 4:18
mveRickZeeland6-Jan-24 4:18 
GeneralRe: Free game Pin
Kenneth Haugland6-Jan-24 15:26
mvaKenneth Haugland6-Jan-24 15:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.