HNHacker News
TopNewBestAskShowJobs

reginaldo

1,400 karma · joined October 12, 2008

Reginaldo Silva

Contact: reginaldo at ubercomp.com

Links: http://www.ubercomp.com/ https://github.com/ubercomp/

submissionscomments
reginaldo··on Building a baseline JIT for Lua automatically (2023)
My advice would be to read Piumarta's "Optimizing direct threaded code by selective inlining" paper [1] first, and then read the references from the wikipedia article [2].

If the piumarta paper is still over your head, take a look at its references, but they will refer to Java, SmallTalk and Forth which might be a distraction.

[1] https://groups.csail.mit.edu/pag/OLD/parg/piumarta98optimizi... [2] https://en.wikipedia.org/wiki/Copy-and-patch

reginaldo··on LogoFAIL: Secure Boot bypass with manipulated boot logos
I wonder if anyone tried this in Android, which also has a logo partition. Maybe not the flagship phones, but if I were to guess, I'd guess the TV sticks and other Android streaming devices might have similar issues.
reginaldo··on LogoFAIL: Secure Boot bypass with manipulated boot logos
You nailed it. This is so vendors can rebrand without having to rebuild and re-sign.
reginaldo··on Python Is Easy. Go Is Simple. Simple != Easy
And Clojure has "Simple made easy" [1]

[1] https://www.youtube.com/watch?v=SxdOUGdseq4 -> on of Rich Hickey's best talks

reginaldo··on Panama Canal is so congested that one ship owner paid $4M to skip the line
The Panama canal saves about 8000 miles, which about 2 weeks time at 20 knots, plus fuel and crew, insurance, etc. That comes to $285k per day. Depending on the wait time (I've seen 20 days wait time in the past), that might be a rational decision even without considering late penalties.
reginaldo··on A linear algebra trick for computing Fibonacci numbers fast
I skimmed your substack, and it seems to me that you would like SICP. Give it a try.
reginaldo··on A linear algebra trick for computing Fibonacci numbers fast
For the initiated, this is SICP[1] Exercise 1.19. That exercise walks you through a proof without explicitly using linear algebra. I remember having a blast solving this back in the day.

[1] https://web.mit.edu/6.001/6.037/sicp.pdf => page 61

reginaldo··on DNA turbine powered by a transmembrane potential across a nanopore
Also interested in the answer, and I thought a bit about this and have a hypothesis that DNA does not encode everything, instead it depends on implicit assumptions about the environment.

To give an example, gravity is likely not encoded in the DNA, but instead, there are many encoded behaviors that would make sense only on an environment where gravity is present. The same for the presence of predators, wind, solar radiation, etc., i.e. many of the things that we take for granted.

That's how you would get more than 750MB of behavior on 750MB of DNA data [1]

[1] https://en.wikipedia.org/wiki/Human_genome#Information_conte...

reginaldo··on Finding services companies via their TXT records
I did it on 2.5 million domains from the various top 1 million lists and here are the ones with over 10 thousand matches:

  11308 include
  12284 stripe-verification
  13377 cisco-ci-domain-verification
  15123 zoho-verification
  15621 knowbe4-site-verification
  18764 Sendinblue-code
  19472 amazonses
  21264 adobe-idp-site-verification
  23791 klaviyo-site-verification
  24156 docusign
  27694 yandex-verification
  34068 globalsign-domain-verification
  55512 atlassian-domain-verification
  65353 apple-domain-verification
  70535 _globalsign-domain-verification
  74467  
 155337 facebook-domain-verification
 400513 MS
1025970 google-site-verification
reginaldo··on You (maybe?) have thousands of ancestors from the 1600s
Multiple people intuitively pointed out that the OP is actually quite wrong. The shocking fact, to me at least, is how far this goes: all of humanity share a single male ancestor [1] (and no, it was not the first man to ever live), and a single female ancestor [2], who likely lived thousands of years apart.

[1] https://en.wikipedia.org/wiki/Y-chromosomal_Adam [2] https://en.wikipedia.org/wiki/Mitochondrial_Eve

PS: see also references fromthe linked wikipedia pages

reginaldo··on You (maybe?) have thousands of ancestors from the 1600s
Try the awesome numberphile video "EVERY baby is a ROYAL baby" [1] https://www.youtube.com/watch?v=Fm0hOex4psA
reginaldo··on MS Teams channels cannot contain MS-DOS device names
I hear GNU Hurd will hit 1.0 any day now[1] :) /s

[1] https://news.ycombinator.com/item?id=37036851

reginaldo··on A Japanese factory that designs clothes on a 40-year-old computer [video]
Quote them some Henry David Thoreau[1]: "Why should we live with such hurry and waste of life? We are determined to be starved before we are hungry. Men say that a stitch in time saves nine, and so they take a thousand stitches today to save nine tomorrow. As for work, we haven't any of any consequence."

