demofox,
@demofox@mastodon.gamedev.place avatar

My wife says google ought to make a Google translate for code. Why doesn't this exist?!

shanecelis,
@shanecelis@mastodon.gamedev.place avatar

@demofox It does. I use ChatGPT to translate shaders often. Crazy thing is, there are some custom transpilers out there but they generate stuff that looks like disassembly. ChatGPT translates the code the way a human would; it preserves identifier names, uses idioms of the target language.

bobbydigitales,
@bobbydigitales@mastodon.gamedev.place avatar

@demofox It's called GPT-4. Gimme some code to translate!

bitinn,
@bitinn@mastodon.gamedev.place avatar

@demofox sure but are you ok with the translation being a bit off and create a subtle memory leak😀?

We are using human brain to mitigate the actual hard problems in natural languages, will computer do the same for sloppy code is the question.

reedbeta,
@reedbeta@mastodon.gamedev.place avatar

@demofox anecdotally have heard chatgpt does pretty decent at translating small amounts of code between languages

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • osvaldo12
  • DreamBathrooms
  • ngwrru68w68
  • Durango
  • mdbf
  • magazineikmin
  • everett
  • thenastyranch
  • rosin
  • Youngstown
  • slotface
  • khanakhh
  • kavyap
  • GTA5RPClips
  • megavids
  • tacticalgear
  • cubers
  • modclub
  • tester
  • InstantRegret
  • ethstaker
  • cisconetworking
  • anitta
  • provamag3
  • Leos
  • normalnudes
  • JUstTest
  • lostlight
  • All magazines