Live data from Hacker News

Show HN: Write code using natural language

metacode.app

111–118 of 118 posts

Re: Show HN: Write code using natural language

#111

Cool. For an older implementation of programming using a natural language, there's Lingua::Romana::Perligata http://users.monash.edu/~damian/papers/HTML/Perligata.html Unfortunately for probably most people here, the natural language in question is Latin.

    nexto stringum reperimentum da.                     # $next = pos $
    nextum stringo reperimento da.                      # pos $string = $next;
    inserto stringum tum unum tum duo excerpementum da. # $insert = substr($string,1,2);
    insertum stringo unum tum duo excerpemento da.      # substr($string,1,2) = $insert;
    keyis hashus nominamentum da                        # @keys = keys %hash;
    keya hashibus nominamento da                        # keys %hash = @keys;

Re: Show HN: Write code using natural language

#112

In a tightly-scoped domain like "write code in Vue.js" it might be really cool. Looking forward to seeing how this evolves! But just like self-driving cars, once you start expanding the scope, and only just a little bit, it doesn't look so cool anymore. I would love to see how far they can take this. Programming in the purest sense is taking problems that real people have, expressed in their own words, and creating a…

I toyed with the idea that corporate business analysts (who write requirements for products then hand to developers) could just write in a different syntax and pass them to a compiler that makes: 1. database tables 1. API CRUD endpoints with validation / sanitation 1. screens with input fields Most of the corporate work I did was very similar to this. It was either a batch job, a UI screen, or an API that talks to so…

What about www.hyperfiddle.net ?

Re: Show HN: Write code using natural language

#113

Earlier quoted context omitted.

When op used the word “understanding”, I interpreted it as some program that can provide code snippets, skeletons, or whatever abstraction in some contextual way so it’s not just a dumb table lookup. You’re post is unnecessarily pessimistic and generally bad faith. And maybe ops vision can’t be realized today, but if someone is thinking beyond the current state of the art, it’s short sighted and incredibly ignorant t…

Assuming the OP expects to gain something from this conversation, the most benefit that can be gained is from telling them why their idea makes no sense. That is what "good faith" means and that is what I did. Your comment, on the other hand, seems to be confusing good faith with indulgence. Just saying "yes" to people and being nice to them does them no favours.

A discussion that makes us think about the boundaries of what is or isn’t possible today is indulgence?

You failed spectacularly by your own definition of a good faith discussion by dismissing ops post as “fantasy”. You give no explanation of why it is unachievable today or why it would continue to be impossible in the future.

My previous team had a member who outright dismissed ideas and criticized things for the sake of sounding intelligent without proposing solutions to further the discussion or solve the problem. We let him go.

Good luck.

Re: Show HN: Write code using natural language

#114

Earlier quoted context omitted.

Assuming the OP expects to gain something from this conversation, the most benefit that can be gained is from telling them why their idea makes no sense. That is what "good faith" means and that is what I did. Your comment, on the other hand, seems to be confusing good faith with indulgence. Just saying "yes" to people and being nice to them does them no favours.

A discussion that makes us think about the boundaries of what is or isn’t possible today is indulgence? You failed spectacularly by your own definition of a good faith discussion by dismissing ops post as “fantasy”. You give no explanation of why it is unachievable today or why it would continue to be impossible in the future. My previous team had a member who outright dismissed ideas and criticized things for the sa…

Thank you :D

Couldn't have written it better myself.

Maybe there is an minimal test case that could demonstrate deeper understanding. Sort of a fizz-buzz for AI, to separate the parrots from the thinkers so to speak. Food for thought. Meanwhile I am to busy on other grandiose plans to give it to much attention ATM.

Re: Show HN: Write code using natural language

#115

Earlier quoted context omitted.

A discussion that makes us think about the boundaries of what is or isn’t possible today is indulgence? You failed spectacularly by your own definition of a good faith discussion by dismissing ops post as “fantasy”. You give no explanation of why it is unachievable today or why it would continue to be impossible in the future. My previous team had a member who outright dismissed ideas and criticized things for the sa…

Thank you :D Couldn't have written it better myself. Maybe there is an minimal test case that could demonstrate deeper understanding. Sort of a fizz-buzz for AI, to separate the parrots from the thinkers so to speak. Food for thought. Meanwhile I am to busy on other grandiose plans to give it to much attention ATM.

[deleted]

Re: Show HN: Write code using natural language

#116

Earlier quoted context omitted.

Only a Subset of features of natural langage introduce ambiguities, equivocations, etc. It is perfectly doable to force one and only one meaning per keyword (just like do programming keywords already (if, while, etc), removing the ability to use coreferences, etc I would love to see a great constrained English, formal without the readability and expressivity loss of formal symbolic grammars / formal maths

'Only a subset'? What does that mean?

That means that natural language is not intrinsically ambiguous and fuzzy, and removing the features that cause ambiguities would create a Constrained natural language, far more clearer. Or is it the word Subset that you want me to explain?

Re: Show HN: Write code using natural language

#118
post #69

Really awesome stuff for dealing with verbose frameworks. In the code builder demo, it strikes me that all that code in swift could be replaced with a declarative format: let TestVC = viewController( button( padding: { left: 5 }, width: 100, height: 200 ) ) And probably be easier to type than these snippet demos. Has there emerged a good declarative API for iOS? As a web developer, as much as I hate the insanity of t…

That would be awesome! But yeah nothing like that for iOS comes to mind.

A couple of days later... SwiftUI looks.. amazing.
Post reply on HN