[1] From Walden: read at https://www.gutenberg.org/files/205/205-h/205-h.htm

reginaldo··on Open Letter from Security Researchers in Relation to the Online Safety Bill [pdf]
So years ago there was a corruption scandal in Brazil, where gambling is illegal. A guy named Carlinhos Cachoeira[1] found that fact a great opportunity and built a gambling empire, which involved financing corrupt politicians so that they would vote according to his interests. Among those on the payroll was a senator, Demóstenes Torres. Well, one day an audio of a conversation between Demóstenes and Carlinhos leaks. It went something like that:

  Carlinhos: so I want you do vote in favor of [law X, which toughened restrictions on the kind of gambling Carlinhos promoted]

  Demóstenes (naively): but, professor, that will make things harder for you, won't it? 

  Carlinhos: oh, don't worry, it's not going to be used against me.

[1] Loosely translated as "Charlie Waterfall" by the NYT
reginaldo··on Everything must be paid for twice (2022)
Both the article and your "gift as a burden" remark reminded me of Walden:

"I had three pieces of limestone on my desk, but I was terrified to find that they required to be dusted daily, when the furniture of my mind was all undusted still, and I threw them out the window in disgust."

reginaldo··on Announcing WCGI: WebAssembly and CGI
The browser "won" on seamless distribution. The browser is all the things you said and worse. It conflates the developer API (which could be as complex as the collective human comprehension will allow) with the execution environment (which must be as simple as possible and understandable to mostly anyone). I have a dream that the browser will turn inside out and start losing APIs that will be reimplemented on WebAssembly. But WebAssembly is moving too slowly e.g. with regards to tail calls and parallelism. So it's probably just a dream from now[1].

[1] https://www.youtube.com/watch?v=zlQEQQSqZ9g -> it's an old dream that others have had before.

reginaldo··on America’s banks are missing hundreds of billions of dollars
That the Austrian School is being singled out is particularly interesting right now, given that they are highly critical of fractional-reserve banking precisely because it might generate crises such as the one we're living through. Chapter 10 of the Core Econ book does not feature the word "fractional" and only talks about reserves and money creation in passing [0]

So I hope that, like the Index, you warning steers people towards instead of away from austrian aconomics :)

[0] https://www.core-econ.org/the-economy/book/text/10.html#108-...

reginaldo··on GPT-4
I wonder how popular will "AI veganism" be.
reginaldo··on Turning a TV set-top box into a Linux computer (2022)
Take a look at https://www.armbian.com/download/?device_support=Supported as well
reginaldo··on Alpine Linux in the Browser (2020)
Yes, but [1]:

"Can I access to the network from the virtual machine ? Yes it is possible. It uses the websocket VPN offered by Benjamin Burns (see his blog[2]). The bandwidth is capped to 40 kB/s and at most two connections are allowed per public IP address. Please don't abuse the service. "

[1] https://bellard.org/jslinux/faq.html [2] http://www.benjamincburns.com/2013/11/10/jor1k-ethmac-suppor...

reginaldo··on Min: A fast, minimal browser that protects your privacy
For a minimal experience, one can use WPE Webkit, which I've had some fun with. https://wpewebkit.org/
reginaldo··on Ideas that changed my life
Take a look at Standard Ebooks[1] as well, which I heard from here at HN. Their motto is "Free and liberated ebooks, carefully produced for the true book lover", and they live up to that standard.

[1] https://standardebooks.org/ebooks

reginaldo··on Should we let cars use the road as a projection screen?
Add the "autonomous car trapped by a circle of salt" to your repertoire if you haven't seen it already: https://www.youtube.com/watch?v=thuN2HD6m2s
reginaldo··on Ladybird: A new cross-platform browser project
The counter-argument from the embassies point of view would be that, since you're running the browser on top of the simpler execution environment, you could ship the exact version of the browser that works with your content. That way, only the execution environment (i.e. the simpler APIs) would have to be backwards compatible. So content could theoretically live longer, as we'd ship the interpreter of the content along with the content.
reginaldo··on Ladybird: A new cross-platform browser project
The problem with browsers is that they conflate the execution environment, which should be as small, understandable, analyzable, obviously free of bugs as possible, with the common APIs, which as developers we want as rich as possible.

An interesting alternative was embassies project[1], which got WebKit running on an understandable computing base. The current-day equivalent would be to get WebKit running on top of, say, WebAssembly and the Canvas API. That would be immense impactful, but isn't as sexy or cool as writing your own browser from scratch.

