CAM6 VS GoJS, a JavaScript Library for HTML Diagrams

Compare CAM6 vs GoJS, a JavaScript Library for HTML Diagrams and see what are their differences.

CAM6

Cellular Automata Machine (CAM6) Simulator (by SimHacker)
SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
CAM6 GoJS, a JavaScript Library for HTML Diagrams
6 13
32 7,439
- 0.8%
2.1 6.1
9 months ago 9 days ago
JavaScript HTML
Apache License 2.0 GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

CAM6

Posts with mentions or reviews of CAM6. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-11-21.
  • Programming the CAM-6 Cellular Automata Machine Hardware in Forth (CAM6 Simulator demo)
    1 project | /r/Forth | 14 Dec 2022
    Github Repo: https://github.com/SimHacker/CAM6/
  • Ask HN: What weird technical scene are you fond/part of?
    25 projects | news.ycombinator.com | 21 Nov 2022
    https://www.youtube.com

    I hate it when a program I wrote mocks me. In Lex Fridman's interview of Steven Wolfram, he demonstrates the machine learning functions in Mathematica by taking a photo of himself, which identifies him as a .... (I won't give it away):

    https://www.youtube.com/watch?v=ez773teNFYA&t=2h20m05s

    Here's a video I recently recorded of the CAM-6 simulator I implemented decades ago, and rewrote in JavaScript a few years ago.

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

    I recorded that demo to show to Norman Margolus, who co-wrote the book and wrote the CAM6 PC Forth code and many rules, so it's pretty long and technical and starts out showing lots of code, but I'm sure you'll totally get and appreciate it. I linked to a pdf copy of the book in the comments, as well as the source code and playable app.

    Demo of Don Hopkins' CAM6 Cellular Automata Machine simulator.

    Live App: https://donhopkins.com/home/CAM6

    Github Repo: https://github.com/SimHacker/CAM6/

    Javacript Source Code: https://github.com/SimHacker/CAM6/blob/master/javascript/CAM...

    PDF of CAM6 Book: https://donhopkins.com/home/cam-book.pdf

    Comments from the code:

        // This code originally started life as a CAM6 simulator written in C
  • Theory of Self Reproducing Automata [pdf]
    1 project | news.ycombinator.com | 24 Sep 2022
    https://news.ycombinator.com/item?id=22738268

    DonHopkins on March 31, 2020 | parent | context | favorite | on: Von Neumann Universal Constructor

    Here's some stuff about that I posted in an earlier discussion, and transcribed from his book, "Theory of Self-Reproducing Automata".

    His concept of self-reproducing mutating probabilistic quantum mechanical machine evolution is quite fascinating and terrifying at the same time (or outside of time), potentially much more powerful and dangerous than mere physical nanotechnology "gray goo" and universe-infesting self replicating von Neumann probes:

    Can Programming Be Liberated from the von Neumann Style? (1977) [pdf] (thocp.net)

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

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

    John von Neuman's 29 state cellular automata machine is (ironically) a classical decidedly "non von Neumann architecture".

    https://en.wikipedia.org/wiki/Von_Neumann_cellular_automaton

    He wrote the book on "Theory of Self-Reproducing Automata":

    https://archive.org/details/theoryofselfrepr00vonn_0

    He designed a 29 state cellular automata architecture to implement a universal constructor that could reproduce itself (which he worked out on paper, amazingly):

    https://en.wikipedia.org/wiki/Von_Neumann_universal_construc...

    He actually philosophized about three different kinds of universal constructors at different levels of reality:

    First, the purely deterministic and relatively harmless mathematical kind referenced above, an idealized abstract 29 state cellular automata, which could reproduce itself with a Universal Constructor, but was quite brittle, synchronous, and intolerant of errors. These have been digitally implemented in the real world on modern computing machinery, and they make great virtual pets, kind of like digital tribbles, but not as cute and fuzzy.

    https://github.com/SimHacker/CAM6/blob/master/javascript/CAM...

    Second, the physical mechanical and potentially dangerous kind, which is robust and error tolerant enough to work in the real world (given enough resources), and is now a popular theme in sci-fi: the self reproducing robot swarms called "Von Neumann Probes" on the astronomical scale, or "Gray Goo" on the nanotech scale.

    https://en.wikipedia.org/wiki/Self-replicating_spacecraft#Vo...

    https://grey-goo.fandom.com/wiki/Von_Neumann_probe

    >The von Neumann probe, nicknamed the Goo, was a self-replicating nanomass capable of traversing through keyholes, which are wormholes in space. The probe was named after Hungarian-American scientist John von Neumann, who popularized the idea of self-replicating machines.

    Third, the probabilistic quantum mechanical kind, which could mutate and model evolutionary processes, and rip holes in the space-time continuum, which he unfortunately (or fortunately, the the sake of humanity) didn't have time to fully explore before his tragic death.

    p. 99 of "Theory of Self-Reproducing Automata":

    >Von Neumann had been interested in the applications of probability theory throughout his career; his work on the foundations of quantum mechanics and his theory of games are examples. When he became interested in automata, it was natural for him to apply probability theory here also. The Third Lecture of Part I of the present work is devoted to this subject. His "Probabilistic Logics and the Synthesis of Reliable Organisms from Unreliable Components" is the first work on probabilistic automata, that is, automata in which the transitions between states are probabilistic rather than deterministic. Whenever he discussed self-reproduction, he mentioned mutations, which are random changes of elements (cf. p. 86 above and Sec. 1.7.4.2 below). In Section 1.1.2.1 above and Section 1.8 below he posed the problems of modeling evolutionary processes in the framework of automata theory, of quantizing natural selection, and of explaining how highly efficient, complex, powerful automata can evolve from inefficient, simple, weak automata. A complete solution to these problems would give us a probabilistic model of self-reproduction and evolution. [9]

    [9] For some related work, see J. H. Holland, "Outline for a Logical Theory of Adaptive Systems", and "Concerning Efficient Adaptive Systems".

    https://www.deepdyve.com/lp/association-for-computing-machin...

    https://deepblue.lib.umich.edu/bitstream/handle/2027.42/5578...

    https://www.worldscientific.com/worldscibooks/10.1142/10841

    Ericson2314 3 months ago [-]

    > Although I refer to conventional languages as "von Neumann languages" to take note of their origin and style, I do not, of course, blame the great mathematician for their complexity. In fact, some might say that I bear some responsibility for that problem.

    From the paper. Whew.

  • Show HN: Making a Falling Sand Simulator
    3 projects | news.ycombinator.com | 8 May 2022
    Typically a cellular automata simulation will have some edge condition like wrapping or mirroring an adjacent cell.

    A nice optimization trick is to make the cell buffers 2 cells wider and taller (or two times whatever the neighborhood radius is), and then before each generation you update the "gutter" by copying just the wrapped (or mirrored) pixels. Then your run the rule on the inset rectangle, and the code (in the inner loop) doesn't have to do bounds checking, and can assume there's a valid cell to read in all directions. That saves a hell of a lot of tests and branches in the inner loop.

    Also, the Margolus neighborhood can be defined in terms of the Moore neighborhood + vertical phase (even/odd row) + horizontal phase (even/odd column) + time phase (even/odd time). Then you can tell if you're at an even or odd step, and which of the four squares of the grid you're in, to know what to do.

    That's how the CAM6 worked in hardware: it used the x/y/time phases as additional bits of the index table lookup.

    https://github.com/SimHacker/CAM6/blob/master/javascript/CAM...

    Here's how my CAM6 emulator computes the Margolus lookup table index, based on the 9 Moore neighbors + phaseTime, phaseX, and phaseY:

                        function getTableIndexUnrotated(
  • Ask HN: What book changed your life?
    1 project | news.ycombinator.com | 19 Mar 2022
  • It's always been you, Canvas2D
    12 projects | news.ycombinator.com | 4 Mar 2022
    Oh, nicely done! Trying to code up cellular automata simulations are pretty much guaranteed to push my brains through my nostrils - I've never progressed far beyond classic Conway. Your CAM6 library[1] may be about to steal my weekend from me!

    [1] - https://github.com/SimHacker/CAM6

GoJS, a JavaScript Library for HTML Diagrams

Posts with mentions or reviews of GoJS, a JavaScript Library for HTML Diagrams. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-09-29.
  • Burning money on paid ads for a dev tool – what we've learned
    2 projects | news.ycombinator.com | 29 Sep 2023
    Have spent six figures yearly on ads, mostly for reach for the developer-focused diagram library GoJS (https://gojs.net)

    > Each experiment will need ~$500 and 2 weeks

    I would add a zero if you want serious data. I would also double the timescale. $5,000 over 4 weeks

    I second the uselessness of Google Display, it might look like conversions numbers are good but they are 100% too good to be true. As soon as you look into them you find the sources are things like "ad from HappyFunBabyTime Android app". You have to ruthlessly prune daily for months to get anything real, and even then I'm skeptical of value. For a developer tool with very strict conversion metrics!

    But I disagree on Google Search:

    > Good for conversion, bad for awareness.

    Before we were popular it was excellent for awareness. Post popularity its much more arguable.

  • Purescript bindings for GoJS
    3 projects | /r/purescript | 29 Jun 2023
    Creating the Halogen components would be simple enough if one takes inspiration from gojs-react. The issue is that there are no PureScript bindings for the GoJS types themselves, but GoJS does provide .ts.d declarations, which means I could use purescript-read-dts, but that library's maturity/usability seems somewhat ambiguous, according to an author's post from 3 years ago.
  • Any Ideas How to Create a Graph Builder UI in React?
    2 projects | /r/reactjs | 24 Jan 2023
    used goJS in one project and konva in another
  • Ask HN: What is the most impactful thing you've ever built?
    33 projects | news.ycombinator.com | 18 Nov 2022
    I built GoJS, which is one of the most popular commercial JS diagramming libraries: https://gojs.net

    I built carefulwords, a very fast thesaurus and quote site for inspiration, used by... tens of people a day. Eg: https://carefulwords.com/gift https://carefulwords.com/solitude

    I mostly made it for myself, me and my wife use it all the time. I am slowly editing down the thesaurus to managable size.

    I built a 12x16 "Goose Palace" barn out of local pine timbers, which taught me timber framing, and taught my tiny baby who turned 2 years old while doing it that this is just the kind of thing that people normally do, build barns in their driveway. Some context: https://simonsarris.substack.com/p/the-goose-palace

    Some photos of building it with the baby: https://twitter.com/simonsarris/status/1584169368203956225

    I designed my house, and have been writing extensively about that. Maybe this is the most impactful, since photos of it are all over Pinterest and other sites, now. The first post on that: https://simonsarris.substack.com/p/designing-a-new-old-home-...

    I am not sure what is most impactful. Maybe ultimately it is building my family.

  • Node-Based UIs
    10 projects | news.ycombinator.com | 17 Nov 2022
    I made a pull request for GoJS (https://gojs.net)

    I have been building this canvas-based graphing library since 2011, and it contains a good number of features around customization and interactivity that are not found in other libraries. It is commercial for non-academic use however.

  • Where I can learn how to do the following in React?
    1 project | /r/reactjs | 11 Nov 2022
    in one project we use konva, in another we used gojs. Any of them or some other library needs some training and introduce own limitations but it still way way way better than handing all the coordinates, calculations, routing etc on your own.
  • TypeScript is terrible for library developers
    16 projects | news.ycombinator.com | 23 Aug 2022
    I am really surprised by this guy's opinion. I make GoJS (https://gojs.net/), a diagramming library written in TypeScript. The project began in 2011 and we converted it to TS in 2018. It's been a huge plus. The sole downside was the initial time it took during conversion, but even in doing so we caught bugs with incorrect input types, documentation mistakes, etc.

    On our end, it enforces type safety better than the Google Closure Compiler. There has scarcely been a problem with type complexity that was not ultimately our fault. Just a couple minor things that TS amended later. For that matter the TS experience has only gotten better, generally.

    On our users end, we can now give them a .d.ts file that's much richer and easier for us to produce to aid their autocompletion. And we can use that .d.ts file to ensure that all the methods we intended to expose/minify are getting exposed. The advantages with the .d.ts and documentation make it feel almost essential to me for library developers to consider TS.

    TypeScript has only made debugging easier, much easier since it catches errors at time of typing unlike the closure compiler. The sole exception is that debugging is a bit slower since I have to transpile instead of just refreshing the browser. But I have tsc set to compile a relatively unminified version of the JS. But if the slowness gets to me, I can just edit the JS output until I solve the issue, and then carry those edits over to the TS. This has never felt like a problem, though maybe his library is significantly more complicated.

    Feel free to ask me anything if you have questions about library design + TS.

  • Ask HN: How to quickly animate sketches and 2D diagrams?
    8 projects | news.ycombinator.com | 10 Mar 2022
    GoJS might work for you: https://gojs.net

    Although the focus of the library is interactivity and not setting up sequences of animation, but that is possible too.

  • It's always been you, Canvas2D
    12 projects | news.ycombinator.com | 4 Mar 2022
    My livelihood has been primarily building a Canvas diagramming library since 2010 (https://gojs.net), if anyone has any questions about 2D Canvas use in the real-world I'd be happy to answer them.

    roundRect is great. Though you don't need 4 arcTo in order to make a rounded rect, you can use bezier instead (we do). Their example is also 1% amusing because they set the `fillStyle` but then call `stroke` (and not `fill`). I'll have to do some performance comparisons, since that's the operative thing for my use case (and any library author).

    text modifiers are very welcome. It's crazy how annoying measuring still is, especially if you want thinks to look perfectly consistent across browsers. Though the chrome dominance is making things easier in one way, I guess.

    context.reset is kinda funny. Most high-performance canvas apps will never want to use it. For that matter you want to set all properties as little as possible, especially setting things like context.font, which are slow even if you're setting it to the same value. (Or it was, I haven't tested that in several years).

    I'm sure most users know this by now, but generally for performance the fewer calls you make to the canvas and the context, the beter. This is even true of transforms: It's faster to make your own Matrix class, do all your own matrix translation, rotation, multiplication, etc, and then make a single call to `context.setTransform`, than it is to call the other context methods.

  • Problem with some gojs gantt model
    1 project | /r/learnjavascript | 6 Jun 2021
    I have some problem with gojs(https://gojs.net/),

What are some alternatives?

When comparing CAM6 and GoJS, a JavaScript Library for HTML Diagrams you can also consider the following projects:

BezierInfo-2 - The development repo for the Primer on Bézier curves, https://pomax.github.io/bezierinfo

d3 - Bring data to life with SVG, Canvas and HTML. :bar_chart::chart_with_upwards_trend::tada:

SVM-Face-and-Object-Detection-Shader - SVM using HOG descriptors implemented in fragment shaders

draw.io - draw.io is a JavaScript, client-side editor for general diagramming.

uBlock - uBlock Origin - An efficient blocker for Chromium and Firefox. Fast and lean.

react-vis - Data Visualization Components

new-wave - Stack Computer Bytecode Interpreters: The New Wave

three.js - JavaScript 3D Library.

virtualagc - Virtual Apollo Guidance Computer (AGC) software

fabric.js - Javascript Canvas Library, SVG-to-Canvas (& canvas-to-SVG) Parser

rvc - A 32-bit RISC-V emulator in a shader (and C)

joint - A proven SVG-based JavaScript diagramming library powering exceptional UIs