HackerTrans
TopNewTrendsCommentsPastAskShowJobs

lucasoshiro

no profile record

Submissions

Show HN: Using Haskell to play music on 3D printer motors (2020)

lucasoshiro.github.io
12 points·by lucasoshiro·الشهر الماضي·2 comments

Show HN: Module adding Layer-3 protocols SV and GOOSE to ns-3 network simulator

github.com
2 points·by lucasoshiro·الشهر الماضي·0 comments

Using the first and the last version of Torvalds's Git

lucasoshiro.github.io
1 points·by lucasoshiro·قبل 3 أشهر·0 comments

Braille generator for 3D printing written in OpenSCAD

thingiverse.com
1 points·by lucasoshiro·قبل 10 أشهر·0 comments

comments

lucasoshiro
·قبل 22 يومًا·discuss
> Browser based is not opposite to being local

Technically no, but in that sense everything cloud-based is local in some machine.

I wouldn't consider it "local" if I need to run a web server (!), "upload" if I want to open file or "download" to save it locally. This is client-server approach where both my machine acts as both client and server.
lucasoshiro
·قبل 23 يومًا·discuss
Really nice!

Do you have plans to release it for desktop (maybe using Electron)? One of my main complains about tools like Tinkercad is that they are browser-based, and it's easier/faster to have everything local. That's one of the reasons that I moved to OpenSCAD
lucasoshiro
·الشهر الماضي·discuss
Thanks!
lucasoshiro
·قبل شهرين·discuss
I always remap Caps Lock to Ctrl. I understand that Caps Lock needed to be next to Shift in typewriters, but in computers it seems like it is wasting a key in the home row for only be used sometimes for screaming (which can be done by holding shift...)
lucasoshiro
·قبل شهرين·discuss
> The only hard part about vim is to be forced to strecth the finger up to Escape

I still don't understand why people keep mentioning this, ctrl-c works as well to go back to the normal mode.

> windows you just have to edit (create?) a registry key

Or use Powertoys, which I don't know why it isn't a setting.

(saying as a Mac, Linux and Emacs user, although I still use Vim in the terminal)
lucasoshiro
·قبل 3 أشهر·discuss
Not everything needs to be "needed".
lucasoshiro
·قبل 4 أشهر·discuss
Yeah. It's hard to express and understand nested structures in a natural language yet they are easy in high-level programming languages. E.g. "the dog of first son of my neighbour" vs "me.neighbour.sons[0].dog", "sunny and hot, or rainy but not cold" vs "(sunny && hot) || (rainy && !cold)".

In the past maths were expressed using natural language, the math language exists because natural language isn't clear enough.
lucasoshiro
·قبل 5 أشهر·discuss
> Are university computer labs with desktop computers still a thing?

Of course, people shouldn't be forced to bring or even have a laptop powerful enough for using during the classes or finishing their tasks.
lucasoshiro
·قبل 6 أشهر·discuss
Actually, the Git data model supports empty directories, however, the index doesn't since it only maps names to files but not to directories. You can even create a commit with a root directory using --allow-empty, and it will use the hardcoded empty tree object (4b825dc642cb6eb9a060e54bf8d69288fbee4904).
lucasoshiro
·قبل 6 أشهر·discuss
Since the first time that I saw this here in HN I've been sharing it with several people around me. This including CS students, CS professors and non-technical people who only asked "how does a computer work?". I only say "just type 'cpu.land' and read that". This is one of the best things that I've found here.
lucasoshiro
·قبل 6 أشهر·discuss
> Fundamentally, I do not debug off git history.

I'm really sorry. Using bisect and log -S saved hours of code debugging
lucasoshiro
·قبل 6 أشهر·discuss
> Now, if someone wants to recreate win95

You can try Chicago95 [1], but it's only a XFCE theme. If you want more than a theme, there's SerenityOS [2] but it isn't suitable for daily use (yet)

[1] https://github.com/grassmunk/Chicago95 [2] https://github.com/SerenityOS/serenity
lucasoshiro
·قبل 6 أشهر·discuss
Cool! But the title made me think that "cigarette smoke effect" made me think that it was about health issues, and I clicked because I was curious about how shaders could be related to that.
lucasoshiro
·قبل 7 أشهر·discuss
Other difference (actually, more like a consequence of what you said) is that Git keeps reflogs for branches but not for tags
lucasoshiro
·قبل 7 أشهر·discuss
Agreed. If they don't care about the history, they don't need a vcs. There's no point in keeping a history if the history isn't helpful
lucasoshiro
·قبل 7 أشهر·discuss
> Maybe consider putting your energy into a good documentation inside the repository.

Commit messages are documentation.

If you have a good commit history you don't need write tons of documents explaining each decision. The history will contain everything that you need, including: when and who changed the code, what was the code change and why the code exists. You have a good interface for retrieving that documentation (git log, perhaps with -S, -G, --grep, -L and some pathspecs) without needing to maintain extra infrastructure for that and without being cluttered over time (it will be mostly hidden unless you actively search that). You also don't need to remember to update the documents, you are forced to do that after each commit.

And that's not a hack, Git was made for that.
lucasoshiro
·قبل 8 أشهر·discuss
> They're all using it, all the time, for everything

Do you know someone? Using Firefox nowadays is itself a "super-online bubble"
lucasoshiro
·قبل 8 أشهر·discuss
Clojure seems to be pretty strong. At least here in Brazil, several companies here use it as their main programming language
lucasoshiro
·قبل 8 أشهر·discuss
> Clojure solves the same problems Rust solves in a much simpler way

I'm curious about that, can you elaborate? I'm a beginner in Clojure and I only know a few concepts about Rust, but it seems to me that they solve (at least, currently) very different problems...

I only saw Rust being used in places where C or C++ would be used in the past (Linux kernel, CLI apps, desktop apps), while I only saw Clojure being used as a modern and functional Java and JS replacement.

Not to mention how different they are as languages (static vs dynamic typing, native vs jvm, borrow checker vs garbage collection)
lucasoshiro
·قبل 8 أشهر·discuss
I wrote a text about that:

https://lucasoshiro.github.io/posts-en/2024-04-08-please_don...