Better HN
topnewbestaskshowjobs
Log inSign up

didgetmaster

2,060 karma · joined Feb 24, 2022 (4y ago) · 981 submissions

www.Didgets.com myDidgets@gmail.com Didgets.substack.com Didgetsdemos@youtube.com
Submissions

comment 3y ago · link · parent

Back in the early days of the PC when storage was very limited (my first HDD was only 10 MB), managing disk partitions was critical. Today with 20+ TB HDD and even 4 TB SSDs becoming affordable, partitioning is still important but for different reasons.

I joined a little startup called PowerQuest that was developing a partitioning product called Partition Magic after I wasted several hours for the umpteenth time re-partitioning my hard drive so that I could test out multiple operating systems (DOS/Windows, OS/2). It was a big success, but as drives got bigger the need to re-partition because the partition was full, diminished. Eventually, Microsoft included free partitioning software with their OS.

Today, partitioning can still be very important. You might want to install multiple operating systems on a single computer, each with its own boot partition and file system. You might want to keep your data and applications separate for access or in case a bug corrupts the file system.

But the sheer size of HDDs can also cause a problem. A 20 TB HDD can easily hold a few hundred million files. With new HAMR drives coming out, we will soon see drives capable of storing over a billion files. File systems like NTFS have a file record (FRS) size that is quite large (4096 bytes per file). When you have a billion files on a single volume, that is 4 TB just for the file table. Loading that in and storing it in RAM is problematic (not too many systems have that much RAM). Searching for files, checking the file system, or doing other operations can cause the file table to be loaded in its entirety.

Having multiple partitions, each with a smaller number of files on them can be a way to deal with this problem. I am working on a new system (Didgets.com) that seeks to address this issue with a different approach.

comment 3y ago · link · parent

>While I could see it, I don’t think it’s likely. Those officials that passed such laws would be literally run out of town.

When was the last time a public official was 'run out of town' for doing something that made life for their constituents miserable? One thing our democracy is absolutely terrible about doing is actually holding our elected officials accountable.

comment 3y ago · link · parent

Hmmm...so it only counted 1.6% of the books as explicit because they had "publisher-provided" maturity ratings of 17+.

I wonder how many books that had explicit material within them were not properly labeled as such by their publishers? This seems like a very subjective standard that would be very easy to manipulate.

comment 3y ago · link · parent

There needs to be a limit on things you can upvote each month based on how much you give as a subscription. Each upvote should be worth at least 1 penny. If you agree to subscribe for $2 a month, that gives you a max of 100 upvotes (1 for each penny over the dollar server costs).

The more you donate, the more upvotes you get ($5 per month would give you 400 votes).

comment 3y ago · link · parent

I inherited the set of WB Encyclopedias my parents bought for our family when I was a kid. We could not sell them in the yard sale and the library didn't want them as a donation.

I decided to keep them as a 'decoration' for my new office. There is some nostalgia for me and I will probably crack one open now and then.

I think it is naïve to believe that just because the Internet is full of disinformation that alters regularly at the speed of light; that a print version will protect you from that. While the older versions are less likely to be infiltrated; the biases have existed long enough that plenty of propaganda has made it into print.

comment 3y ago · link · parent

>The period is not fixed for the open source licenses, so if you change the license for the latest version, the old versions are still under AGPL. Therefore, even if I change the license for mold, anyone can just fork the old open source version and continue to develop it easily.

This is a major issue for anyone considering offering their software with an open source license. There are many licenses to choose from and you have to get the first one right. You can't just pick one and later switch it to something more suitable.

comment 3y ago · link · parent

The mistake that too many people have, is thinking that your blog has to appeal to the masses. Unless it goes 'viral' and attracts millions of views they think it is a failure.

Instead, focus on topics that might only be 'not boring' to a small subset of the population. HN tends to attract people with very particular interests. I often browse through a hundred or more posts before finding one that truly interests me.

My own blog is dedicated to those who are passionate about data management. This is a small group indeed, but who cares if less than 1000 people read my posts. All it takes is a few to learn something meaningful from it to make it worthwhile.

comment 3y ago · link · parent

Are the electrical grids in northern Europe not interconnected? It would seem that if one country happens to be producing more energy than its people currently needs, then it should be able to sell the excess to other countries where that is not the case.

comment 3y ago · link · parent

Some of the world's greatest inventions were created only after much trial and error by a very persistent person. They were often told that what they were trying to do was impossible and to just give it up. Only after they succeeded were they recognized as a genius instead of as a fool.

Today's mantra of 'fail fast' discourages the kind of steady work required to solve some problems. If a solution can't be found in a very short time, they tell you to give up. This can be beneficial in some cases, but some problems are just not easily solved.

How you deal with this, really is dependent on what kind of person you are. If you are patient and willing to stick with something over a long time, then you could create something truly unique. If you get too anxious when a quick solution eludes you, maybe go with the fail fast method.

comment 3y ago · link · parent

