Click here to Skip to main content
15,886,919 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.

 
GeneralA week and a half, now in the bin Pin
honey the codewitch23-Oct-23 0:04
mvahoney the codewitch23-Oct-23 0:04 
GeneralRe: A week and a half, now in the bin Pin
Gary Stachelski 202123-Oct-23 4:26
Gary Stachelski 202123-Oct-23 4:26 
GeneralRe: A week and a half, now in the bin Pin
honey the codewitch23-Oct-23 4:27
mvahoney the codewitch23-Oct-23 4:27 
GeneralRe: A week and a half, now in the bin Pin
Gary Stachelski 202123-Oct-23 5:20
Gary Stachelski 202123-Oct-23 5:20 
GeneralRe: A week and a half, now in the bin Pin
honey the codewitch23-Oct-23 6:05
mvahoney the codewitch23-Oct-23 6:05 
GeneralRe: A week and a half, now in the bin Pin
Gary Stachelski 202123-Oct-23 8:16
Gary Stachelski 202123-Oct-23 8:16 
GeneralRe: A week and a half, now in the bin Pin
honey the codewitch23-Oct-23 8:18
mvahoney the codewitch23-Oct-23 8:18 
GeneralRe: A week and a half, now in the bin Pin
honey the codewitch23-Oct-23 17:31
mvahoney the codewitch23-Oct-23 17:31 
Gary, your link regarding the AI stuff got flagged by the automod as spam, so it's pending review from one of the moderators.

That said, I saw it in email and was able to peruse the link.

First thing, I need to clarify something. I'm not looking for true intelligence like "here's what I want to generate" and then it just creates code.

I'm looking to essentially expand existing code generators to produce more natural code.

So like, I have a parser generator, Parsley: A Recursive Descent Parser Generator in C#[^] that works great, but would be better if it produced more natural parsing code.

So I'm thinking I could augment a tool like this to do code synthesis. You'd still have to feed it a Context-Free-Grammar (CFG) just like normal**

The difference is simply the generated code would be more natural. I imagine you'd have to train up a model for each generation scenario, but hopefully not for each CFG.

The stuff at the link isn't quite what I'm after.

** an example of a CFG for JSON in my XBNF (extensible BNF) format

// based on spec @ json.org
Json<start>= Object | Array;
Object= "{" [ Field { "," Field } ] "}";
Field= string ":" Value;
Array= "[" [ Value { "," Value } ] "]";
Value<collapsed>= string |
	number	|
    Object	|
	Array	|
    Boolean |
    null	;
Boolean= true|false;
number= '\-?(0|[1-9][0-9]*)(\.[0-9]+)?([Ee][\+\-]?[0-9]+)?';
string= '"([^\n"\\]|\\([btrnf"\\/]|(u[A-Fa-f]{4})))*"';
true= "true";
false= "false";
null= "null";
lbracket<collapsed>= "[";
rbracket<collapsed>= "]";
lbrace<collapsed>= "{";
rbrace<collapsed>= "}";
colon<collapsed>= ":";
comma<collapsed>= ",";
whitespace<hidden>= '[\n\r\t ]+';

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

GeneralRe: A week and a half, now in the bin Pin
Gerry Schmitz23-Oct-23 5:52
mveGerry Schmitz23-Oct-23 5:52 
GeneralRe: A week and a half, now in the bin Pin
honey the codewitch23-Oct-23 6:09
mvahoney the codewitch23-Oct-23 6:09 
GeneralRe: A week and a half, now in the bin Pin
Gerry Schmitz24-Oct-23 7:40
mveGerry Schmitz24-Oct-23 7:40 
GeneralRe: A week and a half, now in the bin Pin
englebart23-Oct-23 13:28
professionalenglebart23-Oct-23 13:28 
GeneralRe: A week and a half, now in the bin Pin
honey the codewitch23-Oct-23 13:28
mvahoney the codewitch23-Oct-23 13:28 
GeneralRe: A week and a half, now in the bin Pin
Steve Raw23-Oct-23 13:30
professionalSteve Raw23-Oct-23 13:30 
GeneralRe: A week and a half, now in the bin Pin
honey the codewitch23-Oct-23 13:43
mvahoney the codewitch23-Oct-23 13:43 
GeneralRe: A week and a half, now in the bin Pin
Steve Raw23-Oct-23 14:32
professionalSteve Raw23-Oct-23 14:32 
GeneralRe: A week and a half, now in the bin Pin
Sander Rossel23-Oct-23 21:41
professionalSander Rossel23-Oct-23 21:41 
GeneralRe: A week and a half, now in the bin Pin
Steve Raw24-Oct-23 1:36
professionalSteve Raw24-Oct-23 1:36 
GeneralThat is interesting... Pin
Kornfeld Eliyahu Peter22-Oct-23 22:43
professionalKornfeld Eliyahu Peter22-Oct-23 22:43 
GeneralRe: That is interesting... Pin
RickZeeland22-Oct-23 23:35
mveRickZeeland22-Oct-23 23:35 
GeneralRe: That is interesting... Pin
charlieg23-Oct-23 0:44
charlieg23-Oct-23 0:44 
GeneralRe: That is interesting... Pin
Richard MacCutchan23-Oct-23 1:52
mveRichard MacCutchan23-Oct-23 1:52 
GeneralRe: That is interesting... Pin
pkfox23-Oct-23 2:42
professionalpkfox23-Oct-23 2:42 
GeneralRe: That is interesting... Pin
charlieg23-Oct-23 2:49
charlieg23-Oct-23 2:49 
GeneralRe: That is interesting... Pin
trønderen23-Oct-23 4:43
trønderen23-Oct-23 4:43 

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.