HNHacker News
TopNewBestAskShowJobs

sweetgiorni

56 karma · joined April 21, 2019

submissionscomments
sweetgiorni··on OTel isn’t going well
> How would you represent metrics as traces?

Just instrument your meter implementation so each observation produces a span. Boom, free metric-derived traces.

sweetgiorni··on How AST-grep Rewrote Tree-sitter in Rust and Made It 30% Faster
> isn’t the entire point of tree-sitter that you can reuse old trees to make edit updates faster?

I've used tree-sitter for a few projects, but I never touched the tree-reuse stuff. The value of tree-sitter came from the fact that grammars compile to a .so and can be easily distributed through package managers. Adding support for a new grammar in ast-grep might just mean pointing to the .so at runtime (idk, I haven't checked). So this optimization might make sense for this project.

sweetgiorni··on OpenTelemetry: Escape Hatch from the Observability Cartel
> The core issue is that, with otel, observability platforms become just a UI layer over a database. No one wants to invest in proper instrumentation, which is a difficult problem, so we end up with a tragedy of the commons where the instrumentation layer itself gets neglected as there is no money to be made there.

I don't think it's fair to say "no one wants to invest in proper instrumentation" - the OpenTelemetry community has built a massive amount of instrumentation in a relatively short period of time. Yes, OpenTelemetry is still young and unstable, but it's getting better every day.

As the article notes, the OpenTelemetry Collector has plugins can convert nearly any telemetry format to OTLP and back. Many of the plugins are "official" and maintained by employees of Splunk, Datadog, Snowflake, etc. Not only does it break the lock-in, but it allows you to reuse all the great instrumentation that's been built up over the years.

> The core issue is that, with otel, observability platforms become just a UI layer over a database.

I think this is a good thing - when everyone is on the same playing field (I can use Datadog instrumentation, convert it to OTel, then export it to Grafana Cloud/Prometheus), vendors will have to compete on performance and UX instead of their ability to lock us in with "golden handcuffs" instrumentation libraries.

sweetgiorni··on Baldur's Gate 3 Steam Deck – Native Version
Glad I'm not the only one with that issue. I ended up connecting a Bluetooth controller to my Steam Deck because holding it hurt my wrists so much. At that point, why bother with the thing?
sweetgiorni··on SVGs that feel like GIFs
If the SVG being linked to is hosted by GitHub, they could make arbitrary changes before serving it to the browser. IIRC, I uploaded an SVG in a GitHub comment and the resulting image had some of its interactive functionality removed. Of course, that situation is slightly different since the file was uploaded in a comment and not as part of a Git repo... but still.
sweetgiorni··on Pluto is a unique dialect of Lua with a focus on general-purpose programming
That's... interesting.
sweetgiorni··on Use keyword-only arguments in Python dataclasses
Python 3.14 adds that shorthand, but with a slight different (and IMO uglier) syntax:

  fn(x=,y=,z=)
https://peps.python.org/pep-0736/

edit: nevermind, that PEP was rejected :/

sweetgiorni··on GitHub CI/CD observability with OpenTelemetry step by step guide
https://github.com/open-telemetry/opentelemetry-collector-co...
sweetgiorni··on Kagi Assistant
Hrmm, I've noticed the same thing on the US west coast over the last year or so. Maybe I'll finally bother Kagi support about it.
sweetgiorni··on Tbsp – treesitter-based source processing language
> I wish tree-sitter had an official higher level API that allowed processing and pattern matching for use cases other than those required for text editors.

Is the pattern matching API not sufficiently high level? In my experience, it's a huge improvement over implementing visitors for everything.

https://tree-sitter.github.io/tree-sitter/using-parsers#patt...

sweetgiorni··on OpenLoco: Modern, open source version of the classic transport simulation game
Looks like it makes heavy use of the original binary.

https://github.com/OpenLoco/OpenLoco/blob/master/src/Interop...

sweetgiorni··on Shittier: Code formatting tool that makes your code look terrible
> Minify every third variable randomly.

So, Go?

sweetgiorni··on Wi-Fi jamming to knock out cameras suspected in nine Minnesota burglaries
This seems conceptually similar to certificate authorities.
sweetgiorni··on A company that sells lost airplane luggage
What? This seems hard to believe. What incentive do operators have to support law enforcement impersonators?
sweetgiorni··on Starship.rs: minimal, fast prompt for any shell
zsh-histdb achieves something similar. Combined with zsh-autosuggestions it's quite nice.