While it is hard to hear criticism directed at you personally, or at something you have put your heart and soul into developing; discerning between constructive criticism and 'knee-jerk responses' is critical.

Maturity means that you can accept criticism that is intended to help you improve. Making you aware of an issue or directing you towards a better solution can make your code or product a better one.

Simple insults thrown from the 'peanut gallery' should just be ignored. If you have built something using a particular language or framework on a particular platform; you should expect those who don't like those things to throw in their two cents without even trying to understand the problem you are trying to solve.

comment 3y ago · link · parent

No. A loss of a child is a loss of a child. I have heard people say that parents of 4 or 5 children should feel less of a loss if one of their children dies, than a parent who only has one or two children. It just doesn't work that way.

comment 3y ago · link · parent

I have been writing multithreaded code for decades and it is hard. My current database engine can break a single query into tasks to be run in parallel for much faster performance; but finding and fixing bugs is a real challenge.

All it takes is one critical section to not be protected (i.e. locked) to cause a bug. A series of tests can run hundreds of times correctly without detecting the problem. It is only when a context switch happens at a certain microsecond that the error is exposed.

I am a true believer in multithreading as my own code can see tremendous performance gains using it on the latest multi-core CPUs; but tread very carefully when programming in this manner.

comment 3y ago · link · parent

I certainly understand this sentiment. I am building a general-purpose data manager that has many relational database features. It can do a number of things better and much faster than conventional databases. It is currently in beta and available for free download.

But I would be shocked (and worried) if someone tried to use it as their primary database in production. It just doesn't have enough testing yet and is still missing some features.

Instead, I am promoting it as a tool to do tasks like data analysis and data cleaning. That way it gets a good workout without causing major problems if there is a bug.

https://didgets.com/

comment 3y ago · link · parent

I agree. While data can always outgrow any single machine's ability to manage and process it in a optimal manner; the right software can allow larger data sets to be performant without resorting to distributed systems. If the software takes full advantage of all the CPU cores and has an intelligent caching strategy then some amazing things can happen on affordable hardware.

