HackerTrans
TopNewTrendsCommentsPastAskShowJobs

lucasoshiro

899 karmajoined 3 năm trước

Submissions

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

lucasoshiro.github.io
12 points·by lucasoshiro·tháng trước·2 comments

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

github.com
2 points·by lucasoshiro·tháng trước·0 comments

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

lucasoshiro.github.io
1 points·by lucasoshiro·3 tháng trước·0 comments

Braille generator for 3D printing written in OpenSCAD

thingiverse.com
1 points·by lucasoshiro·10 tháng trước·0 comments

comments

lucasoshiro
·6 giờ trước·discuss
I know this only because I'm an emacs user. Outside that niche .el is an obscure file extension, so, no, it's not that obvious
lucasoshiro
·9 giờ trước·discuss
tbh I never cared about bibtex features from Zotero... Having a interface where I can place and organize pdfs, filter them by author and have everything syncronized between my tablet and my computer is what really makes me use it.

If this kind of feature could be replaced by txt files I probably would be using it, but, no...
lucasoshiro
·22 ngày trước·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 ngày trước·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
·tháng trước·discuss
Thanks!
lucasoshiro
·2 tháng trước·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
·2 tháng trước·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 tháng trước·discuss
Not everything needs to be "needed".
lucasoshiro
·4 tháng trước·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 tháng trước·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 tháng trước·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 tháng trước·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 tháng trước·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 tháng trước·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 tháng trước·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 tháng trước·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 tháng trước·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 tháng trước·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 tháng trước·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 tháng trước·discuss
Clojure seems to be pretty strong. At least here in Brazil, several companies here use it as their main programming language