News for hackers. Stuff that matters.

devnull3

I think there is still time to course-correct. It is UK's bad luck that none of the political parties have any meaningful to offer.

Also, UK is stuck in a weird spot where I think lot of people know what needs to be done [1] but those things are so much under the shadow of brexit that it is unpalatable to talk about it in public. No one is willing to call spade a spade.

[1] Rejoining EU, NHS reforms, Immigration reforms, etc

> Nuclear powers

meh. It is a deterrence at best. Contributes nothing in terms of economic might.

> Soft power

Agree. The royal family which was a major attraction seems to be on wane (imo) after Queen's death

> permanent UN security council member

This is rooted in post-World-War-2 setup. If the council had to be setup fresh today, UK will not figure in top 5 for sure. There are many countries which are more deserving.

> Brexit has been an act of astonishing self-harm

Agree.

> Talking about "trying to survive" is a bit ridiculous.

Agree here too.

The key thing is that UK is declining. Its the trend that is important here.

Re:Ask HN: What's your approach to raising kids? on Monday January 30, 2023 @07:15AM (#34578697)
I would say do not lose sight of the big picture. The topmost responsibility of parents is: To prepare them for adult-hood.

The following cross-cuts anything the child decides to do in future:

1. Being mentally tough

    * Dealing with success & failures
    
    * Dealing with conflicts
2. Money

    * Importance of money & saving

    * Importance of investing
3. Communication skills

    * Focus on effectiveness of communication

    * Importance & ability to sell
Edit: Its fine that as a parent you might not be well versed with all of the above. I am certainly not. Learn along with them. I make my deficiency in certain things e.g ability to sell as example to my kids to not to become like me.

Edit2:

If you have male child:

   * Teach them how to be respectful towards women
If you have girl child:

   * Teach them to be financially independent
To both:

   * Teach them that beauty is not permanent. It has short shelf-life and it quickly loses its utility after ~35. All that remains in later age is personality.
