I'm just excited about how much easier it will be to diagnose user issues now that we can open up the prompts that it used.
I'm just excited about how much easier it will be to diagnose user issues now that we can open up the prompts that it used.
AI in code editors opened up so many new feature possibilities that I finally managed to think up a useful vs code extension that didn't already exist: Generate debug log point messages with Logpoint Generator. marketplace.visualstudio.com/items?itemNa...
The "toggle" extension plus a keybinding can do it:
"key": "...",
"command": "toggle",
"when": "editorTextFocus",
"args": {
"id": "autoCompletions",
"value": [
{ "github.copilot.editor.enableAutoCompletions": true },
{ "github.copilot.editor.enableAutoCompletions": false }
]
}
love these new completions.
I assume that means that one of my object files was stale and only got refreshed by the makefile when the source was updated.
I'm probably missing some important tool to help guard against that, but damn, I certainly do not envy C programmers at this point.
I'm still working through the "Crafting Compilers" book.
I spent at least an hour trying to figure out why my C program was returning something like 3.67e-307 for every value I was trying to store in a byte array. After adding a bunch of printf statements to debug, it just suddenly started working.
PSA - 6 years old is a great time to be introduced to Star Wars. I'm through the original trilogy and episode I with my daughter, and she is loving it.
Seeing her reaction to "I am your father" was very satisfying.
Give Copilot another shot if you already used up your trial period early on. It has improved quite a bit and a free tier is now available.
Dave Chappelle as Tyrone Biggums meme "Ya'll got any more of them code puzzles"
Me trying to step away from #AdventOfCode to regain several hours of my day.
Those are good reasons, but seem more beneficial with more experience in the language. Those surveys seem to imply that people love the language but haven't used it much. But maybe people just really like the idea of getting that performance.
Good point on cargo, that tool is to notch
I don't understand why rust gets such an exceptional amount of love in those SO dev surveys. The learning curve feels so steep with all that syntax and the ownership restrictions.
I'm still willing to slog my way through as I learn it, but why does it appeal so widely?
I finished #AdventOfCode day 13, but damn, I don't remember linear algebra being that tricky
I love when the #AdventOfCode problems become time constrained because you see how powerful optimization can be - My solution went from not finishing after waiting for around a minute to 71 ms after optimization.
my solution: github.com/amunger/adve...
It took me a while to process that they were actually talking about Among Us. What a joke
A side note saying "yes, they actually wrote machine code by hand. On punch cards. Which, presumably, they punched with their fists."
I really appreciate it when humor is mixed into technical books, and Crafting Interpreters delivers well on that.
I'm through part 2 of Crafting Interpreters and I even added arrays to the language for the jlox tree-walk interpreter as the final challenge exercise.
I wasn't sure how much I was picking up while reading through, but adding my own feature really helped cement the material in my mind.
Copilot providing a function to "turn right", only knowing that I have a set of directions to use in a 2d array
seriously, 12 hours since the puzzle came out and it already knows how I'll need to cycle through the directions
Just add the keybinding (with whatever key):
"key": "ctrl+shift+k y",
"command": "toggle",
"when": "editorTextFocus",
"args": {
"id": "autoCompletions",
"value": [
{ "github.copilot.editor.enableAutoCompletions": true },
{ "github.copilot.editor.enableAutoCompletions": false }
]
}
If you want copilot auto-completions for the tedious stuff, but don't want it when thinking through your #AdventOfCode solution. You can make a keybinding to toggle it on and off with the "Toggle" extension from @rebornix.com
#AdventOfCode day 5: modified bubble sort to the rescue!
I meant more like a faux pas, but if they're hidden then it's all good
Sounds nice, but aren't there rules against having Christmas lights up out of season?
Ok, Copilot is not much help. Who would calculate similarity like that?
Found some good analysis on Reddit www.reddit.com/r/adventofco.... Looks like more people actually got through the final challenge in '22 than '23.
Are there stats for how far people make it through advent of code each year? I'd be interested to see the trend as AI tools become more ubiquitous
The choice of coding style doesn't matter much to me as long as it's consistent, and it's interesting to actually see that by looking at my attitude over time.
I was initially disturbed by importing functions in typescript and using them as if they were local but have grown comfortable with it. Now I can't stand seeing a class member used within the class without using prefixing with "this".
The author initially asks how it could be implemented, and I quickly dismissed using exceptions since I couldn't imagine him suggesting such a thing.
Though I get the impression that performance is not a high priority with tree-walk interpreters.
You sometimes discover that a "bad practice" in software can actually be perfectly suited for a specific case.
The latest one for me was using exceptions for control flow to implement return statements while reading Crafting Interpreters.