HNHacker News
TopNewBestAskShowJobs

tirrex

661 karma · joined February 27, 2021

submissionscomments
tirrex··on Computer work lying down comfortably with a home-made stand over the bed
I think chair is the most important part. It looks so comfortable.
tirrex··on Wp-SQLite: WordPress running on an SQLite database
Exactly. Is there any benefit running mysql instead of sqlite for Wordpress? Feels like default db should have been sqlite all along.
tirrex··on Microsoft Doubles Salary Budget to Retain Staff as Cost of Living Rises
When did this happen? Is it new?
tirrex··on Nvidia Research Turns 2D Photos into 3D Scenes
Are they using four photos or more?
tirrex··on I built a receipt printer for GitHub issues
This should be improved further. Add a scanner to read handwritten answer and post it as the response.
tirrex··on Uthash – C macros for hash tables and more
https://github.com/tezc/sc/tree/master/map

For those who are interested in faster hashmaps, I tried bunch of hashmaps and this one performs better than others. This is for C. Maybe C++ has better hashmaps.

tirrex··on Ask HN: What's Up with Google?
I can pay for a search engine service if it blocks paywalls, bloated sites, fake bullshit clickbait contents. It’s time consuming to find what you’re looking for with Google. Unfortuanetely, there is no alternative.
tirrex··on Revolt: Open-source alternative to Discord
How are they going to make money and support the development?
tirrex··on Impact of Undefined Behavior on Performance
> And how much impact does it have on runtime performance? Well even computing a sum for a relative small number 1000, according to cppbench, the signed version is 430X faster.

Although you can find these kind of examples for a few lines of code snippet, the question is what is the impact on overall program? Nowadays, I guess it has no impact for almost all programs. Because memory access patterns, system call overhead, operating system interaction etc. have much more impact on overall performance compared to optimizations enabled by undefined behaviors.

tirrex··on Show HN: RonDB – fast key-value database in the cloud
Thanks, I’ll take a look.
tirrex··on Show HN: RonDB – fast key-value database in the cloud
Too much marketing. Don’t get me wrong but I’m lost among “fast, scalable, low latency, high throughput” marketing paragraphs and images.

There are links to other websites(company website I guess), it is same unfortuanetely.

Please consider adding sections/pages about “how did you do it, benchmarks supporting your claim, what is different in your product compared to ndb” etc. If there are links to these somewhere, you may want to make it more visible in your front page.

tirrex··on Minio Changes License to AGPL
Some companies have no AGPL policy.

e.g : https://opensource.google/docs/using/agpl-policy/

tirrex··on C++ Alternative Operator Representations
I agree, “!” is something easy to miss. I prefer “!=“ mostly for this reason.

I am just surprised I’ve never seen this in any code base before.

tirrex··on Beej’s Guide to C Programming [pdf]
Isn’t it type safe? e.g you can’t add char* to a double array.

What do you mean by broken alignment?

tirrex··on C++ Alternative Operator Representations
What is the purpose of this? Does anybody find these more readable?
tirrex··on Beej’s Guide to C Programming [pdf]
For a vector alternative, I find this one easy to read and use :

https://github.com/tezc/sc/tree/master/array

It is just an array of your type, e.g int *numbers, so you have type info in debugger as well.

tirrex··on I'd like to review your README
fast, simple, scalable, modern, high performance, easy to use, enterprise-grade, secure, production-ready, new generation, lightweight ...

These are common words I see in the first paragraph of readmes. If people can avoid these, they’ll write better introductions. No marketing, no subjective words. Otherwise, I feel like someone is trying to sell me that product.

tirrex··on I'd like to review your README
It would be great if author points us a few READMEs he likes. So, people can avoid many issues before asking for review.
tirrex··on Java Is Underhyped
I agree with you.

Actually, Java has great tooling, JVM is very nice, it has great potential for high performance code generation. It has everything for debugging. But at the end of the day, language is driving people to write bloated software.

I just wonder, how come e.g Linux kernel code 100 times more readable than any project in Java? More importantly, how did we come to this point that we accept bloated/unreadable code in the name of higher/better languages?

