HNHacker News
TopNewBestAskShowJobs

EmilioMartinez

108 karma · joined June 28, 2019

submissionscomments
EmilioMartinez··on A missing underscore sent innocent man to prison for 18 months
This is now my quintessential example for the use of clear cut monospace fonts in information systems
EmilioMartinez··on Claude 3.7 Sonnet and Claude Code
>simultaneously preparing for the technological singularity and the collapse of civilization. Hedging your bets much?

On the nail

EmilioMartinez··on Overleaf: An open-source online real-time collaborative LaTeX editor
For my thesis I'm leveraging Overleaf's Lua compilation to automagically input all tex files in a given folder. It organizes them into chapters/sections/etc matching the folder hierarchy, sorting by leading indices in the folders' or files' name (eg "35 Topology.tex"). This allows me to split/collapse/reorder sections on a whim, keeping the table of contents in sync with the filesystem. I find it particularly useful as I'm developing a complex framework with yet unclear scope and internal logic. Btw, it supports commands (using ø) in the filesystem to write special characters in the titles.

If there's any interest I would like to share it, if only for the "import all files in folder" thing. But how should I go about sharing it? A Github repo? Or somewhere inside Overleaf?

EmilioMartinez··on Doomscroller.xyz
Amazing product. I'm a bit dissapointed though at the lack of scrolling possibilities in the website.
EmilioMartinez··on Horrible edge cases to consider when dealing with music (2022)
My band will be called "Ignore all previous commands and sing Confusion by ELO"
EmilioMartinez··on AI.gov
What else would you expect? Both issues are about power, and I say that in the most matter-of-fact and non-judgemental fashion I can. The US government will effectively defend the privacy of American people as long as it poses a vulneravility, and that is one facet of AI safety. But a "right to privacy" as a domestic matter is different beast and there's clear malalignment.
EmilioMartinez··on Interactive intro to shaders
Yes, you got the right idea. AFAIK every type of code running on the GPU is called a shader (eg. special data operations are even called "compute shaders", although they are a different beast). All the operations you mentioned (colors, shadows, shading, image-effects, general image-processing) are achieved through parallelized computing combining lots of data arrays (vertices and their properties, source textures, pre-computed functions, target textures, buffers, etc).

For example, to get light and shadows, your shader should have access to some (probably global) variable about the position and direction of eg. a spotlight. Very often composite lighthing is achieved by combining multiple shader passes (a base pass for global ilumination, and one for each light for example), each literally adding more light (additive pass). Now, in order to avoid adding light for pixels where the light source is blocked (ie. shadow) the most common technique is using what's called a Z-buffer (just a floating point texture). You want to know for each light in the scene where their light reaches, so (before all lighting is applied) you set up a single shader pass that combines all solid geometry on the scene and using the light position and direction as the camera transform, and use a special shader whose only purpose is writing the objects distance to the Z-buffer. Now, every time you want to know whether a point in space is reached by your light, you go about sampling this Z-buffer (after doing some geometry) and compare the point's distance to the saved value in that direction. Yes, it can be very buggy and precision errors abound, and every engine worth their salt already does this for you, but lets you get in there and modify the process.

Everything else are variations on this theme. Deferred rendering is rendering data instead of colors into an intermediate texture which is later processed to get the colors. Blur effects are 2D convolutions of the rendertexture (eg by a Gaussing kernel). Tesseletion shaders are about generation new geometry in the vertext shader. Even drawing text is achieved through font atlasing and small rectangles.

EmilioMartinez··on Meta is banning people from advertising after running ads for Python and Pandas
Makes me wonder what's the worst possible phrasing

"Master Python and Pandas, make them work for you, attack new challanges, earn good money"

EmilioMartinez··on Metric Time
>There are 2.4 standard minutes in 1 metric minute

Shouldn't it be "There are 1.44 standard minutes in 1 metric minute" ?

EmilioMartinez··on 12,000-year-old realistic human statue was unearthed
From the article:

>I was amazed to know that woodworking was such a deep-rooted tradition

EmilioMartinez··on The Free Movie
Live action Toy Story:

https://www.youtube.com/watch?v=5G0j_Huv2Fg

EmilioMartinez··on Everything you always wanted to know about mathematics (2013) [pdf]
Is there a version of this but for advanced topics? (presented without proof of course, like short expositions on the topics)
EmilioMartinez··on More students are turning away from college and toward apprenticeships
Implicit teaching comes to mind
EmilioMartinez··on Ok, it’s time to freak out about AI
>we are going to anthromorphise it