That being said, I applaud the Ladybird initiative. Scratching your own itch is the way to go when aiming for maximum enjoyment.

[1] https://www.usenix.org/conference/nsdi13/technical-sessions/...

reginaldo··on Instagram, TikTok, and the Three Trends
The book "Technopoly", by Postman, is also very well worth a reading. But I'd say the most relevant to this trend is "The disappearance of childhood". The book's thesis is that childhood is a modern invention, in that, before the printing press, and mass education / literacy, there was no need for childhood as a learning period. In the middle ages, childhood ended at age 7, as soon as children became more or less self sufficient in their bodily functions.

Literacy requires effort, and protected time to acquire analytical skills that are not natural to humans. Childhood was, then, embraced, because it's the way to get literacy.

All-encompassing technologies that require no effort, e.g. TV or, as it appears to be the case, AR, might end the need for childhood, hence the book title. Among the novel technologies, the computer would be the one to "save" childhood, but only if society requires active (as opposed to passive) competency with computer technology. Quoting Postman:

"The only technology that has this capacity is the computer. In order to program a computer, one must, in essence, learn a language. This means that one must have control over complex analytical skills similar to those required of a fully literate person, and for which special training is required. Should it be deemed necessary that everyone must know how computers work, how they impose their special world-view, how they alter our definition of judgment—that is, should it be deemed necessary that there be universal computer literacy—it is conceivable that the schooling of the young will increase in importance and a youth culture different from adult culture might be sustained. But such a development would depend on many different factors. The potential effects of a medium can be rendered impotent by the uses to which the medium is put. For example, radio, by its nature, has the potential to amplify and celebrate the power and poetry of human speech, and there are parts of the world in which radio is used to do this. In America, partly as a result of competition with television, radio has become merely an adjunct of the music industry. And, as a consequence, sustained, articulate, and mature speech is almost entirely absent from the airwaves \(with the magnificent exception of National Public Radio\). Thus, it is not inevitable that the computer will be used to promote sequential, logical, and complex thought among the mass of people. There are, for example, economic and political interests that would be better served by allowing the bulk of a semiliterate population to entertain itself with the magic of visual computer games, to use and be used by computers without understanding. In this way the computer would remain mysterious and under the control of a bureaucratic elite. There would be no need to educate the young, and childhood could, without obstruction, continue on its journey to oblivion."

reginaldo··on Ask HN: Anyone making software for kiosks, infotainments or similar?
Thanks for the details. Do you have any ideal on why CEF was chosen as opposed to, say, WPE WebKit?
reginaldo··on Onyx BOOX Leaf: 7-inch eReader with Android 10
Sorry, I meant Paperlike.

Although, since you asked, I do use my Paperwhite for writing, but I never released the software I glued together for that purpose.

I have a raspberry Pi set up as an access point running a little python/flask app that's controlling a X server receiving input both from the Kindle and from the regular keyboard / mouse. The flask serves the screen image, a container html, and some basic javascript to handle input (e.g. taps become clicks, long taps become right clicks) and update the image from time to time. The only tricky thing involved is that Kindle's browser is very very old, so you can´t do anything fancy or modern. The whole thing is basically a slightly modernized implementation of [1]

[1] https://hackaday.com/2015/08/21/easy-to-read-bicycle-compute...

reginaldo··on Onyx BOOX Leaf: 7-inch eReader with Android 10
The supernote A5X or A6X may be the device for you (they do come with kindle integration out of the box). I don´t have either device, I have Kindles, a reMarkable, and a Dasung Paperlike 13 inch e-ink monitor, which motivated me to reply. You wrote:

> It's probably a unicorn. Any Android device I'd probably get distracted too often and wind up frustrated with how poorly the distractions run on e-ink.

I came here to tell you that you're correct, and that this is actually a good thing. Many apps try to be all encompassing, so you don't realize you're distracted by them and waste time. Having a subpar experience gives you many chances to get your focus back to where you wanted it to be. I use my Paperwhite basically for writing and, when I'm writing, I'm writing, and that's it. Everything else looks bad, so I don't get distracted as easily and, when I do, I can quickly go back to what I wanted to do. I even set my display to black and white from time to time when I'm not home.

reginaldo··on Court affirms imported beef still allowed to be labeled "Product of USA"
> Courts constantly make rulings on issues where the boundaries are somewhat blurry.

Do you consider that to be a good thing, though? Or, at least, a net good?

My own initial intuition was that it's not OK to add "Product of the USA" to the label if the intention is to mislead the consumer, but there may be other things at play that determine what must or must not be on the label, e.g. tax-related considerations, which, if you ask me, are also frequently arbitrary.

Also, keep in mind that a label with a full history might create information pollution, like with CA Prop 65 labels.

Page 1 of 8Next →