HN user

halayli

2,624 karma

Lthread author: http://github.com/halayli/lthread

Github: http://github.com/halayli/

Hydrolix Inc founder/co-founder

Posts39
Comments950
View on HN
tech.marksblogg.com 5y ago

1.1B Taxi Rides Using Hydrolix on AWS

halayli
12pts1
en.cppreference.com 8y ago

C++20 Constraints and concepts

halayli
2pts0
ir.cs.georgetown.edu 8y ago

Relational Database Operators on Hypercube Systems (1990) [pdf]

halayli
4pts0
www.cs.kent.edu 9y ago

An Eye Tracking Study on CamelCase and under_score Identifier Styles [pdf]

halayli
2pts1
webmon.com 10y ago

Show HN: Webmon.com, website monitoring with unlimited SMS

halayli
3pts0
news.ycombinator.com 11y ago

Ask HN: What are the best product landing pages you've stumbled upon?

halayli
333pts210
news.ycombinator.com 11y ago

Ask HN: What's your experience using C++ Builder to build ios apps?

halayli
1pts0
software.intel.com 11y ago

Optimize Data Structures and Memory Access to Improve Data Locality (2012)

halayli
1pts0
webmon.com 11y ago

Strlen(buf); Not as Simple as You'd Think

halayli
2pts0
sfbay.craigslist.org 11y ago

$4k/Month Ultra Modern Castro Studio – Tech Employees Preferred

halayli
7pts1
news.ycombinator.com 11y ago

Ask HN: How do you market your online service?

halayli
1pts0
webmon.com 11y ago

Show HN: Free website monitoring by Webmon

halayli
1pts0
www.apple.com 11y ago

More Apple Watch Details

halayli
2pts0
webmon.com 11y ago

Show HN: Webmon. A website monitoring and escalation service

halayli
2pts0
lthread-cpp.readthedocs.org 11y ago

Show HN: Lthread C++11 bindings for lthread lib

halayli
2pts0
webmon.com 11y ago

Show HN: Webmon.com, a Pingdom alternative

halayli
3pts1
static.googleusercontent.com 11y ago

Spanner: Google's Globally Distributed Database [pdf]

halayli
4pts0
github.com 11y ago

Flatbuffers by Google – CapnProto alternative

halayli
83pts31
webmon.com 12y ago

Show HN: Webmon.com (pingdom alternative)

halayli
2pts1
www.amazon.com 12y ago

Amazon is taking recommendation to the next level: searching for "c++11"

halayli
2pts0
medium.com 12y ago

Strlen(buf) – Not as simple as you’d think

halayli
11pts9
mikehadlow.blogspot.com.au 12y ago

Coconut Headphones: Why Agile Has Failed

halayli
2pts0
chrome.com 13y ago

Roll it - a chrome experiment

halayli
1pts0
webmon.com 13y ago

Realtime at webmon.com using memqueue

halayli
2pts0
news.ycombinator.com 13y ago

Python: import antigravity

halayli
2pts0
webmon.com 13y ago

Show HN: webmon.com

halayli
3pts2
www.cedexis.com 13y ago

Cedexis is hiring

halayli
2pts0
news.ycombinator.com 14y ago

Maps.apple.com

halayli
5pts3
www.woopra.com 14y ago

Woopra.com is hiring

halayli
1pts0
github.com 14y ago

Lthread - C coroutine lib with multicore support

halayli
113pts73

Never underestimate developing countries' governments' willingness to absolutely bend their people over to extract tax revenue (and then their corrupt representatives extract bribes on top of it)

being a developing country or not is orthogonal to what you have described. The top developed nations have one or more of these issues.

AirPods Max 2 4 months ago

This is false equivalence. You're describing the luxury market, a vertical that is built on decoupling the raw material cost from the price tag. And in reality it is more nuanced than just raw material as there is a lot of cost in r&d/marketing/operations etc. Nevertheless, products targeted to general consumers are much more sensitive to that deviation.

AirPods Max 2 4 months ago

Reading your parent comment and the responses, I feel be missing the point others are trying to make. There's much less technology, components, and material in a headphone compared to laptops. The circuitry in the headphones is closer in complexity to a charger than a laptop.

This is a very reasonable comment. IMO it's a falacy to take into consideration the age of an account especially when it is subjective experience.