https://github.com/larkery/zsh-histdb

sweetgiorni··on PyPy has moved to Git, GitHub
> Some people don't even know the difference between Git and GitHub...

I have also found this to be the case, even with engineers that have years of experience. It's both impressive and awful.

sweetgiorni··on Qsv: Efficient CSV CLI Toolkit
I find it incredibly obnoxious and I refuse to use parallel because of it. To me, it violates the spirit of free software and tarnishes the GNU project. As someone who has released my source to the public for free, I couldn't fathom adding such a flag.

Bonus SO post to enhance your fury:

https://stackoverflow.com/questions/61762189/installing-gnu-...

sweetgiorni··on ADHD: Breaking the Red-to-Blue Loop
Yep :) my comment was for the people reading the thread, not the person I replied to.
sweetgiorni··on ADHD: Breaking the Red-to-Blue Loop
> As a medical diagnosis it is consistently overdiagnosed

Not in adults https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4195639/ https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9884156/ https://pubmed.ncbi.nlm.nih.gov/27553219/ https://pubmed.ncbi.nlm.nih.gov/25317367/

sweetgiorni··on Against Superficial Simplicity (2022)
I'm not diagreein with you, but one should bear in mind that a piano essentially contains 88 copies of the same mechanism (with some exceptions). That brings you from 12,000 parts to 136 parts, which is much simpler to grasp. Of course, having 88 copies creates its own challenges.
sweetgiorni··on Taco Bell Programming
I read this years ago and it really resonated with me at the time. Why reinvent the wheel, right?

Reading it again now, it seems to advocate for going from one extreme to another without exercising judgement. A shell script might be fine in one context and irresponsible in another... but I guess nuance and circumstance don't make for interesting blog posts.

sweetgiorni··on 23andMe trying to trick customers into accepting TOS change, to prevent lawsuit
I received the email on December 2nd.
sweetgiorni··on Show HN: MonkeyPatch – Cheap, fast and predictable LLM functions in Python
Slightly tangential: is it unfair/unreasonable to judge a project by its name? It's hard not to interpret this project's name as the result of poor judgement. Is that sufficient cause to write off the project entirely? That may seem a tad dramatic but I feel that it's a fairly strong signal for how little effort I need to put into evaluating it.
sweetgiorni··on Telling GPT-4 you're scared or under pressure improves performance
To add to your point: try asking ChatGPT to do basic arithmetic on numbers it hasn't seen before. You'll see just how good it is at computation.
sweetgiorni··on Adult Attention-Deficit/Hyperactivity Disorder and the Risk of Dementia
That's very interesting! Do you happen to have any sources? A brief search didn't turn up anything this specific.
sweetgiorni··on Exploring Linux command-line space time
> you should consider explicating that space = memory, time = time.

That seems unnecessary. Even a layman knows that in the context of a computer, space != physical space. Most people think of disk space, but it can also refer to memory usage [0]. The meaning of the name was obvious to me after reading the first half of the first sentence of the article. I thought it was clever :)

[0] https://en.m.wikipedia.org/wiki/Space_complexity

sweetgiorni··on How to pick a data recovery service?
I worked for a data recovery company. I'm not sure exactly what it means for someone to be qualified since many of the techniques are learned by word of mouth or experimentation. Company age and reviews might be a good proxy for competence.

Find a place that gives free estimates. With SSDs the price was usually either low ($300) for "simple" repairs or very high ($2000+) for more intensive jobs. The price is always negotiable, especially for those simpler jobs. Oftentimes the data was already recovered and backed up by the time the repair quote was sent to the customer.

sweetgiorni··on Ask HN: What is a good gift for a mechanically oriented 8 year old
Spintronics! I haven't tried it but it looks like tons of fun. Unfortunately in some countries it's out of stock until August.

https://upperstory.com/spintronics/

sweetgiorni··on Ask HN: Why is Ruby so poorly documented?
This looks like Ruby's equivalent to the Python docs:

https://docs.ruby-lang.org/en/master/index.html

sweetgiorni··on A practical issue with YAML: a schema is not documentation
Isn't "schema" sort of meaningless if you don't specify the metaschema? Assuming this post is referring to the ever popular JSON Schema, there is no shortage of fields devoted to documenting the schema objects. So yes, a schema most certainly is documentation - as long as you actually write the documentation.

https://json-schema.org/understanding-json-schema/reference/...

Page 1 of 2Next →