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·mês passado·2 comments

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

github.com
2 points·by lucasoshiro·mês passado·0 comments

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

lucasoshiro.github.io
1 points·by lucasoshiro·há 3 meses·0 comments

Braille generator for 3D printing written in OpenSCAD

thingiverse.com
1 points·by lucasoshiro·há 10 meses·0 comments

comments

lucasoshiro
·há 21 dias·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
·há 23 dias·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
·mês passado·discuss
Thanks!
lucasoshiro
·há 2 meses·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
·há 2 meses·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
·há 3 meses·discuss
Not everything needs to be "needed".
lucasoshiro
·há 4 meses·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
·há 5 meses·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
·há 6 meses·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
·há 6 meses·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
·há 6 meses·discuss
> Fundamentally, I do not debug off git history.

I'm really sorry. Using bisect and log -S saved hours of code debugging
lucasoshiro
·há 6 meses·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
·há 6 meses·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
·há 7 meses·discuss
Other difference (actually, more like a consequence of what you said) is that Git keeps reflogs for branches but not for tags
lucasoshiro
·há 7 meses·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
·há 7 meses·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
·há 8 meses·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
·há 8 meses·discuss
Clojure seems to be pretty strong. At least here in Brazil, several companies here use it as their main programming language
lucasoshiro
·há 8 meses·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
·há 8 meses·discuss
I wrote a text about that:

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