Skip to content
/ fft Public

A Toit example using write-on-stdout_ and observations with coding assistants.

Notifications You must be signed in to change notification settings

davidg238/fft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An example using core.print.write-on-stdout_ to plot a simple graph to stdout.

Towards the end of the referenced STEP paper, there is some Smalltalk code to plot an FFT.

An initial translation to Toit using ChatGPT and Copilot was unsatisfactory, although the code ran, there were errors.

Using sketch.dev was much more productive.
It works directly with GitHub, isolating your work in a container.
sketch.dev not only works with the current Toit syntax, it installed the tooling within the constainer, produced a test suite and corrected bugs.

You can see the development session here. This session ended prematurely owing to an authentication issue. You can see a successful session, when sketch.dev was used to migrate an API change in a fuzzy logic library.

You can then see what happened when ChatGPT reviewed the test suite and then checked the numerical values used in the suite. I understand the precedence rules in Toit, "The mathematical operators all have higher precedence than calls", to mean the parentheses are not required in Suggestions / Minor Fixes 1.

References:

STEPS Toward Espressive Programming Systems, 2011 Progress Report Submitted to the National Science Foundation (NSF) October 2011

About

A Toit example using write-on-stdout_ and observations with coding assistants.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages