HNHacker News
TopNewBestAskShowJobs

sdedovic

241 karma · joined October 14, 2016

I code, paint, and make music, among other things. Currently in Chicago.

Art: https://www.instagram.com/mr_praline/

Code: https://github.com/sdedovic or https://gitlab.com/sdedovic

If you would like to email me:

  echo 'c3RldmFuQGRlZG92aWMuY29tCg==' | base64 --decode
submissionscomments
sdedovic··on What Are Traces and Spans in OpenTelemetry?
I agree. An anecdote:

A while ago I was working on some CUDA kernels for n-body physics simulations. It wasn’t too complicated and the end result was generative art. The problem was that it was quite slow and I didn’t know why. Well the core of the application was written in Clojure so I wrote a simple macro to wrap every function in a ns with a span and then ship all the data to jaeger. This ended up being exactly what I needed - I found out that the two slowest functions were data transfer between the GPU memory and writing out a frame (image) to my disk.

In many other places I see the usefulness of this approach but OTel is too often too geared towards HTTP services. Even simple async/queue processing is not as simple. Though, there have been improvements (like span links and trace links).

sdedovic··on I started with a SQL question. He said "that's a dumb question."
Fun fact, there are multiple pieces of software that will real-time correct your eye tracking. Useful for virtual all hands or talks to fix teleprompter eyes.
sdedovic··on DeepSeek's AI breakthrough bypasses industry-standard CUDA, uses PTX
Maybe I’m misunderstanding but CUDA compiles to PTX? Is the implication they wrote in a different language than CUDA and to generate the PTX?
sdedovic··on Ask HN: Who wants to be hired? (November 2024)
Location: Chicago, Illinois Remote: preferred Willing to relocate: no Technologies: backend (java/scala/clojure nodejs golang rust python) fronted (JavaScript/clojurescript/typescript vanilla/react html) research (python/julia) hardware, cloud (gcp/aws/azure/digialocean) GPU (CUDA/opencl/webgpu/webgl) Linux/nixos Résumé/CV: https://dedovic.com/about.html Email: hello@dedovic.com
sdedovic··on Ask HN: What are you working on (August 2024)?
I'm working on a little site called WGSL Toy, here: https://wgsltoy.com/

It's basically like ShaderToy but for WebGPU instead of WebGL. I started it as I have been doing some Rust + wgpu development for art projects and I need a easy way to play around with shaders.

It's very early in development - you can go and just use it right now. But soon I want to support creating an account, saving / sharing shaders, and eventually go beyond the featureset of ShaderToy by allowing for custom input images / textures.

Code is on github: https://github.com/sdedovic/wgsltoy

sdedovic··on Batteryless OP-1
Don’t see a link in your bio. Do you have a website / store?
sdedovic··on A forged Apple employee badge
not too bad. I find a lot in local garage sales and on ebay. hasn't become a problem _yet_
sdedovic··on A forged Apple employee badge
not the OP but,

I am in my 20s and I use a typewriter somewhat regularly to journal. I was raised on computers, getting the jumble from my brain onto paper is faster with a keyboard than a pen/pencil and paper. And a typewriter is nice and analog - no screen, no lights, no battery. I'm disconnected, focused, and performant.

sdedovic··on We switched to Java 21 virtual threads and got a deadlock in TPC-C for Postgres
To me, its more about the style than the use of an AI. But I agree.

I enjoyed this writeup by Michael Lynch on finding an illustrator [1], for their blog. In doing some of my own writing, I've really found it enlightening how much secondary work goes into publishing your own work. I often think its so nice to be able to _just_ plug in what I want on a site and get a (more or less) free illustration. But as someone selling their own work / time, it feels wrong. I'd rather pay a real human and build a relationship and have something more quality. On the other hand, though, it can be expensive, time consuming, and I've been screwed over. Often it seems like a bigger risk than its worth.

So idk, you're trading some hardship and risk for an ethical dilemma but ease of use.

[1] https://mtlynch.io/how-to-hire-a-cartoonist/

sdedovic··on Drying Fruits (2003)
I found Drying Vegetables

https://extension.colostate.edu/docs/pubs/foodnut/09308.pdf

And a catalog:

https://extension.colostate.edu/topic-areas/nutrition-food-s...

sdedovic··on Drying Fruits (2003)
I notice the title says

> FOOD AND NUTRITION SERIES

Are there more documents or a catalog?

sdedovic··on Porter/Duff Compositing and Blend Modes (2013)
If you are interested in a more rigorous collection of blending and compositing operations, the W3C "Compositing and Blending Level 1" document is a wonderful resource>

https://www.w3.org/TR/compositing-1/

I've targeted this spec in some of my digital/generative art tooling.

sdedovic··on Your computer should say what you tell it to say
Imagine this:

You buy a house. Your house has a little box by the front door. The box holds a small House Environment Integrity (HEI) module. This HEI is something your local Home Owners Association installed. They say you cannot open the box or investigate how the module inside works, as this is against the HOA and you will be fined. They tell you this HEI module is meant to help and protect you. To make sure the plumber you hire didn't do a bad job or that the paint you used on your walls doesn't contain lead. They say it's for your benefit and to make your home a better and safer place. This does not reduce the control of your own house.

sdedovic··on Substack is (not) now powered by Ghost
Ah you may find it interesting, the GPL3 license actually does prescribe showing copyright notices in stdout [1].

> If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode ...

> The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an “about box”.

This is to say it is not entire unusual to have copyright notices in output.

[1] https://www.gnu.org/licenses/gpl-3.0.en.html

sdedovic··on Code.golf – Solve problems in the least number of characters
Similar, check out VimGolf:

https://www.vimgolf.com/

sdedovic··on The ‘psychobiome': the gut bacteria that may alter how you think, feel, act
> the search for small molecule drugs building on this observation seems to have been fruitless

I imagine this is such a perfect use case for large-scale data analytics. Maybe with the next (or n+2 or n+10) generation of wearables we may be able to track some of the macro effects of diet, exercise, air quality, sleep, etc. at such a big scale that we can determine how individual factors can affect mood and behaviour.

Ignoring the privacy and political concerns aside, it seems like such a cool problem space.

sdedovic··on Study suggests mechanism through which psychedelics may alleviate depression
> What’s happening during that self reflection stage is best described as a feeling of losing it all.

This reminds me of a passage from Aldous Huxley's Doors of Perception:

We live together, we act on, and react to, one another; but always and in all circumstances we are by ourselves. The martyrs go hand in hand into the arena; they are crucified alone. Embraced, the lovers desperately try to fuse their insulated ecstasies into a single self-transcendence; in vain. By its very nature every embodied spirit is doomed to suffer and enjoy in solitude. Sensations, feelings, insights, fancies - all these are private and, except through symbols and at second hand, incommunicable. We can pool information about experiences, but never the experiences themselves. From family to nation, every human group is a society of island universes...

sdedovic··on Off the Grid
Hey these are also the folks behind the Orca visual programming language/MIDI sequencer! Its a real weird and cool tool, highly recommend checking it out if you're into experimental electrical music.

http://100r.co/site/orca.html

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

sdedovic··on Bingo – The missing package manager for Go binaries (Homebrew for “go install”)
> I've never seen a better alternative for macOS

I'm quite enjoying Nix as a *nix + mac package manages. Plus using direnv really makes things a breeze. Although Nix has a __very__ steep learning curve... I still recommend it greatly!

sdedovic··on Ask HN: What are some must read books?
I don't know about must-read but here are my top 5 books:

- Brave New World, Aldous Huxley

- Anna Karenina, Lev Tolstoy

- Zen and the Art of Motorcycle Maintenance, Robert Pirsig

- Manufacturing Consent, Noam Chomsky

- Dune, Frank Herbert

sdedovic··on Timeline of the Human Condition
> “The story so far:

> In the beginning the Universe was created.

> This has made a lot of people very angry and been widely regarded as a bad move.”

― Douglas Adams, The Restaurant at the End of the Universe

sdedovic··on Amazon Has to Disclose How Its Algorithms Judge Workers Per a New California Law
I wonder if this will be a net-loss. I'm not discussing whether or not Amazon's system has merit, nor if algorithmic performance evaluation is inherently bad.

Look at standardized testing in the USA (SAT, ACT) - there is tons of coaching and preparation specific to the test that isn't training anyone on the material. Instead, we know how much time to spend per question, how to quickly eliminate possible answers on a multiple choice to improve odds when guessing, what patterns in the language a question exist, etc.

