Better HN
topnewbestaskshowjobs
Log inSign up

spelufo

24 karma · joined Jul 11, 2016 (10y ago) · 20 submissions

github.com/spelufo

spelufo.com

Software developer from Uruguay. Also Italian.

Vesuvius challenge contributor.

Vento venture building program participant.

Submissions

comment 5mo ago · link · parent

So cool! Congratulations to the team. When scroll 4 (PHerc 1667) was first published, it was clear that the sheets were less compressed than the first two scrolls, so it would be easier to segment the surface. However, the whole surface looked similar to what the ink had looked like in scroll 1 where letters were first discovered.

But the team persevered and scanned at higher resolutions and eventually found letters: https://scrollprize.substack.com/p/finallyletters-in-scroll-...

Now they've managed to bring out the ink across the whole scroll. Truly inspiring, can't wait to read up on how they did it.

comment 5mo ago · link · parent

Nice. I want one in Spanish so I can compare results.

comment 5mo ago · link · parent

do you really think so?!

I think bang-interro just didn't sound as nice and that's probably why it is called an interrobang.

comment 6mo ago · link · parent

Pedantic note on notation:

"A > B" reads as "A greater than B"

"A -> B" reads as "A to B"

5.

Twitter is not Elon's [video](youtube.com ↗)

2 points · by spelufo · 2y ago · discuss

6.

Is Google Training AI on YouTube Videos? [video](youtube.com ↗)

3 points · by spelufo · 2y ago · discuss

comment 2y ago · link · parent

  Location: Italy, Uruguay by November.
  Remote: Yes
  Willing to relocate: Yes
  Technologies: Julia, Python, Django, Go, Kubernetes, Clojure, Javascript, etc.
  Résumé/CV: https://www.linkedin.com/in/santiago-pelufo-409baa1aa/
  Email: santiagopelufo at gmail
Experienced web developer. Problem solver, scientifically minded. Vesuvius Challenge contributor.

comment 2y ago · link · parent

What is bullshit is the attempt to appropriate a useful neutral adjective to mean more than it does. Mathy is just mathy. Physics is more mathy than psychology. Too mathy can be bad, sure.

comment 2y ago · link · parent

Fair point, I might be mistaken. But I think there are lots of small resellers that wouldn't exist if buying online from abroad was as seamless and risk free as buying online locally through mercado libre. The real problem is the requirement of contacting a customs officer to import anything above 200usd, and the risk of having the product stopped by customs. The resellers value is in saving you that bureaucracy by doing it in bulk. And in practice, because of the small market, it greatly reduces the variety of products on offer.

comment 2y ago · link · parent

I'm Uruguayan and this drives me crazy. Specially for products that are also tools for industries where we can and do compete. Buying a computer in Uruguay costs about twice as much as in the US.

If this is all self imposed by tariffs, which as far as I know it is, what industry are the tariffs really defending? Certainly not Uruguayan electronics manufacturers, there aren't any. The only people that I imagine benefit are customs officers and companies that import stuff to sell in Uruguay. There isn't any new capability to build things that the country gets in return. We learn from exporting talent instead.

And if we want to compete we need to do it globally. Our market is too small, the population is ~3M.

comment 2y ago · link · parent

There's a way to configure readline (which bash and many other use) to use up arrow history, like Matlab or Julia do by default, where you hit the up arrow key to search the history for commands that start with what you've typed so far. It is a small thing, but I use it all the time.

In ~/.inputrc:

    "\e[A": history-search-backward
    "\C-p": history-search-backward
    "\e[B": history-search-forward
    "\C-n": history-search-forward

comment 2y ago · link · parent

Also, `cd -` to go back to the previous directory. And for git branches `git checkout -`. Handy.

comment 2y ago · link · parent

What about the database side of things?

comment 3y ago · link · parent

varchar (100) ?

15.

The Unfolding of Language(archive.org ↗)

1 points · by spelufo · 3y ago · discuss

comment 3y ago · link · parent

Same here. I call it mkcd

comment 3y ago · link · parent

Yes, I think I used to check if `$cmd` was in a space separated list of valid commands, but I don't anymore because I only every use this to quickly get some commands down into a project's directory so as not to forget them.

As soon as any complexity or validation is needed I move to python, which is usually a better fit, and arguably even more portable.

comment 3y ago · link · parent

I like this dispatch trick:

build() { ... }

run() { ... }

cmd="$1"

shift

$cmd "$@"

comment 9y ago · link · parent

I made something similar with fsnotify recently: https://github.com/spelufo/on-change

comment 10y ago · link · parent

I used a port of the rc shell for linux as my login shell for a couple of months. I switched back to zsh eventually because rc doesn't have job control and autocompletion. The autocompletion wasn't that big an issue because it can use readline for history completion, and it can be configured so that when you type the start of a command and hit up arrow it will find the last command that started with what you typed. This can be replicated for zsh and bash, and it's arguably as good as autocompletion. I found no convinient work-around for the lack of job control, other than starting a new terminal.

How is rc better than bash or zsh? I've read the bash man pages and I couldn't figure out exactly how bash expands commands before executing them. Every time the shell see's an unquoted variable name (e.g. $foo) it will do word splitting, which is why you have to write "$foo" instead, or "${foo}bar" to distinguish "$foo" from "$foobar", etc. Add history and filename expansion and command substitution, weird syntax for control statements...

The best feature of rc is that word splitting and globbing happens once, and it results in a list of strings. There is no longer a need to quote variables all the time. No need to use filenames without spaces.

Here's what bash does:

    $ files=*; echo "$files"; echo $files
    *
    file1.txt file2.txt file3.txt
    $ # echo $files -> echo * -> file1.txt file2.txt file3.txt
Here's what rc does:

    $ files=*; echo $files
    file1.txt file2.txt file3.txt
    $ # files=(file1.txt file2.txt file3.txt)
    $ # echo $files -> echo file1.txt file2.txt file3.txt
It's similar to the situation for dynamic vs lexical scope.

http://plan9.bell-labs.com/sys/doc/rc.html

https://github.com/rakitzis/rc