Better HN
topnewbestaskshowjobs
Log inSign up

dharmatech

745 karma · joined Aug 16, 2007 (19y ago) · 272 submissions

Submissions

comment 6mo ago · link · parent

Cool project!

Just for fun, looking at code count as a rough measure of complexity.

rubish: 26,842

rc (plan9 shell): 5,888

To be fair, rubish does a lot more than rc. rc is pretty minimal.

rc source:

https://github.com/9front/9front/tree/front/sys/src/cmd/rc

Measures below:

    $ wc -l `find . -name '*.rb'`
      1124 ./rubish/execution_context.rb
        43 ./rubish/frontend.rb
      260 ./rubish/builtins/hash_directories.rb
      510 ./rubish/builtins/echo_printf.rb
      834 ./rubish/builtins/bind_readline.rb
      182 ./rubish/builtins/directory_stack.rb
      299 ./rubish/builtins/read.rb
      324 ./rubish/builtins/trap.rb
      129 ./rubish/builtins/arithmetic.rb
      862 ./rubish/completion.rb
      988 ./rubish/expansion.rb
      431 ./rubish/completions/git.rb
      114 ./rubish/completions/ssh.rb
      530 ./rubish/completions/bash_helpers.rb
      453 ./rubish/completions/help_parser.rb
      167 ./rubish/ast.rb
        46 ./rubish/frontend/tty.rb
      1179 ./rubish/runtime.rb
      127 ./rubish/lazy_loader.rb
        63 ./rubish/data_define.rb
      1163 ./rubish/runtime/command.rb
      153 ./rubish/runtime/job.rb
      7270 ./rubish/runtime/builtins.rb
      306 ./rubish/config.rb
      2442 ./rubish/repl.rb
      1316 ./rubish/codegen.rb
      1180 ./rubish/lexer.rb
      742 ./rubish/history.rb
      1169 ./rubish/parser.rb
        67 ./rubish/startup_profiler.rb
      848 ./rubish/prompt.rb
        47 ./rubish/data/readline_config.rb
      716 ./rubish/data/builtin_help.rb
      251 ./rubish/data/shell_options.rb
        53 ./rubish/data/completion_data.rb
        5 ./rubish/version.rb
      248 ./rubish/shell_state.rb
      140 ./rubish/arithmetic.rb
        61 ./rubish.rb
    26842 total

rc:

    $ wc -l *.c *.h *.y
      547 code.c
    1173 exec.c
      234 getflags.c
      259 glob.c
      240 havefork.c
      137 here.c
      301 io.c
      436 lex.c
      169 pcmd.c
      78 pfnc.c
      494 plan9.c
      539 simple.c
      74 subr.c
      37 trap.c
      190 tree.c
      420 unix.c
      109 var.c
      85 exec.h
      72 fns.h
        7 getflags.h
      28 io.h
      167 rc.h
      92 syn.y
    5888 total

comment 6mo ago · link · parent

This is cool!

OK, time for inception... 9social on freenet-git

¯ \ _ ( ツ ) _ / ¯

comment 6mo ago · link · parent

I definitely think we should be exploring decentralized approaches to services we use.

I also would like to see an emphasis on local-first approaches.

This experiment, in the spirit of UNIX, composes git and text files to form a social network:

https://github.com/dharmatech/9social

Video demo: https://youtu.be/q6qVnlCjcAI

comment 6mo ago · link · parent

Thanks for checking it out, pjmlp!

comment 6mo ago · link · parent

Hey pjmlp (waves),

I know you've been an advocate for OSes and languages that are outside of the mainstream.

I finally got around to living in plan9...

My experiment, a social network for plan9 written in rc and some awk.

https://github.com/dharmatech/9social

comment 6mo ago · link · parent

> how do you manage discovery of other users

Here's my personal profile on 9social:

https://github.com/dharmatech/9social-user-dharmatech

Each profile has a `following` file which shows who they're following:

https://github.com/dharmatech/9social-user-dharmatech/blob/m...

So, once you know someone on the network (now you know me!) you can see who they follow. And who each of them follow... And so on.

comment 6mo ago · link · parent

> how do you manage identity/authentication