That doesn't sound accurate. The T in TPM stands for trust, the whole standard is about verifying and establishing trust between entities. The standard is designed with the assumption that anyone can bring in their scope and probe the ports. This is one of several reasons why the standard defines endorsement keys(EK).

This is not a special case. Everything you mentioned above can actually be achieved using cli. You can create listeners, configure pipelines, and sinks(granted not ergonomic). Sinks can be HTTP post for example, and sources can be tcp listeners + protocols on top. You can also configure the buffering strategies for each pipeline.

I feel HN comments have been getting hijacked for a long time now by LLM agents. Always so early, very positive, and hard to spot. Some replaced em-dash with --, some replace them with a single dash, some remove them all together. I wonder how much time it is taking from @dang and other moderators helping to maintain this community.

Totally. I always found joy solving critical performance problems because it naturally pave a path forward to peel the layers and untangle the system interactions which feeds my curiosity, and is highly rewarding.

agreed. Strong emphasis on "profiling and identifying the actual bottleneck". Every benchmark will show a nested stack of performance offenders, but a solid interpretation requires a much deeper understanding of systems in general. My biggest aha moment yrs ago was when I realized that removing the function I was trying to optimize will still result in a benchmark output that shows top offenders and without going into too many details that minor perspective shift ended up paying dividends as it helped me rebuild my perspective on what benchmarks tell us.

Yes definitely not dismissing the lock overhead, but I wanted to bring attention to the implicit false equivalence made in the post. That said, I am surprised the lock check was showing up and not the logging/formatting functions.

a real human. threads can exist before main() starts. for example, you can include another tu which happens to launch a thread and call instance(). Singletons used to be a headache before C++11 and it was common(maybe still is) to see macros in projects that expand to a singleton class definition to avoid common pitfalls.

The performance observation is real but the two approaches are not equivalent, and the article doesn't mention what you're actually trading away, which is the part that matters.

The C++11 threadsafety guarantee on static initialization is explicitly scoped to block local statics. That's not an implementation detail, that's the guarantee.

The __cxa_guard_acquire/release machinery in the assembly is the standard fulfilling that contract. Move to a private static data member and you're outside that guarantee entirely. You've quietly handed that responsibility back to yourself.

Then there's the static initialization order fiasco, which is the whole reason the meyers singleton with a local static became canonical. Block local static initializes on first use, lazily, deterministically, thread safely. A static data member initializes at startup in an order that is undefined across translation units. If anything touches Instance() during its own static initialization from a different TU, you're in UB territory. The article doesn't mention this.

Real world singleton designs also need: deferred/configuration-driven initialization, optional instantiation, state recycling, controlled teardown. A block local static keeps those doors open. A static data member initializes unconditionally at startup, you've lost lazy-init, you've lost the option to not initialize it, and configuration based instantiation becomes awkward by design.

Honestly, if you're bottlenecking on singleton access, that's design smell worth addressing, not the guard variable.

What Is OAuth? 5 months ago

no offense but it looks like the reason behind oauth confusion is the author. I had to read half way through to get to a definition which was a poor explanation. Sometimes certain topics are difficult to understand because the initial person behind it wasn't good at communicating the information.

My naive take is we discovered it as a math tool first but later on rediscovered it in nature when we discovered the electromagnetic field.

The electromagnetic field is naturally a single complex valued object(Riemann/Silberstein F = E + i cB), and of course Maxwell's equations collapse into a single equation for this complex field. The symmetry group of electromagnetism and more specifically, the duality rotation between E and B is U(1), which is also the unit circle in the complex plane.

I am not sure the author knows what spacial frequency means. Taking a well defined measurement unit and using it as an expression feels pretencious.

I think parent comment was pointing to lack of establishing a causation link. The finding in their abstract is extrapolated by statistical inference. For example smokers tend to drink more etc. The paper does take such factors into account. Personally I wouldn't jump to such a strong conclusion from statistical inference because it closes the door on other factors that might be even stronger when combined together. The paper reflects motivated reasoning more than a discovery outcome. That said, smoking is of course a major health risk, I am just pointing at the research approach.

your question leaks your intentions and drives the LLM to confirm your cognitive bias. it treats your intentions as conclusion. Try to form your questions in a way that allow LLM to arrive to the word/concept of "suppression" in a more neutral probabilistic manner when the context hints to such instead of giving it the words you want to hear. Otherwise you're just falling into confirmation bias.