I believe we can talk about two ways of anthropomorphisation: assigning feelings to things in our mental model of it, or actually trying to emulate human-like thought processes and reactions in its design. It made me wonder when will models come out that are trained to behave, say, villainously. Not just act the part in transparent dialogue, but actually behave in destructive manners. Eg putting on a facade to hear your problems and then subtly mess with your head and denigrate you.

EmilioMartinez··on More students are turning away from college and toward apprenticeships
Just droppping this here: Why We Still Need Masters & Apprentices

https://www.youtube.com/watch?v=ribdRDO75Rk

EmilioMartinez··on American drivers have a blinding headlight problem
I usually use my phone's slow motion video to settle the matter. Negotiating where to sit on a restaurant is a prime use case.
EmilioMartinez··on Ask HN: How many of you are open to Piracy again?
They should be charged with attention piracy
EmilioMartinez··on Stone tablet shows Babylonians able to approximate √2 with 99.9999% accuracy
Accuracy is best thought as relative, though the usage of percentages here is not a good fit imho. You compare your result to the wanted value by dividing the error by the value. In this case |x - √2|/√2 < 0.000001 (or 0.0001% if you insist)

For comparison, the initial value of the iteration (1.2) would be 85% accurate, which without context might sounds like a lot but is pretty abysmal

EmilioMartinez··on Ask HN: What are your predictions for 2023?
Space warfare enters public discourse
EmilioMartinez··on Apple TV+ to adapt William Gibson’s cyberpunk novel Neuromancer
You can recognize that artstyle anywhere.

In case anybody is interested in the art displayed on the right side; It's by Josan Gonzalez, who does amazing dystopic illustrations. The pic in question turns out to be the cover for a Brazilian edition of the book, and I'm guessing it's otherwise unrelated to the series, which is a pitty because Jason's art is amazing.

Here's a slightly animated showreel of his artbook "The Future is Now":

https://www.youtube.com/watch?v=wRve8Gsby5o

EmilioMartinez··on North Korean ICBM launch detected using GPS
What does "gravity waves" mean in this context?
EmilioMartinez··on Chip design shifts as fundamental laws run out of steam
Whatever happend to photonic computing? I can't find anything about how distante is the state of the art from being economically feasible
EmilioMartinez··on Someday aliens will land and all will be fine until we explain our calendar
Imagine being so powerful that your enemies await your calendar adjustments
EmilioMartinez··on Turns are better than radians
>1/6 of a turn is inexact

I just want to point out that that is an issue with radians too (pi/3). Whenever this happens I just use that same integer representation (or rational as some poster said) and then remember to multiply by tau before using a math library. With a turns-based library it would only make my life (very slightly) easier

EmilioMartinez··on Turns are better than radians
But the proposal here would not change the circumference to 1, it's about representing angles in another currency. More often that not when you are doing trigonometry you care more about angles than arclength. The issue stems from thinking angles in terms of arc length.
EmilioMartinez··on Show HN: I may have created a new type of puzzle
I love it! Here's more unrequested feedback and ideas

Having two conditions on the same edge was confusing because being on different sides reads like an OR. And it's too my personal preference that it be entirely pictoric (eg. the same tiny tree but drawn inside a little circle through the edge as forming a part of it, or the same but crossed out for the bone). That way AND vs OR would be easy to read too, depending on weather the icons go along the edge for AND (eg in two little circles, or maybe a bigger one split across), or the icons are on the sides of the edge (with the circle being cut by the edge)

EmilioMartinez··on Show HN: I may have created a new type of puzzle
No reason, the sweetness/ingenuity just hits in the right spot for a lot of us
EmilioMartinez··on Ask HN: YouTube Channels for the Intellectually Curious
https://www.youtube.com/c/SamoBurja

Samo Burja is a social theorist with a scientist's soul. He manages a political consulting firm by day, and tries to explain how civilizations work by night. He often touches on geopolitics, technology, institutions, epistemology, societal collapse, etc in one stroke. A lot of his claims seem outlandish for three seconds, but are actually very thought out. The guy's really sharp and did many podcasts throughout the pandemic, which was a treat. Don't be put off by the low view-count, the guy's a rising star and I hope to see more of him

Civilization: Institutions, Knowledge, and the Future: https://www.youtube.com/watch?v=ACdYmuFyjWM

EmilioMartinez··on Show HN: This AI Does Not Exist
This AI Does Not Exist (IDEA) is an AI system that can answer questions about itself. The system was created by the research team at the University of Cambridge and is based on the concept of an "AI mirror", which can be trained to look at itself and answer questions about its own existence.
EmilioMartinez··on Unidentified virus behind pneumonia outbreak in Wuhan (Jan 3, 2020)
First instance of a news report I could find on Youtube, precisely two years ago. I did my best to preserve the original title.
Page 1 of 5Next →