I think this is so so similar to customer support and that issue big corporations (and especially us, as their customers, face) which is that quality evaluation is not something that can be boiled down to quantitative measurement. Sure, it can weed out many common problems, but it's just not worth it.

Judging workers solely based on some rubric will create a class of people who min-max the system and will lower the overall quality of the service provided, while disenfranchising the best employees.

On the other hand, maybe this will help move these opaque and (almost certainly) biased processes towards some better baseline.

sdedovic··on Show HN: I built a Mac Menu bar widget to describe track playing in Spotify
A piece of feedback: I have no idea how to install this after going to the repo. Seems interesting, but I don't know how to use it.
sdedovic··on Amazon’s AI cameras are punishing drivers for mistakes they didn’t make
Reminds me of something that happened a few years ago to me.

Company was primarily using Java for the backend. The Application Security team decided to start scanning all our deployable JARs and WARs with a static analysis tool. Well, immediately the tool started complaining about our libraries. For example, the official Elasticsearch library, for the version of the database we used, had multiple System.out.println calls. Well those were all flagged and the static analysis tool deemed our code unacceptable. We needed to use a logger, not stdout. So we had to go and take it up with AppSec. And explain, no thats not our code. Yes, it does run in production. No we can't use a different library.

The whole thing was exactly as you put it, a kafkaesque nightmare where I'm being punished for something I don't understand by people who don't understand. An no-one can tell me why.

sdedovic··on Mushroom Cultivation Automation [video]
Amazing video. I don't have much to add but I love this.

That growth timelapse reminds me of some cool generative art: https://sagejenson.com/physarum

Obviously inspired by slime molds but just so cool nonetheless.

sdedovic··on Ask HN: Done with software development, what to do next?
I feel like this is a tough question and decision to make. I've seen it in some of my own friends, especially those who find joy in programming and view it as a creative outlet. Some have even left the workforce for a few years before finding their way back.

Unfortunately, there is no advice from me about what to do next, career-wise. Maybe stick to the industry you know best but focus on work that isn't sole contributor? Write a book, join the online micro-blogging community? Interview for the next few months at startups until a job + team clicks where you don't have to code?

I personally struggle with this regularly. Having poor management, difficult hours or on-call rotations, and, especially, having shit work is very draining. It completely drains me from wanting to code in my own free time. But, I tackle this by taking 3-9 months off between jobs. Resetting, working on personal projects, traveling and visiting family/friends abroad. That can't work for everyone, though.

I'm currently really enjoying my job and the team, company are great. But I think when I need that break, I'll ask for a sabbatical or an unpaid leave of a few months. It will eventually get to that point where I cant go into work for a while but I would love to have a job waiting for me with people I enjoy and respect.

sdedovic··on Reconsidering the way I explain programming (2020)
I find recursion can be just as simple to explain.

Start with a basket of tomatoes and a bowl. If there are no tomatoes in the basket, you’re done. Otherwise: Take one tomato. Dice it. Put the output in the bowl. Recur.

sdedovic··on YouTube hasn't paid me yet and I can't get in contact with them
Video is not me but a) I hope this adds more visibility and b) these types of videos are a trend on here.

Marcel Vos is an amazing youtuber and his videos are a goldmine. He truely runs a beautiful part of the web.

sdedovic··on Building Self-Managed Teams: A Case Study from Riot Games
Disclaimer: I am not voicing any opinions about Riot or the people mentioned in the articles below. Just compiling what I’m aware of and letting people make their own opinions.

- https://kotaku.com/inside-the-culture-of-sexism-at-riot-game...

- https://kotaku.com/current-and-former-employees-sue-riot-gam...

- https://kotaku.com/top-riot-executive-suspended-without-pay-...

- https://www.espn.com/esports/story/_/id/26686991/riot-games-...

- https://www.vice.com/en/article/dy8g87/league-of-legends-fak...

- https://www.polygon.com/2020/7/29/21347587/riot-games-saudi-...

sdedovic··on Particle mystery: physicists confirm the muon is more magnetic than predicted
My personal favorite:

- Thirty Years that Shook Physics: The Story of Quantum Theory

Other great books:

- The Theory Of Everything

- The Quark and the Jaguar

- Six Easy Pieces

Page 1 of 2Next →