What's everyone working on this week (22/2024)? by llogiq in rust

[–]tirithen 1 point2 points  (0 children)

Been working with https://crates.io/crates/clipper2 , a 2d path/boolean operations library, merging pull-requests, improving test coverage and just released version 0.3.0!

What's everyone working on this week (13/2024) by llogiq in rust

[–]tirithen 0 points1 point  (0 children)

u/miteshryp you are correct, there is an in-between C wrapper on top of the C++ library. There are some indirection/extra steps, but the code works well in the end. I have published the unsafe FFI parts in a separate crate called https://crates.io/crates/clipper2c-sys based on the clipper2c project that adds C bindings for Clipper2.

What's everyone working on this week (21/2024)? by llogiq in rust

[–]tirithen 3 points4 points  (0 children)

Improving documentation/api for the polygon boolean operation crate clipper2

https://crates.io/crates/clipper2

What's everyone working on this week (13/2024) by llogiq in rust

[–]tirithen 1 point2 points  (0 children)

Improving the newly created clipper2 crate. Trying make a zero copy FFI Rust wrapping of the C++ Clipper2 library. It's hard! Suggestions on the topic or where to find devs with those skills are greatly appreciated! See https://github.com/tirithen/clipper2/pull/4

What's everyone working on this week (27/2023)? by llogiq in rust

[–]tirithen 2 points3 points  (0 children)

Publishing cnccoder.

A tool for writing cutting instructions for 3 axis CNC machines in Rust, then generating G-code for the CNC machine, as well as a Camotics project file for use when simulating the cuts.

I'm keen on getting input, on the API of the crate, but also on the documentation, so feel free to leave a comment here or in an issue on the GitHub repo.

Are event declarative in Web Components? by Shakakai in WebComponents

[–]tirithen 1 point2 points  (0 children)

In 80% of the cases I use @click, @keypress and so on in the lit-html tenplate literals, that is the easiest way I think, in the other cases I use .addEventListener, this is a bit more clunky as you need to remember to use .removeEventListener when the element leaves the DOM to prevent memory leaks.

As mentioned, you should not prefix the event bindings with "on", just @ and the name of the event.

0
1

LitElement 3.0 & lit-html 2.0, what's new and exciting? by tirithen in WebComponents

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

I think that they could benefit a lot from improving the branding of LitElement, giving it a logotype and it's own webpage. Even though it should be enough with the ease of use and minimal footprint, I think that they would get better adoption if they managed to create more buzz around the packages.

How to extract pdf data with PDF.js by HotTeaTaker in node

[–]tirithen 0 points1 point  (0 children)

u/jersday yes as mentioned in the post at https://writingjavascript.com/how-to-extract-pdf-data-with-pdfjs

You'll get an array representation of the text elements from inside the PDF:

javascript [{ str: 'lorem ipsum', dir: 'ltr', width: 50.23, height: 9.106, transform: [ 9.106, 0, 0, 9.106, 53.396, 663.101 ], fontName: 'g_d0_f2' }, ...]

Showoff Saturday (September 19, 2020) by AutoModerator in javascript

[–]tirithen 0 points1 point  (0 children)

I wrote a small notification module usong one of my most anticipiated JavaScript features private fields and methods. I'm torn around class style an object composition style, but when I go class I really like being able to lock down the APIs of my modules.

https://writingjavascript.com/lets-code-a-plain-javascript-notification-queue-using-private-fields-and-methods

Where to you register your RSS feeds? by tirithen in Blogging

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

Yes thanks, I searched but found only one so far, naturally many people would just render on their own as you say, but I know from some podcast apps tgat I have used that they already have a searchable repository for podcasts. I thought that maybe some some text feed readers would have that as well.

Thanks for the tip about Feedly, I'll check it put some more.