Like demanding an email address to tell someone the punchline to your joke.
AI converts between hundreds of programming languages
31–40 of 60 posts
Re: AI converts between hundreds of programming languages
#32So I guess... this spells doom for the quants but the scientists can sleep soundly.
Re: AI converts between hundreds of programming languages
#33I had a particularly funny result: Trying sample #3 (put a record into S3) from Typescript to Python, it reliably... outputs a completely different program, which instead downloads an image from S3 and resizes it in /tmp. Weird.
Re: AI converts between hundreds of programming languages
#34Clearly not ready for prime time.
Re: AI converts between hundreds of programming languages
#35I have written translators and they are really hard. I think training on code bases is the way to go but I am skeptical overall that it is even worth the effort. The problem is that the translation doesn't get you all the way there. The code produced is buggy and wrong in most cases. You probably get a better result from re-designing and re-implementing. I wonder what the data being trained on even is. It has to incl…
If the systems works functionally but the infrastructure (?) hasn't aged well, and there's only time / budget to switch horses, that might be the sweet spot.
Re: AI converts between hundreds of programming languages
#36Re: AI converts between hundreds of programming languages
#37// TODO: Translate the above Rust into CHIP-8
### TODO
and now it got stuck on emitting some assembly. I don't exactly know what because CHIP-8 doesn't have an assembly representation.
It printed this 16 times
@0000
LD V0, [I]
LD V1, [I + 1]
LD V2, [I + 2]
ADD I, 3
LD V3, [I]
LD V4, [I + 1]
LD V5, [I + 2]
ADD I, 3
LD V6, [I]
LD V7, [I + 1]
LD V8, [I + 2]
ADD I, 3
LD V9, [I]
LD VA, [I + 1]
LD VB, [I + 2]
ADD I, 3
LD VC, [I]
LD VD, [I + 1]
LD VE, [I + 2]
ADD I, 3
LD VF, [I]
LD I, V0
LD V0, [I]Re: AI converts between hundreds of programming languages
#38First underwhelming AI post on the frontpage. Thank god our jobs are safe atleast!
If we can build up an immense library of clearly defined problems and solutions, with variants which fit with all conceivable unique contexts, then maybe it will become possible for AI to provide useful assistance.
It would be a good goal to do what I describe, as it would result in many fewer bugs in software. The risks then would be either misidentifying the problem (and therefore getting a solution which doesn't fit the need) or providing inaccurate context which allows for suboptimal selection of a predefined solution.