Better HN
topnewbestaskshowjobs
Log inSign up

arjonagelhout

282 karma · joined Jun 5, 2020 (6y ago) · 99 submissions

arjonagelhout.nl
Submissions

comment 1mo ago · link · parent

I didn't know that was a thing, but that makes sense. Thanks!

comment 1mo ago · link · parent

Brilliant, this website is blocked at my work: "This content is blocked by your organization".

comment 4mo ago · link · parent

I can recommend OpenTK [0]. I've used it recently to create a 3D renderer, and I have not run into any issues.

[0] https://opentk.net/

comment 5mo ago · link · parent

I personally avoid Visual Studio Code as much as possible due to the scroll latency, so I think it is noticeable as long as you know what to look for.

comment 8mo ago · link · parent

There was a production car planned called the Lightyear One [0], originating from a Dutch student team, but if I recall correctly it was quite difficult and expensive to manufacture.

[0] https://en.wikipedia.org/wiki/Lightyear_0

comment 9mo ago · link · parent

I personally use Skia, in combination with a very thin platform layer. I do use C++ so that might still be a bit too low level, but after having set up everything, the Skia API is really nice for just drawing some text / other primitives onto the screen.

React Native uses Skia under the hood as far as I recall.

comment 10mo ago · link · parent

That wasn't my intention. The intention was to share the joy of working on a single project for a long time, and holding myself accountable to keep working on this project instead of abandoning it.

8.

The one and only codebase I'm ever going to keep working on(arjonagelhout.nl ↗)

2 points · by arjonagelhout · 10mo ago · 2 comments

comment 11mo ago · link · parent

Merry Christmas!

Here’s a quad tree:

11

11

—

0110

0110

1111

0110

—

00000000

00011000

00011000

00111100

01111110

11111111

00011000

00011000

comment 1y ago · link · parent

Hi HN, I’m working on a 3D modeling app, and landed on a simple approach to implementing undo for a mesh graph data structure.

I’d also love to be pointed to other techniques or approaches that might be better.

Let me know if the part about recording the diff is of interest.

11.

Simple undo history for a mesh graph using diffs(blog.shapereality.io ↗)

2 points · by arjonagelhout · 1y ago · 1 comment

comment 1y ago · link · parent

I think it’s a bug in getting a useful outcome, but it’s a feature in creating engagement with the post.

comment 1y ago · link · parent

I have the same issue. For many of the questions my answer is "all of the above, but A in context A, B in context B, etc.". Many are also not mutually exclusive.

Take this example: "When debugging I typically:"

> Write tests to isolate the problem

In the case of math functions, or more primitive building blocks, writing tests can help ensure correctness of the underlying functions, to exclude them from the problem search.

> Reason about the code logically first

This is always useful.

> Use a debugger to step through code systematically

Useful when dealing with a larger codebase and the control flow is hard to follow. The call stack can give quick guidance over trying to manually decipher the control flow.

> Add print statements to understand data flow:

Useful when debugging continuous data streams or events, e.g. mouse input, where you don't want to interrupt the user interaction that needs to be debugged.

comment 1y ago · link · parent

I get “A problem repeatedly occurred on <url>” on iOS Safari.

comment 1y ago · link · parent

I didn't know about Feather 3D, but it looks super aesthetically pleasing. I'll have to try it out.

I tried uMake a while back, but found the 3D viewport navigation a bit hard to use, and would often find out I had been drawing on the wrong plane after orbiting the camera.

After using something like Tilt Brush in VR, it's hard to go back to a 2D screen that doesn't instantly communicate the 3D location of the brush strokes you're placing.

comment 1y ago · link · parent

That's a good way of looking at it!

I'm definitely aiming to build a more focused app compared Blender, as I want to focus explicitly on modeling, e.g. BRep or NURBs.

What kind of apps have you worked on?

comment 1y ago · link · parent

I haven't used picocad, but I came across it once before. It looks adorable! I'll definitely check out its UX.

comment 1y ago · link · parent

I'm currently in contact with the Blender team to see where I could contribute, but you're right that there is space for multiple projects.

I think I'm going to focus more on CAD / architectural use cases, instead of attempting feature parity with Blender's main selling points (rendering, hard-surface modeling, sculpting).

comment 1y ago · link · parent

I'm building my own polygon modeling app for iOS as a side-project [0], so I feel a bit conflicted.

Getting fully featured Blender on the iPad will be amazing for things like Grease Pencil (drawing in 3D) or texture painting, but on the other hand my side-project just became a little bit less relevant.

I'll have to take a look at whether I can make some contributions to Blender.

[0] https://apps.apple.com/nl/app/shapereality-3d-modeling/id674...

comment 1y ago · link · parent

To add to this list, Apple has MSL, which uses a subset of C++

comment 1y ago · link · parent

I think this is indeed the advantage of this paper taking C++ as the language to compile to SPIR-V.

