Mostly Grey former ginger with a preference for Rust. Leads wg-rustup, sorry about the mess. He/Him or They/Their Now @kinnison@fosstodon.org too

Manchester
Joined December 2008
Filter
Exclude
Time range
-
Near
It would be the case that I stay up until gone midnight writing a helper library ready for today's AdventOfCode, only to find that today's doesn't need the library :(
1
2
Clever! I decided to hack a direct proc_macro approach and came up with git.gitano.org.uk/parsebyreg… which is horrific in all senses, but does work for me, moderately complicatedly. It'd need serious refactorage before it could be primetime though.
1
1
Replying to @burntsushi5
I'm imagining a fairly simple regex -> json converter and then serde_json perhaps.
1
Also, do you know of any serde type thing where I could annotate a struct with a regexp with named captures of the fields, and have a derived parser for cheap?
1
Replying to @burntsushi5
One thing I really need to get on, is naming my captures in my regular expressions. I'm bored with "cap.get(n).ok_or("what, no foo?")?.as_str()......" type stuff :-)
1
1
Replying to @burntsushi5
Your approach to day4 was a tad wordier than mine but seems to have been similar. I'm trying to do your thing of not panic!()ing etc. It has been instructive in error propagation for me :-D git.gitano.org.uk/personal/d… if you're interested :-)
1
Such a satisfying dinner. Five different kimchis, four from my efforts at the weekend with @thinkl33t and @jeeeunevans, and one from Justin. Unf.
3
Replying to @wjjjjt
That's how it starts. Then you'll start to learn some of the grammar and you'll begin to write Rusty code. Sometimes though, it's just list comprehensions to solve AoC problems :-D
Replying to @pwaring
Unless you are being super strict with yourself, let the kernel free it for you on process termination
So, erm, yeah. We have a fridge for kimchi right? And we put beer in the spare space... Only room for two beers now.
1
3
This time we made λΆ€μΆ” κΉ€μΉ˜, 였이 κΉ€μΉ˜, 깍두기, and normal κΉ€μΉ˜. Thanks @maangchi!
3
4
3
37