tirrex··on Java Is Underhyped
Java style verbosity hurts readability. That’s the most important issue with Java imho.

Take a look at a http server one in Java and one in C. Readability difference is crazy.

My company is in transition from Java to C, for bunch of stuff just for performance reasons. So, I debug similar projects time to time both in Java and C, http server, in memory cache, iot server etc. After seeing both, I just think although Java has great tooling, it drives developers to write unreadable code.

tirrex··on Java Is Underhyped
I’m not a backend java dev but whenever I take a look at java web projects which use spring/jsf/jsp etc frameworks, docs say to handle a request, write a method with that signature, we’ll call it when there is a http request. I always want to know enterence/exit points of a network message but that is impossible with these fancy frameworks. It is pure magic.
tirrex··on The value of downvoting, or, how Hacker News gets it wrong (2009)
> You need mechanisms for helping people learn "This is not welcome on HN. This is not how we do things here."

Can we use flags for this purpose?

Problem is even though a comment does not violate any rule, it gets down-voted as hell if you say something that majority of people would not like. e.g there are posts about hyped programming languages, go check out down-voted comments, most of them does not deserve to be down voted.

There some topics, these topics have “fan-boys”, so even a comment is constructive, it gets down-voted.

You already show disagreement with comments. If a comment violates a rule, we can flag it. If a comment does not get up-votes, it moves to bottom of the page. So, I think down-votes don’t add any value to HN.

tirrex··on Show HN: RentMyCPU – An open-source computational network
I think this would only work if a known company backs this up and control the workload/program/users. Otherwise, it is a heaven for hackers/spammers
tirrex··on Latency Comparison: DynamoDB vs. FaunaDB vs. Redis
As a general rule in benchmarks, if product A does something in 1 ms while product B doing it in 500 ms, something is wrong. Either you misconfigured it or these products serve different purposes so they are not comparable. Either way, your benchmark is flawed unfortunately.

As a general courtesy, when you see a dramatic difference, it’s better to involve parties or ask for review before publishing your results.

tirrex··on Dflat: SQLite FlatBuffers
Thank you, sounds great.
tirrex··on Dflat: SQLite FlatBuffers
> This is true even if rowid is aliased by an INTEGER PRIMARY KEY.

Thanks. Just to be clear, I think this is the scenario when you don’t set your primary key but other columns in your insert statement.

CREATE TABLE t(x INTEGER PRIMARY KEY, y);

INSERT INTO(y) VALUES(‘value’);

Otherwise, if you set primary key in your insert statements, you’ll be fine I guess.

I’m not worried about reusing ids but if ids change e.g on vacuum, it is a disaster. Because people use row id(via last_insert_row_id()) assuming it won’t change but vacuum changes it and now you have a “dangling id”, if you fetch data again with that id, either you won’t find the row or get some other random row.

tirrex··on Dflat: SQLite FlatBuffers
> Row id

> We can uniquely identify an object, even if it is deleted later, without worrying a new object could occupy the same rowid

I don’t know anything about mobile and not sure if it applies here but if you call vacuum on sqlite, it rewrites row ids. Is there a way to prevent that? If you have a column “PRIMARY KEY INTEGER”, it is your row id and it won’t change on vacuum, otherwise if you rely on automatic row id, you may have a surprise later.

tirrex··on Show HN: Engauge – Self-hosted, Single-binary Analytics
I understand your concern. Open source licenses are the ones that Open Source Initiative approved and just a note, you can’t have an open source license and prevent someone else to create a product from your work. Anyway, hope you find a license that fits your requirements. Good luck with your project.
tirrex··on Show HN: Engauge – Self-hosted, Single-binary Analytics
> We apologize for having to do this, but Engauge is closed to code contributions (at this time). This keeps the code base free of proprietary or licensed code.

I also see project license is called PolyForm which I’ve never heard before. Is this an open source license? If not, you may want to change open source section title to avoid confusion. Also, could you explain what is the pros and cons of this license briefly?

tirrex··on Down the Golang Nil Rabbit Hole
C++ has goto, Java has “break <label>“, nobody uses it but you see a lot of generics abuse.
Page 1 of 2Next →