Replies: 25 comments
-
|
Beta Was this translation helpful? Give feedback.
-
Summarize what you did. Explain how you know your implementation works—how did you test it? Which test inputs did you use? Do you have any quantitative results to report?
What was the hardest part of the task? How did you solve this problem?
|
Beta Was this translation helpful? Give feedback.
-
Summary
Testing
Difficulties
|
Beta Was this translation helpful? Give feedback.
-
Vivian and I worked on lesson 2 together. Summary Implementation details Conjugate gradient solver:
Bril program transformation:
What was the hardest part of the task? How did you solve this problem?
|
Beta Was this translation helpful? Give feedback.
-
SummaryImplementation DetailsBenchmark:
Tool:
Difficulties
|
Beta Was this translation helpful? Give feedback.
-
Summary Details
Difficulties
|
Beta Was this translation helpful? Give feedback.
-
Programs: Summary:
What was the hardest part of the task? How did you solve this problem?:
|
Beta Was this translation helpful? Give feedback.
-
I wrote the following pieces of code: Testing and the difficulties within:
|
Beta Was this translation helpful? Give feedback.
-
SummaryRectangle Fitting Benchmark Implementation Details
Difficulties
|
Beta Was this translation helpful? Give feedback.
-
Summary Implementation
Difficulties
|
Beta Was this translation helpful? Give feedback.
-
SummaryImplementation
Difficulties
Generative AI
|
Beta Was this translation helpful? Give feedback.
-
SummaryTwo Sum Benchmark PR ImplementationBenchmark
Tool
DifficultiesBenchmark
Tool
Generative AII didn't use Generative AI for this assignment. |
Beta Was this translation helpful? Give feedback.
-
Post any questions you have about Lesson 2! And, when you finish your implementation tasks, include a link here to your benchmark PR and your new Bril tool. Explain what you did and mention anything you found interesting about it. Summary
Other thoughts
|
Beta Was this translation helpful? Give feedback.
-
SummaryMe and @JohnDRubio worked on writing a tool to generate a CFG for a given function, and did further analysis to output the method that control was transferred for each edge in the CFG, whether that be a jump, branch, or a fall-through. Implementation
Benchmark
Difficulties
|
Beta Was this translation helpful? Give feedback.
-
Summary
Implementation
Testing
Difficulties
|
Beta Was this translation helpful? Give feedback.
-
Summary Implementation Details Sometimes we need to silent the log of a program to avoid log slow down the program, so I have wrote a tool that removes all print operation in a bril code. Difficulties |
Beta Was this translation helpful? Give feedback.
-
Summary Implementation Details
Testing
Difficulties
|
Beta Was this translation helpful? Give feedback.
-
SummaryImplementationBenchmark
Tool
DifficultiesBenchmark
Tool
|
Beta Was this translation helpful? Give feedback.
-
Summarysum-check benchmark Implementation Details
Difficulties
Generative AII only use chatgpt for python syntax The strength for this kind of tool is that it can actually understand what I am asking. For my previous use, it can give me a correct direction of how to do. I can treat it as my software architect instead of code writer. |
Beta Was this translation helpful? Give feedback.
-
Summaryvsmul benchmark Implementation Details
DifficultiesMost of the difficulties associated with the benchmark came from being unfamiliar with Parsing JSON with Rust was a little more complicated than expected. It is slightly less convenient to work with than Python, but after an hour or so of messing around, I was able to deserialize the JSON into my own Rust types. My initial idea for the simple debugger was to also print a count for the # of times each method is called as well by wrapping each method in another method that counts each call. This turned out more challenging than expected as I haven't figured out how to deserialize the individual instructions yet. Instead I settled with just printing whether a method has been called at the start. This also was quite challenging as printing does not seem to support string (or character) literals. It took some finessing to print out a series of characters and it is still somewhat awkward as there are spaces between each character. |
Beta Was this translation helpful? Give feedback.
-
SummaryBenchmark: Birthday paradox benchmark ImplementationBenchmark
Tool
DifficultiesBrilThere were several issues when getting Bril setup:
Benchmark
Not really sure what I was doing wrong, but it might also be correlated to the fact that generating the |
Beta Was this translation helpful? Give feedback.
-
@xalbt and I worked together on lesson 2. SummaryBenchmark: quickselect ImplementationBenchmark
Tool
Difficulties
|
Beta Was this translation helpful? Give feedback.
-
SummaryFor my benchmark, I decided to implement quicksort using a Hoare partitioning scheme and median of three pivot selection. For my Bril transform, I decided to implement as pass that would transform all ImplementationBenchmark
Bril Transform
|
Beta Was this translation helpful? Give feedback.
-
Summarysampsyo/bril#262 ImplementationI wrote a function to reverse the digits of an integer (for instance from 123 to 321). For the analysis tool, I choose python and use the json file of the 8-queens problem as an example. My analysis script would keep track of all the labels in one program, grouped them by the function in which they appear (key = function name, value = list of label names), and print them out. For the return value I sort everything in alphabetical order. In this way I can guarantee that for how many times we run the script the result would be the same. DifficultiesThe first difficulty is to set up the bril tool. My python environment and path variables do not seem to be set up properly and I have problem when running the commands, so I have to figure out where the python scripts are installed and figure out the linking issue. The second difficulty is to get familiar with the bril tool and figure out how to implement the task. I first tried to use the existing typescript compiler to generate bril code, but the compiler is quite limited and could not translate my code correctly (for instance it keeps complaining about unsupported types) After trying to debug the typescript compiler for a while I start to write bril program by hand, which turns out to be much easier. |
Beta Was this translation helpful? Give feedback.
-
Summarize what I did
How do I know my implementation works
Difficulties |
Beta Was this translation helpful? Give feedback.
-
Post any questions you have about Lesson 2! And, when you finish your implementation tasks, include a link here to your benchmark PR and your new Bril tool. Explain what you did and mention anything you found interesting about it.
Beta Was this translation helpful? Give feedback.
All reactions