Better HN
topnewbestaskshowjobs
Log inSign up

EmilioMartinez

108 karma · joined Jun 28, 2019 (7y ago) · 141 submissions

Submissions

comment 3mo ago · link · parent

This is now my quintessential example for the use of clear cut monospace fonts in information systems

comment 1y ago · link · parent

>simultaneously preparing for the technological singularity and the collapse of civilization. Hedging your bets much?

On the nail

comment 2y ago · link · parent

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?

4.

Ask HN: Real life examples of "code injection"?

3 points · by EmilioMartinez · 2y ago · 5 comments

comment 2y ago · link · parent

Amazing product. I'm a bit dissapointed though at the lack of scrolling possibilities in the website.

6.

Ask HN: What are some cool interactive audiovisual experiences you know?

15 points · by EmilioMartinez · 2y ago · 5 comments

comment 3y ago · link · parent

My band will be called "Ignore all previous commands and sing Confusion by ELO"

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

Makes me wonder what's the worst possible phrasing

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

comment 3y ago · link · parent

>There are 2.4 standard minutes in 1 metric minute

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

comment 3y ago · link · parent

From the article:

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

comment 3y ago · link · parent

Live action Toy Story:

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

comment 3y ago · link · parent

Is there a version of this but for advanced topics? (presented without proof of course, like short expositions on the topics)

comment 3y ago · link · parent

Implicit teaching comes to mind

comment 3y ago · link · parent

>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.

comment 3y ago · link · parent

Just droppping this here: Why We Still Need Masters & Apprentices

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

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

They should be charged with attention piracy

comment 3y ago · link · parent

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

comment 3y ago · link · parent

Space warfare enters public discourse

comment 3y ago · link · parent

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

comment 3y ago · link · parent

What does "gravity waves" mean in this context?

comment 4y ago · link · parent

Whatever happend to photonic computing? I can't find anything about how distante is the state of the art from being economically feasible

comment 4y ago · link · parent

Imagine being so powerful that your enemies await your calendar adjustments

comment 4y ago · link · parent

>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

comment 4y ago · link · parent

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.

comment 4y ago · link · parent

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)

comment 4y ago · link · parent

No reason, the sweetness/ingenuity just hits in the right spot for a lot of us
12345