Better HN
topnewbestaskshowjobs
Log inSign up

adius

1,779 karma · joined Jan 14, 2015 (11y ago) · 282 submissions

CEO & full stack developer at airsequel.com. Occasional blogger at adriansieber.com.
Submissions

comment 4w ago · link · parent

Cuis Smalltalk (https://cuis.st) uses vector graphics for its rendering engine!

comment 4w ago · link · parent

I would recommend Cuis Smalltalk (https://cuis.st) as a more idiomatic solution that also looks much better due to it's vector graphic based rendering engine.

comment 3mo ago · link · parent

I've tried to get into Solidworks, Fusion, and FreeCAD several times, but every time I come back to programmatic CAD. It just better matches how I think about 3D design I guess. Also, I love that there can't be any hidden state or constraints -everything is fully defined by your code and fully visible.

Just give it a try, I guess, and see if it works for your use cases!

comment 3mo ago · link · parent

I was actually able to get a first version released just now: https://luacad.ad-si.com/playground It's still rather bare bones and won't work well for large models, but otherwise it should be fully functional!

comment 3mo ago · link · parent

I'm pretty sure it's Turing complete by now. If it was conceptualized as a limited language and only became a full fledged programming language over time, it would certainly explain all its weird warts. (Here is some more details: https://github.com/ad-si/LuaCAD#why-lua) I guess 3D modeling is just too complex for a simple, but limited DSL.

Lua is easier to use, faster, and more feature-rich. It's one of those rare occasions when a new solution is actually better in every single way.

comment 3mo ago · link · parent

Agreed! I’m already working on it, but it’s not quite ready yet. ETA is 1-2 weeks.

comment 3mo ago · link · parent

Thanks! It natively supports all BOSL2 functions which include a chamfer argument (https://github.com/revarbat/BOSL/wiki#common-arguments). So that makes it quite straightforward to add chamfers to everything!

comment 3mo ago · link · parent

Yes, it executes in a full fledged Lua environment. So you can do all the things you expect do be able to do with Lua!

I’d pick Lua over Python any day, but maybe that’s just me. ;-)

9.

Show HN: LuaCAD – Parametric CAD Scripted in Lua(luacad.ad-si.com ↗)

106 points · by adius · 3mo ago · 25 comments

comment 3mo ago · link · parent

Good idea! Just committed the necessary changes in https://github.com/ad-si/Woxi/commit/f337a722871ad1b08f8e783.... Did I do it correctly?

comment 3mo ago · link · parent

No, none of them are implemented yet. I'll bump the priority to implement this!

comment 3mo ago · link · parent

Interesting - I would never use it as I find entering math with plain ASCII much faster and more intuitive, but if there is interest in this, I'll increase its priority!

comment 3mo ago · link · parent

Any help is highly appreciated! A great way to get started would be to open issues for the problems you found at https://github.com/ad-si/Woxi/issues.

comment 3mo ago · link · parent

Thanks! I’m interested as well … I’ll check it out and report back!

comment 3mo ago · link · parent

Performance is pretty good for most stuff by now. However, there are functions which not optimized yet or implemented in a very basic way and if you use them in non-trivial ways the performance might be quite slow. We're happy about any reports of such issues at https://github.com/ad-si/Woxi/issues!

comment 3mo ago · link · parent

Yes, Rubi mostly works by now! Performance is still a concern, but we're working on improving it. I'll add some information on how to best use Rubi to the documentation soon. I already have a draft, but didn't find the time to finish it, yet.

comment 3mo ago · link · parent

We currently support almost everything up to version 6.0. Here is a detailed comparison with all Mathematica versions: https://woxi.ad-si.com/docs/comparison/mathematica/

However, MathLink is one of the few exceptions as it is deprecated by now.

comment 3mo ago · link · parent

I think the Wolfram Language got 80–90% of it right, and that's why I want to reimplement and use it in the first place. It bothers me that I have to use inferior solutions, such as those implemented in Python and Julia, just because the better solution is prohibitively expensive.

Of course, there are a few things I think we can do better than the Wolfram Language, but given all the available legacy code, there's really no point in making it slightly different and losing the ability to use that code. However, we might build an alternative syntax and frontend in the future that surfaces the capabilities of the Wolfram Language with a better UX.

comment 3mo ago · link · parent

Since then, we've made more than 7,000 commits and massively expanded Woxi's feature set. So it's well worth another try for anyone who tried it back then!

20.

Show HN: Woxi - Open-source Mathematica / Wolfram Language reimplementation(woxi.ad-si.com ↗)

314 points · by adius · 3mo ago · 46 comments

comment 3mo ago · link · parent

Cuis Smalltalk has full high-DPI support as its GUI is based on vector graphics: https://cuis.st/

comment 3mo ago · link · parent

The "Initial Motivation" section in the article explains why existing mobile apps aren't good enough.

comment 3mo ago · link · parent

Fixed this on main. The macOS build linked against Homebrew's libwebp by absolute path but never bundled it, so it only ran on machines that happened to have it installed. The build now copies all non-system dylibs into the app and rewrites the install names, and fails if any absolute reference survives.

comment 3mo ago · link · parent

Thanks for the report. I'm looking into it!

comment 3mo ago · link · parent

After 9 years of on-and-off development, I'm happy to announce the 1.0 release of Perspec, a desktop app for correcting the perspective of photos of documents, receipts, and whiteboards.

The headline feature of 1.0 is automatic corner detection: Instead of the usual edge-detection + Hough transform pipeline, it segments the document via watershed segmentation and finds corners, which handles wrinkled receipts and curved book pages much better. And if the detection is off, you can just drag the selection polygon to fix it.

26.

Perspec 1.0 – Desktop app for perspective correction of document photos(adriansieber.com ↗)

6 points · by adius · 3mo ago · 1 comment

comment 5mo ago · link · parent

My theory is that writing as much as possible in Rust will improve performance and produce higher-quality code due to Rust's static typing. So far, it's been working well, but the final verdict is still out.

comment 5mo ago · link · parent

Author here: I absolutely do not understand this mindset. It has almost 20K unit tests by now and hundreds of full end-to-end tests of complicated scripts to ensure it works and matches the output of Wolframscript. Why does it matter that I was using Claude to help me implement it?

comment 5mo ago · link · parent

Mathics (https://mathics.org/) has been working on a Mathematica clone for years and hasn't had any problems so far. There have been many legal cases establishing that APIs are't copyrightable, and since Woxi shares zero code with Mathematica, it should be fine.

No support for intermediate steps yet, but if there is interest in it, I'd be happy to prioritize it.

comment 5mo ago · link · parent

Thanks! I'm hoping to use libraries for this, but unfortunately there aren't many available in Rust yet for those kinds of problems.

Integrating Symbolica would be awesome, but our licenses are incompatible at the moment. If you're willing to relicense parts for Woxi, I'd be happy to work on this together!

12345
10