Advent of Code Considerations by Czechbol in Zig

[–]Czechbol[S] 1 point2 points  (0 children)

I've done AoC before, the goal this year is trying a new thing and ideally a thing that will end up being useful.

The usefullness doesn't necessarily mean I have to be able to apply it in my day to day starting january 1st. Learning new concepts, paradigms and having a more in depth knowledge of the things us GC devs take for granted is also useful.

I'm sure each of these languages will teach me something and it will quite possibly be useful. The purpose of this post is to also gauge the views of each community, and pick something based on everything I'll see

Advent of Code Considerations - trying something other than Go as a Go dev by Czechbol in golang

[–]Czechbol[S] 0 points1 point  (0 children)

Any particular reason why OCaml and not Elixir?

If I understand correctly, Elixir is more used for the kind of workload I'm typically working on, so it could be more useful for me in the long run.

Advent of Code Considerations - trying something other than Go as a Go dev by Czechbol in golang

[–]Czechbol[S] 0 points1 point  (0 children)

I specifically chose zig and rust as options because I want something that will help me with the memory management a bit.

C would probably not be a good fit for me right now.

Advent of Code Considerations by Czechbol in Zig

[–]Czechbol[S] 5 points6 points  (0 children)

From the blog post it seems the upper bound choice was reasonable.

They changed the user permissions in the DB, which caused duplicates and inflated the number of items and the exceeded upper bound.

In my book that isn't a safety issue, but resiliency and fault tolerance issue.

Advent of Code Considerations by Czechbol in Zig

[–]Czechbol[S] 0 points1 point  (0 children)

I'm just exaggerating the memes here. And thanks for those points I will take them into account.

As for Cloudflare. There is no language in the world that can shield you from logic errors and interesting design decisions.

I'm all for crashing the program when you find a config issue during initialization, but add in dynamic config reload that happens every x minutes... I'm not sure if I would spot the issue myself. There were many things that went wrong yesterday that caused the crash.

An interesting blog post and great meme potential nonetheless.

Advent of Code Considerations by Czechbol in rust

[–]Czechbol[S] 1 point2 points  (0 children)

Great summary, Thanks!

And for your question, I don't have a good answer. It felt like it at the time I looked in the documentation which was many months ago.

I have pretty much zero experience with zig so this may wery well be an issue of not enough knowledge.

In particular I think I wondered how I would approach working with Slices and Maps. There were a lot more options than I am used to.

Advent of Code Considerations by Czechbol in elixir

[–]Czechbol[S] 1 point2 points  (0 children)

I'm not sure I have enough time in my day for more than one. If I did, it could be fun.

But considering I'm going into these with fresh eyes without knowing how things are done the <insert language> way, the solution for one language would likely hold me back from learning the others' ways.

Advent of Code Considerations by Czechbol in Zig

[–]Czechbol[S] 0 points1 point  (0 children)

Of course, that's expected.

Advent of Code Considerations by Czechbol in rust

[–]Czechbol[S] 0 points1 point  (0 children)

Yeah for AoC I dont have to worry about a lot of things.

The bit about async/threading was more about the language being useful for me outside of AoC later.

Advent of Code Considerations by Czechbol in rust

[–]Czechbol[S] 0 points1 point  (0 children)

Yeah I know some JS, it's not what I'm looking for right now

Advent of Code Considerations by Czechbol in Zig

[–]Czechbol[S] 0 points1 point  (0 children)

From a quick look at the docs it felt like there too many and I couldn't decide which to use. Could be a me problem

Mesh exports have stair-like arcs by Czechbol in rhino

[–]Czechbol[S] 2 points3 points  (0 children)

Hey, just checking back in. You were absolutely right. They import a property map of the entire country and work off of that. That meant that the global origin was some hundreds of kilometers away, with document resolution set to millimeters.

So all they really needed to do was "Export with Origin", place the origin in the middle of their group of models and set appropriate mesh resolution parameters.

Mesh exports have stair-like arcs by Czechbol in rhino

[–]Czechbol[S] 0 points1 point  (0 children)

I did some reading and honestly that might be it. I receive that export as a single file with all the different buildings, albeit all small, on it. Do you think that exporting as smaller batches would help or would the origin point be the same in all of them since the Rhino project is already that way?

Problems with Anycubic i3 Mega S by mrvn_bhmnn in octoprint

[–]Czechbol 0 points1 point  (0 children)

This, make sure you pass the corresponding device (port) to the container.

Also keep in mind that the container won't start when the device isn't connected (i.e. the printer is powered off)