Game engines and other large codebases with graphics logic are commonly written in C++, and only having to learn and write a single language is great.

Right now, shaders -- if not working with an off-the-shelf graphics abstraction -- are kind of annoying to work with. Cross-compiling to GLSL, HLSL and Metal Shading Language is cumbersome. Almost all game engines create their own shading language and code generate / compile that to the respective shading languages for specific platforms.

This situation could be improved if GPUs were more standardized and didn't have proprietary instruction sets. Similar to how CPUs mainly have x86_64 and ARM64 as the dominant instruction sets.

comment 1y ago · link · parent

What is the main difference in shading languages vs. programming languages such as C++?

Metal Shading Language for example uses a subset of C++, and HLSL and GLSL are C-like languages.

In my view, it is nice to have an equivalent syntax and language for both CPU and GPU code, even though you still want to write simple code for GPU compute kernels and shaders.

comment 1y ago · link · parent

Could you elaborate on why you think libraries are an anti-pattern?

Is the alternative just one library or executable, with namespaces and directory structure being the source of truth for organization of a codebase?

comment 1y ago · link · parent

For me, Docker Desktop is simply an easy way to launch the Docker daemon and inspect some created images and their corresponding logs. Other than that, the cli suffices.

comment 1y ago · link · parent

Speaking as a person who can’t see themselves stop working, I think an important factor is how one derives meaning from their life. For some it might be living amazing experiences, and for others it can be in helping others (which could qualify as work). The healthiest seems to be a combination of the two, with a different ratio depending on the person.

Here in the Netherlands it’s common to see retired people do volunteering work, as it can bring great pleasure and satisfaction to help people. There’s of course also the communal aspect of it.

It’s also common to see business owners for example in family businesses to keep working at the company after the official retirement age.

So I’d argue work does not have to be a chore and can be a source of meaning and purpose. But if it is just a means to an end, it makes sense to not want to work your entire life and good labor and retirement laws should protect people from having to work their entire life.

comment 1y ago · link · parent

At the company I currently work for we also use C++, and I am quite proficient in it. But the amount of times I have slowed myself down by simple lifetime issues makes me want to switch to a more memory safe language. Whether that is C++ with profiles or a whole new language such as Rust.

For example, a week back I lost a few hours finding a segfault bug in C++ code, which ended up being a trivial lifetime error: I used a reference after it was invalidated due to a std::vector resize.

These kind of errors should be compile time errors, rather than hard to trace runtime errors.

How does your company go about changing to memory safety? Are new projects / libraries written in Rust for example? Do projects / libraries get (partially) rewritten?

comment 1y ago · link · parent

Although there are excellent alternatives to C++ such as Rust, C++ is still widely used as many open-source and commercial codebases are built with it.

Adding features to a language that is still actively used does not seem like a bad thing.

comment 1y ago · link · parent

A little while back, I had a conversation with a colleague about sorting entries by "updated at" in the user interface, and to my surprise this was not added by the backend team.

Many of these "we are going to need it"s come from experience. For example in the context of data structures (DS), I have made many "mistakes" that I do correctly a second time. These mistakes made writing algorithms for the DS harder, or made the DS have bad performance.

Sadly, it's hard to transfer this underlying breadth of knowledge and intuition for making good tradeoffs. As such, a one-off tip like this is limited in its usefulness.

comment 1y ago · link · parent

Unfortunately the price tag is too high for me, and since I'm based in the Netherlands, I did not manage to schedule a demo. However, what makes a good product is subjective and you're right that in many ways it is a good product.

From what I can see, the hardware and software quality are high, and the user experience is greatly simplified in contrast to something like Meta Quest, which' UX is often rough and clunky.

My main argument for saying it's not a good product, is that the form factor is not where it should be for mass consumer appeal.

Another subjective and personal pet peeve is that it's not possible to create an AR experience using custom rendering logic with Metal. One has to use RealityKit. Only a fully immersive experience (VR) can be created with Metal. (This might have changed since it came out and I'm happy to be proven wrong, then I'll definitely buy one). I understand the reasoning behind locking this down, but I would love to experiment with writing AR 3D modeling software for visionOS.

comment 1y ago · link · parent

This indicates to me that the Apple Vision and visionOS product line and OS are not canceled internally and that Apple is still committed to its future.

While the Apple Vision Pro itself is not a good or successful product, progress in display technology will enable Apple to build a more attractive consumer product, in the form of light, comfortable and unobtrusive AR glasses.

In this line of thinking — not just focusing on the flopped AVP but looking at the product line on the long term - I think it makes sense for this OS to be added to Godot.

I do think the concern for who will carry the maintenance burden is valid. In my experience, Apple hasn’t been the most responsive company when it comes to obscure bugs or issues with their API (e.g. with Cocoa). I would be wary of depending on continued support from a large tech company that can change its goals at any time.

All that being said, this is exciting!

1234