Plan9's ndb as a General Purpose Database.

Sdílet
Vložit
  • čas přidán 19. 05. 2024
  • This is a quick showcase of ndb plan9's network database.
    This tutorial is focused on ndb for those wondering where to get ndb you can either install plan9port or run one of the many forks and versions of plan9 such as 9front.
    Let me know what you think and if there is anything specific you would like to learn about.
    Github: www.github.com/gavinok
    vimrc: github.com/Gavinok/dotvim
    Resume: github.com/Gavinok/Groff-resume
    Discord: / discord
    Timecodes
    00:00 - Intro
    01:08 - What is ndb
    01:49 - How ndb works
    01:58 - Example file structure
    03:31 - Querying with ndbquery
    04:18 - Benchmarking ndb vs recutils
    05:43 - Using multiple files
    06:48 - Speeding up ndb
    10:05 - Outro

Komentáře • 28

  • @GavinFreeborn
    @GavinFreeborn  Před 3 lety +9

    Shout out to Humm who recommended the great video idea. For those of you asking where to get ndb you can get it with plan9port at (9fans.github.io/plan9port/) otherwise you can install one of the many versions and forks of plan9 such as 9front.

  • @robertsherwoodgmail
    @robertsherwoodgmail Před 3 lety +4

    Great video. I've been tinkering with Plan9 for a while, but didn't even realize this feature was hidden in plain sight.

  • @AleksyGrabovski
    @AleksyGrabovski Před 2 lety +1

    Thanks, for a video. I've also some time ago thought about some simple to use database and found the Prolog language can be used as an *excelent* database and then you have a full Turing complete language together with it. It is so simple that I've used it as a default format for a logger for my program, and I could immediately do some advanced analysis of data without any additional tool. So you can also give it a try.

  • @amydebuitleir
    @amydebuitleir Před 2 lety

    Very cool! Many of the advantages of a traditional database, with all the advantages of text (less likely to get corrupted, can use ordinary version control tools like git on your data, etc.)

  • @lordofenron
    @lordofenron Před 3 lety

    Oh! This is _so_ cool! :D I've never really worked with databases, but I guess I could use this for birthdays and create a few scripts around it :) Thanks!

  • @FirstLast-kv1iq
    @FirstLast-kv1iq Před 3 lety +5

    The video hasn't even been released but I can still tell this is gonna be good :)

    • @FirstLast-kv1iq
      @FirstLast-kv1iq Před 3 lety +2

      Turns out I wasn't wrong

    • @GavinFreeborn
      @GavinFreeborn  Před 3 lety +1

      I am sorry to hear you feel that way.

    • @FirstLast-kv1iq
      @FirstLast-kv1iq Před 3 lety +1

      @@GavinFreeborn What do you mean? I thought the video was great. I wasnt wrong in because I thought it was gonna be good

    • @GavinFreeborn
      @GavinFreeborn  Před 3 lety +3

      ​@@FirstLast-kv1iq haha I first read it as "I was wrong" haha. Now I realize that I was mistaken. A classic case of tired eyes playing tricks on me.

  • @SenatorMailman
    @SenatorMailman Před 2 lety +1

    Very nice video. Got a subscription.

  • @halfwit2
    @halfwit2 Před 2 lety +1

    I use a ton of ndb in my programs, it's so simple to use and implement; and powerful enough to do everything I need

    • @iftekharriyad3006
      @iftekharriyad3006 Před rokem

      Great! Can you give me some advice on how to get started?

    • @halfwit2
      @halfwit2 Před rokem

      @@iftekharriyad3006 on 9, the libs are built right in; but outside of that there's a parser in Go iirc in the 9fans github repository; as well as some out in the wild written in C

  • @eritert
    @eritert Před 3 lety +1

    Very cool

  • @FirstLast-kv1iq
    @FirstLast-kv1iq Před 3 lety +2

    Two things, first is this video was awesome and I would love to see more plan9 related contented. Second, may I ask if you are using zsh? if so how did you configure it? with ohmyzsh? from scratch? I really like your shell prompt, maybe a video idea.

    • @GavinFreeborn
      @GavinFreeborn  Před 3 lety

      Ya its zsh. I just did it myself I dont know if it is worthy of a hole video since it is a pretty simple setup. Here is the current setup.
      gist.github.com/Gavinok/aa40945e258d5745ea2e0626fd5933a5
      Feel free to hit me up on discord if you have any questions.

  • @MauryMarkowitz
    @MauryMarkowitz Před rokem +2

    How does the mkhash work? ndb(1) shows it makes new files, but how does it maintain links from the hashtable into the db if the db changes?

  • @LabiaLicker
    @LabiaLicker Před 4 měsíci

    A lot of the Plan 9 software is just great. Just compare the plan9 core utils with GNUs.

  • @smorrow
    @smorrow Před 3 lety +6

    And there's a C API for ndb

    • @GavinFreeborn
      @GavinFreeborn  Před 3 lety +1

      Ya it great I haven't used it myself but if others are interested I'll definitely give it a try.

  • @zekodun
    @zekodun Před 3 lety

    one thing that interests me is how plan9's ndb compares with berkeley db?

  • @almasabdrazak5089
    @almasabdrazak5089 Před 3 lety +1

    suck as 9front, is it typo or you don't like this fork ? xD

    • @GavinFreeborn
      @GavinFreeborn  Před 3 lety +1

      Haha ya it was a typo. I may have been in a bit too much of a rush when uploading this video. 😅

  • @vvawarc
    @vvawarc Před 3 lety

    J

  • @polluks2
    @polluks2 Před 2 lety

    Please lower screen resolution!

  • @cts
    @cts Před 2 lety

    You say "You guys" one. more. time. and I will publicly downvote this otherwise very interesting video!