Well, each user's profile is just a git repository (possibly on github). So I'd think about identity/authentication in the same way users think about it for their code projects.

If you have specific scenarios you're wondering about, feel free to ask.

comment 6mo ago · link · parent

> Nice! This sounds just like what I'd been thinking the system should be like.

Cool! Thanks for checking it out!

comment 6mo ago · link · parent

I agree that owning the data is ideal:

https://news.ycombinator.com/item?id=48129841

comment 6mo ago · link · parent

I absolutely LOVE secure scuttlebutt (SSB).

Their local-first approach inspired that aspect of the 9social design.

However, a big difference is that SSB is a sophisticated protocol.

With 9social, the heavy lifting is done by git and a set of conventions.

comment 6mo ago · link · parent

> You connect to your contacts via P2P, and download/upload updates to your social media network.

Yup, local-first is central to the design.

And, you only see who you explicitly follow.

comment 6mo ago · link · parent

> I love this idea. Thank you for the examples!

Thanks for checking it out!

comment 6mo ago · link · parent

I love your username!

I hope there's a sympy-thagoras out there.

( • ‿ • )

comment 6mo ago · link · parent

It's plan9 so:

"There's a filesystem for that."

¯ \ _ ( ツ ) _ / ¯

comment 6mo ago · link · parent

Our social media should be decentralized and local first, allowing for bespoke clients on any OS.

This is an experiment towards that:

https://github.com/dharmatech/9social

The first client is written for plan9. This keeps the design honest. (If it can run on plan9/rc/acme...)

Video demo:

https://youtu.be/q6qVnlCjcAI

The current implementation is less than 3000 lines of code.

And speaking of Emacs... 9social was heavily inspired by an Emacs project called Org Social:

https://github.com/tanrax/org-social

46.

Principia Softwarica: Plan 9 Code Explained(youtube.com ↗)

2 points · by dharmatech · 6mo ago · discuss

comment 6mo ago · link · parent

Ah, awesome!

I'll head over to the releases.

comment 6mo ago · link · parent

Thanks for checking it out!

comment 6mo ago · link · parent

Amazing that it can run in plan9!

It would be awesome if go was a first class language on 9front. I.e. ships with it.

I've been messing around with a social network for plan9:

https://youtube.com/watch?v=q6qVnlCjcAI&si=MBCeM0QdA0WsKAe7

It's all in rc and awk. There are places where go (or clojure!) would have been nice.

comment 6mo ago · link · parent

I've been messing around with a decentralized social network where you only see who you choose to follow.

It's implemented for plan9, but clients could be made for any OS:

https://youtube.com/watch?v=q6qVnlCjcAI

51.

9social: A Social Network for Plan9(youtube.com ↗)

4 points · by dharmatech · 6mo ago · discuss

comment 7mo ago · link · parent

While reading though this book, I messed around with a basic computer algebra simplifier in Lean:

https://github.com/dharmatech/symbolism.lean

It's a port of code from C#.

Lean is astonishingly expressive.

comment 7mo ago · link · parent

How was the process of getting used to the ortholinear keyboard?

comment 7mo ago · link · parent

How was the process of getting used to the ortholinear keyboard?

comment 7mo ago · link · parent

Their section on Plan 9:

https://sdf.org/plan9/

Side note: here's my workflow for running Plan 9 on Windows:

https://youtu.be/IzEa2L_Pgw0?si=unM5l2-_i_g-NYKP

56.

Show HN: My workflow for using Plan 9 on Windows

2 points · by dharmatech · 7mo ago · discuss

comment 7mo ago · link · parent

The ADA compiler for OpenVMS was over $200,000 in the 1990s.

comment 7mo ago · link · parent

I've been messing around with a computer algebra simplifier in Lean:

https://github.com/dharmatech/symbolism.lean

Lean is astonishingly expressive.

comment 7mo ago · link · parent

The Oberon user interface inspired Acme on Plan 9.

Oberon is a very nice, fun and cozy system and environment for programming. I lived in it for a few months back around 2010 and it was a joy.

comment 8mo ago · link · parent

Ah... Ok, that makes sense.
12345
10