Re:Correction Girls on Sunday January 29, 2023 @05:23AM (#34566762)
Ironically, this reminds me of a quote from a French mathematician, philosopher:

“All of humanity's problems stem from man's inability to sit quietly in a room alone.” -- Blaise Pascal

Anecdotal experience: The people in my circle who are not in tech industry are having schadenfreude when it comes to tech layoffs. The sentiment is "look-at-these-high-earning-hotshots" ... who is laughing now? Extending to wider people (like journalists, commentators, etc) this is one of factor behind newsworthiness.

> have tech layoffs always been happening during financial 'bad times'?

Yes. Although in this case, a lot of companies over-hired in last 2-3 years and hence I feel current round of layoffs are just the beginning. There will be more.

> I remember the dotcom bust

I think compared to dotcom era, tech is much more tightly coupled in our daily lives. Whatever can be digitized will be digitized. Whatever can be automated will be automated. So tech is here to stay and hence I would expect a revival in late 2024-early 2025.

Re:Ask HN: Best Course for Leetcode Questions? on Tuesday January 24, 2023 @03:39AM (#34501091)
For folks who do did not get the reference, here is THAT runout:

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

Not that watching this will greatly increase the understanding of the game who do not know cricket.. but still.

(Basically the the guy in greens who was not batting simply did not run ... his is Alan Donald)

I think 12k is just the start. The overall number will higher.
Re:Why I’m emigrating from zero-growth Britain’ on Monday January 02, 2023 @06:02PM (#34224938)
How so? I don't know much about Dubai (from emmigration pov) other than the fact that its a low-tax destination.
Re:Why I’m emigrating from zero-growth Britain’ on Monday January 02, 2023 @06:00PM (#34224923)
As a high-earning & tax paying immigrant in UK, it seems it is much easier to come to UK illegally than by legal means. It is getting harder to get a PR.

Cost of living, rise in taxes and degradation in Govt services (e.g NHS) really has got me thinking whether staying in UK is really worth it.

> is combined with oxygen to form carbon dioxide

Isn't that some mass will be get converted to energy while burning? So the weight of the resultant CO2 will be less than the fuel burnt.

I have a naive question:

   When we use/burn non-renewable fuels (crude, wood, coal, etc) it will reduce the mass of earth over the period of time. At which point (if at all) it will affect gravitational force between earth & sun as per the formula [1]
By "affect" I mean in a noticeable way.

[1] https://www.google.com/search?q=gravitational+force+formula

Re:PhD student solves 2,500-year-old Sanskrit problem on Thursday December 15, 2022 @09:10AM (#33999697)
I don't think so. Govt of India has been promoting Sanskrit (without much success) since many decades. There is/was even Sanskrit news. Now-a-days I can see "Weekly Sanskrit Magazine: Vaartavali" from national news Doordarshan [1]

[1] https://www.youtube.com/watch?v=ELmU3GXcuuo

> Brahmos

Nitpick: It is actually amalgamation of Indian & Russian rivers. Brahmaputra (India) and Moskva (Russia)

Re:Show HN: Versioning Filesystem for SQLite on Monday August 29, 2022 @12:02AM (#32634691)
There is a requirement where I need data which existed at timestamp T or version V. So even a WAL needs to be versioned.
Re:Show HN: Versioning Filesystem for SQLite on Monday August 29, 2022 @12:01AM (#32634681)
This is a part of a larger system which requires versioning of data. So there is a requirement of reading the data as of timestamp T. The sqlite is supposed to be metadata of that large data. Since the larger data itself is versioned I need metadata to be versioned.

Some of the use-cases are mentioned at: https://news.ycombinator.com/item?id=32629548

Re:Show HN: Versioning Filesystem for SQLite on Sunday August 28, 2022 @10:50PM (#32634304)
In git, each version of the database will be a full copy. The git has to perform diff i.e. scan the database file. Imagine doing commits & creating snapshots very frequently.

Have a look at https://github.com/sudeep9/mojo/blob/main/design.md#index

Re:Show HN: Versioning Filesystem for SQLite on Sunday August 28, 2022 @01:55PM (#32630394)
Yes. But you need to have such a filesystem installed at the first place.

Mojo can run on any filesystem which does not support snapshots/versions. This makes it portable not only across different fs but also across OS.

Re:Show HN: Versioning Filesystem for SQLite on Sunday August 28, 2022 @12:31PM (#32629664)
Noted.

I have changed the license to MIT.

Re:Show HN: Versioning Filesystem for SQLite on Sunday August 28, 2022 @12:23PM (#32629592)
I have changed the license to MIT. Sorry for the wrong impression.
Re:Show HN: Versioning Filesystem for SQLite on Sunday August 28, 2022 @12:18PM (#32629548)
(I am the author) Some of the use-cases of mojo I could think of:

1. Rollbacking DDL changes (like create table, adding columns, etc)

2. (My use-case) Multiple readers-single writer. Readers read old versions. Writers do not block readers and vice-versa. Note: this is different than reading+writing in the same version can still happen but with database-level locking.

3. Extension of #2: The older versions read from S3 so that lamda can read.

4. Extension of #3: Readers reading from old immutable snapshots makes the database as a queue of complex changes with indexes and all the benefits of SQL.

5. Backups and replication.

Oh: I have change the license to MIT

Re:Show HN: Versioning Filesystem for SQLite on Sunday August 28, 2022 @12:11PM (#32629484)
From what I know of litestream, it should be decoupled from VFS implementation. The versions/snapshots are not known to the database.
Re:Show HN: Versioning Filesystem for SQLite on Sunday August 28, 2022 @12:08PM (#32629465)
I think you can read the code. I knowingly made the repo public. You do not even have to login to github. I think it should be ok.
Re:Show HN: Versioning Filesystem for SQLite on Sunday August 28, 2022 @12:05PM (#32629440)
Not sure I understood your question fully, but if there are multiple versions, then read will be over multiple files but writes go to a single active version.
Re:Show HN: Versioning Filesystem for SQLite on Sunday August 28, 2022 @11:53AM (#32629338)
I am the author. Mojo is both an extension and a VFS implementation.

> AFAIK only one VFS can be active at a time.

You can specify VFS as a part of connect URI.

Re:Show HN: Versioning Filesystem for SQLite on Sunday August 28, 2022 @11:52AM (#32629332)
> is it some kind of a tease

(I am the author). It's definitely not a tease. The license will change within a week (max 2). This is my first open source project. The purpose is to validate the approach.

This has been a private project for a very long time. It can be argued that I should have figured out the license but the delay from my side reached a tipping point. I just thought "make it public, figure the rest later".

Re:Show HN: Versioning Filesystem for SQLite on Sunday August 28, 2022 @11:50AM (#32629320)
Only modified pages go into a version data file [1]

[1] https://github.com/sudeep9/mojo/blob/main/design.md

Re:LiteFS a FUSE-based file system for replicating SQLite on Tuesday July 26, 2022 @11:33PM (#32246613)
I can confirm that it does. I am working on it as I write this :).

Technically, an extension and VFS are separate things.

An extension when loads, allows you to register the VFS with the Sqlite. It can also register virtual tables as well.

Re:LiteFS a FUSE-based file system for replicating SQLite on Tuesday July 26, 2022 @11:30PM (#32246599)
It just so happens that I am working on a versioned file system for sqlite based on its VFS interface. Planning to release it in a week's time. It will be in pre-alpha stage and its more of a proof-of-concept.

Having worked with FUSE in the past, there is always some performance penalty, but the advantage is that there is no change in the application.

The VFS will need change in the application but less overhead. Trade-offs!

Older »