Click here to Skip to main content
15,887,135 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: New York Times sues Microsoft and OpenAI Pin
honey the codewitch27-Dec-23 7:07
mvahoney the codewitch27-Dec-23 7:07 
GeneralRe: New York Times sues Microsoft and OpenAI Pin
Mark Starr28-Dec-23 3:02
professionalMark Starr28-Dec-23 3:02 
GeneralRe: New York Times sues Microsoft and OpenAI Pin
Jo_vb.net28-Dec-23 3:21
mvaJo_vb.net28-Dec-23 3:21 
GeneralRe: New York Times sues Microsoft and OpenAI Pin
MikeCO1028-Dec-23 3:03
MikeCO1028-Dec-23 3:03 
GeneralRe: New York Times sues Microsoft and OpenAI Pin
Jerry Manweiler28-Dec-23 4:50
Jerry Manweiler28-Dec-23 4:50 
GeneralRe: New York Times sues Microsoft and OpenAI Pin
charlieg29-Dec-23 1:13
charlieg29-Dec-23 1:13 
GeneralRe: New York Times sues Microsoft and OpenAI Pin
b4blue28-Dec-23 5:32
b4blue28-Dec-23 5:32 
GeneralWhat's a "real" programming language? Pin
honey the codewitch27-Dec-23 2:44
mvahoney the codewitch27-Dec-23 2:44 
Bear with me, because as much as I am loath to holy roll about technology, I still have my peeves.

I went about porting my DFA lexer engine from C# to TypeScript. It was primarily an exercise in teaching myself TypeScript, plus brushing up on my JS.

So I implement the bones of it, and after adjusting my mental map to the JS way of doing things I got it mostly working.

Then I went about trying to use a Map keyed by Sets.

Turns out JS Map and Set will only compare by value for "scalar" types (presumably including strings) or otherwise it uses reference comparisons. You can't override your own equality mechanism either.

how to customize object equality for javascript set - Stack Overflow[^]

Consequently, there is no performant way to do subset construction to convert an NFA to a DFA in this language.

I've seen others solve this problem by using string keys, but this falls down for machines of non-trivial size.
Regex FA visualizer[^] is one example but I can basically crash it or stall it out for a long time at least with any non-trivial expression. This one also doesn't work properly besides, but I have no other link handy for you to try.

This may be academic, but it is also basic computer science. A language should be able to allow you to implement computer sciencey algorithms and constructs - especially those that have been adapted to countless other programming languages. DFA by subset construction is basic.

And you can't do it in JS.

I can't even begin to imagine what LALR table generation would look like.

You may be wondering why do I care?

Because node.js.
Because Angular
Because React-Native

it's not just for web front ends anymore. JS is an almost virulent technology these days. It needs to be, if not Turing complete at least cover the fundamentals, or you're just spreading garbage around.

Without a way to do custom comparisons at the very least on hashed containers, your language isn't going to be able to do a lot of things other high level languages can accomplish handily.

Is it even a "real" language? Is it ready for primetime, or is it just being adopted because we can? Unsure | :~
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix


modified 27-Dec-23 9:13am.

GeneralRe: What's a "real" programming language? Pin
Gary R. Wheeler27-Dec-23 3:15
Gary R. Wheeler27-Dec-23 3:15 
GeneralRe: What's a "real" programming language? Pin
honey the codewitch27-Dec-23 3:52
mvahoney the codewitch27-Dec-23 3:52 
GeneralRe: What's a "real" programming language? Pin
Gary R. Wheeler27-Dec-23 4:30
Gary R. Wheeler27-Dec-23 4:30 
GeneralRe: What's a "real" programming language? Pin
honey the codewitch27-Dec-23 4:36
mvahoney the codewitch27-Dec-23 4:36 
GeneralRe: What's a "real" programming language? Pin
jschell27-Dec-23 5:52
jschell27-Dec-23 5:52 
GeneralRe: What's a "real" programming language? Pin
honey the codewitch27-Dec-23 6:30
mvahoney the codewitch27-Dec-23 6:30 
GeneralRe: What's a "real" programming language? Pin
MSBassSinger28-Dec-23 4:08
professionalMSBassSinger28-Dec-23 4:08 
GeneralRe: What's a "real" programming language? Pin
hpcoder218-Jan-24 13:59
hpcoder218-Jan-24 13:59 
GeneralRe: What's a "real" programming language? Pin
honey the codewitch18-Jan-24 14:07
mvahoney the codewitch18-Jan-24 14:07 
GeneralRe: What's a "real" programming language? Pin
hpcoder218-Jan-24 14:43
hpcoder218-Jan-24 14:43 
GeneralRe: What's a "real" programming language? Pin
honey the codewitch18-Jan-24 14:44
mvahoney the codewitch18-Jan-24 14:44 
GeneralRe: What's a "real" programming language? Pin
Daniel Pfeffer27-Dec-23 4:52
professionalDaniel Pfeffer27-Dec-23 4:52 
GeneralRe: What's a "real" programming language? Pin
0x01AA27-Dec-23 5:30
mve0x01AA27-Dec-23 5:30 
GeneralRe: What's a "real" programming language? Pin
jschell27-Dec-23 5:56
jschell27-Dec-23 5:56 
GeneralRe: What's a "real" programming language? Pin
0x01AA27-Dec-23 6:02
mve0x01AA27-Dec-23 6:02 
GeneralRe: What's a "real" programming language? Pin
jschell28-Dec-23 5:45
jschell28-Dec-23 5:45 
GeneralRe: What's a "real" programming language? Pin
jschell27-Dec-23 5:42
jschell27-Dec-23 5:42 

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.