Better HN
topnewbestaskshowjobs
Log inSign up

sweetgiorni

56 karma · joined Apr 21, 2019 (7y ago) · 48 submissions

Submissions

comment 3mo ago · link · parent

> How would you represent metrics as traces?

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

comment 4mo ago · link · parent

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

3.

Create Repeatable Success(frankblecha.com ↗)

1 points · by sweetgiorni · 1y ago · discuss

comment 1y ago · link · parent

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

comment 1y ago · link · parent

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?

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

That's... interesting.

comment 1y ago · link · parent

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 :/

comment 1y ago · link · parent

https://github.com/open-telemetry/opentelemetry-collector-co...

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

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

comment 2y ago · link · parent

Looks like it makes heavy use of the original binary.

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

comment 2y ago · link · parent

> Minify every third variable randomly.

So, Go?

comment 2y ago · link · parent

This seems conceptually similar to certificate authorities.

comment 2y ago · link · parent

What? This seems hard to believe. What incentive do operators have to support law enforcement impersonators?

comment 2y ago · link · parent

zsh-histdb achieves something similar. Combined with zsh-autosuggestions it's quite nice.

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

17.

Ask HN: Which tools are worth the time?

3 points · by sweetgiorni · 2y ago · 1 comment

comment 2y ago · link · parent

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

comment 2y ago · link · parent

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

comment 2y ago · link · parent

Yep :) my comment was for the people reading the thread, not the person I replied to.

comment 2y ago · link · parent

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

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

I received the email on December 2nd.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

That's very interesting! Do you happen to have any sources? A brief search didn't turn up anything this specific.

comment 3y ago · link · parent

> 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

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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/

12