I am building a new kind of data management system. It can manage unstructured data like a file system as an object store. It can build very large relational tables and query them quickly. Its flexible schema allows the management of semi-structured data like NoSql systems. (https://didgets.com/)

It has distributed features built into the architecture, but I have only implemented the single node so far. On a $2000 desktop computer it can easily manage 200 million files and tables with 100M+ rows or thousands of columns.

comment 3y ago · link · parent

I wasn't suggesting that all the developers have to develop and compile their code on antiquated hardware. They should still have fast development machines.

What I was saying that if the developers ONLY run their software on their high-powered computers and never try it on slow hardware, they generally resort to the 'it runs fine on my machine' response when customers start complaining about performance.

comment 3y ago · link · parent

It would be nice if every developer had to run their latest build on 10 year old hardware while testing it out.

Instead of their high-powered development machine with the latest CPU, tons of high speed memory, and the fastest SSD; they would get to experience what many of their customers have to endure on slower hardware with capacity constraints.

Nothing spurs optimization like seeing first hand how your code creeps along on slow hardware.

comment 3y ago · link · parent

It's like one of those 80/20 rule things.

Something like 25% of any given project is the 'fun' part. These include refining the basic idea; building a prototype; getting some simple functions working; seeing it do one or two things extremely well.

The other 75% is the 'grunt work' part that may not be fun to work on (e.g. documentation, bug fixes, refactoring, etc.) but is often absolutely necessary to have a 'finished' project. (Not that any project is really ever finished, but rather one that is usable to a large audience)

I have experienced this with various projects I have worked on over the years; whether ones I worked on professionally while working for someone else, or my own 'hobby projects' that I did in my spare time.

comment 3y ago · link · parent

Exactly. I am actively developing a desktop app (https://didgets.com/). I have regular releases (every couple of weeks) that contain bug fixes and new features. While it would be nice if every user updated every time the new revision is posted; I don't expect that and other developers shouldn't either.

If it has been about 3 months since the user last updated; it will prompt the user to update to the latest version when the application starts (not some popup when they are in the middle of doing something important).

comment 3y ago · link · parent

Their problem is they went with the 'forever' word instead of the much more common 'lifetime' word. That way they can tell you that even though you might have thought it was your lifetime they were talking about; in reality they were talking about the lifetime of something completely different.

comment 3y ago · link · parent

Trying to ignore the guy with the arrest record a mile long and who is currently making you 'uncomfortable' by screaming obscenities in your face because he is mentally ill or high on drugs; can also get you killed when he pulls out a knife or pushes you into the path of an oncoming train.

comment 3y ago · link · parent

Mormon was an ancient prophet who compiled and abridged the record which he called the Book of Mormon. When the church started publishing the book, people started calling members of the church, 'Mormons'. It was largely used as a derogatory term by those who did not like the church, but members eventually embraced it.

Kind of like the term 'Yankee' was a derogatory term for Americans that the British came up with. Eventually, Americans embraced it and even named a baseball team after it.

The church and its members do not think the term is bad, but think it can distract those who think the church is not Christian so it is trying to de-emphasize it.

comment 3y ago · link · parent

Maybe that explains some 'word-salad' speeches by our VP. She really is sending a hidden message to somebody who has the secret decoder ring. Then again, maybe not...

comment 3y ago · link · parent

I am amazed when self-proclaimed do-gooders hear about some poor person in India or Africa who works long hours for just a few dollars per day; and puts all their effort into eliminating that job to 'help' that individual.

Boycotts, mandates, laws, and other forms of political pressure manage to put the employer (labeled an exploiter) out of business. Then everyone pats themselves on the back about what a good citizen they are for righting the injustice.

Afterwards, the poor (now unemployed) person goes back to scavenging through an unsanitary garbage pile looking for their next meal.

comment 3y ago · link · parent

A simpler tax system will take power away from those currently in charge (whether they are public facing like Senators or Presidents, or they are behind the scenes as in 'deep-state' bureaucrats or donors).

This is why attempts to simplify the tax system never go anywhere.

comment 3y ago · link · parent

The book suggests building a database on top of a KV store. This is precisely what I did with my project. I was initially building a product that I hoped would be able to replace existing file systems and I needed an architecture that made it easy to create meta-data tags for every file and then find every file that had certain tags very quickly. I implemented the tags using a set of novel Key-Value stores that I invented.

Once I had it working, I realized the KV stores I used for tags were just like columns in a relational table built within a columnar database. Querying for files based off their tags was very much just like SQL queries for table rows. So I tried using them to create relational tables.

They turned out to be incredibly fast at a variety of queries (the bread and butter of databases) without needing to create separate indexes in order to get optimal performance. I thought database experts would be intrigued when I showed how much faster my system was than other conventional RDBMS setups on the same hardware. I guess I was surprised when almost no one was even curious how it did it.

Here is a simple, short video comparing it to SQLite: https://www.youtube.com/watch?v=Va5ZqfwQXWI

comment 3y ago · link · parent

So if you change one byte in a clone, then it will just update a single block in the changed file while leaving all the other clone's data streams unchanged. But what happens if you add (or delete) a byte near the front of a 10GB file? Does that cause the entire data stream to be written, since the rest of the data must be shifted up or down?

comment 3y ago · link · parent

A billion here and a billion there. Before long you are talking about real money. Rarely are government budgets based in reality.

Someone talks Congress into giving them X dollars to solve problem Y because many people think Y is a problem and want it solved. Instead they spend 3X dollars and only a tiny portion of it goes towards solving Y while the bulk of it goes into Z instead. Sometimes Z was the point all along and they were purposely deceiving us. Sometimes Z takes over because the people running the program decide that Z just became more important (to them at least).

comment 3y ago · link · parent

I am building my own KV store (www.Didgets.com) that can store 10 million KV pairs in about 4 seconds (using my Ryzen 5950X machine). Those pairs take up about 300MB of disk space and have about the same memory footprint when loaded. The values have a variety of data types (strings, integers, doubles, datetime, etc.) The software is still in beta but is available for free download.

comment 3y ago · link · parent

>2.5 Schemas aren't neutral

Nowhere is this more prominent than in traditional file systems where the folder hierarchy is often used as a kind of metadata tagging system. You take a picture while on vacation and copy it to your /pictures/2020/vacations/Hawaii/beach folder. But you could also copy it to your /2020/vacations/Hawaii/beach/pictures folder.

Your pictures, documents, music, and source code gets spread out using whatever hierarchy seems right to you on the day you copied or created it. Heaven forbid you decide to change the folder structure using anything but symbolic links so it breaks any stored references (i.e. full path) to the file(s).

comment 3y ago · link · parent

Each logical container (a Pod) has a set of data objects called Didgets (short for Data Widgets) where each one is assigned a unique 64-bit number as its ID. Each tag is defined with a data type (e.g. Person.FirstName has type STRING) using a schema like how a column in a relational table is defined.

All tags within the same context are stored together in a highly optimized Key-Value store (also stored within specialized Didgets) like how a columnar store database stores all the data for a single column separately. So if you attach a tag like Person.FirstName = 'John' to a photo of John that is stored in a Didgets with ID = 123; then within the tag the value of 'John' is mapped to the key 123 within the Person.FirstName tag store.

This makes it extremely efficient to find all the Didgets where 'John' was attached as a person's first name. It can also find everything where the first name starts with 'J' or a vowel (using regex). The values within each tag store are de-duplicated and reference counted. In the example, the value 'John' is stored once. If 100 things have 'John' attached, then its reference count is 100. This makes it extremely fast to find everything with the 10 most popular names.

The tags were so efficient and fast that I built relational tables using them that are often faster to query than traditional database systems. In this case the 'Key' each value is mapped to is the rowID within the table.

Here is a video showing how that compares to SQLite: https://www.youtube.com/watch?v=Va5ZqfwQXWI

1
181920
33