defstar VS githut

Compare defstar vs githut and see what are their differences.

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
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
defstar githut
5 54
38 935
- -
10.0 5.6
over 4 years ago about 1 month ago
Common Lisp JavaScript
GNU General Public License v3.0 only GNU Affero General Public License v3.0
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.

defstar

Posts with mentions or reviews of defstar. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-10-10.
  • Common Lisp: An Interactive Approach (1992) [pdf]
    7 projects | news.ycombinator.com | 10 Oct 2023
    there is also https://github.com/lisp-maintainers/defstar for providing more ergonomic type declarations inline in definitions

    And this is another thing I'm not sure how to explain, I thought CL is surely more verbose and ugly than python for small scripts, but maybe it's macros will make it cleaner for building large systems. But then when I started writing actual programs, even small programs without any of my own macros, I generally use about 30% less LoC than in python... I've thought about making sly/slime like support for python (built on ipython with autoreload extension) or ruby (with it's fairly new low-overhead debug gem). But at the end of the day support for these things will always be incomplete and a hack compared to CL where it was designed from the start to support it, they run 20-100x slower than CL, and imo their runtime metaprogramming is harder to reason about than CL which is mostly compile time metaprogramming. When I've had to dig into some CL library, which is a lot more often than in those languages because it has 10000x fewer users so of course I will be first to run into some issue, it has generally been easy to understand what is going on and fix it, compared to large codebases in other languages.

    Regarding "modern type-safe language", languages with expressive type systems, rust, ocaml, haskell, typescript, etc, can give really confusing type errors, when you get into generics and traits and more expressive stuff. I'm not convinced it's a better development experience than a dynamically typed languages where values have simple types, and when you get a type error you see the actual contents of the variable that is the wrong type and state of the program, at least in the case of CL where the stack isn't unwound on error and runtime is kind of compile-time as you're running all code as you write it. But mostly this sort of interactive development is very hard to implement in static languages, I'm not aware of any that does it. For example even in static langs like ocaml that have a repl through a bytecode interpreter, simple things don't work like say you pass some function as an event handler, and then update the function. As you passed efectively a function pointer to the old definition, rather than a symbol name like lisp, it will be calling the original function not the new version. But the main issue is that efficient staticly typed languages the type system is all at compile time, type information doesn't exist at runtime, which is great for performance, but means you don't get the ability to introspect on your running program like you do in CL and elixir, which personally I value more than full compile-time type checking.

    Would I like some new language or heavy modification of existing language runtime that provides the best of everything? of course, but I also realize that it's a huge amount of work and won't happen with 10 years, while I can have a nice experience hacking away in CL and emacs right now. And ultimately CL is an extremely flexible language and I think it'll be less work to build on CL than to provide a CL like runtime for some other language. For example projects really pushing the edge there is Coalton described above. While personally I prefer dynamicly typed for general application programming I think Coalton could be great for compilers, parsing some protocol, or writing some subparts of your program in. And vernacular (https://github.com/ruricolist/vernacular) which explores bringing racket's lang and macro system to CL. For more standard CL code, using extremely common and widely used libraries like alexandria, serapeum, trivia, etc, already makes CL into a fairly modern and ergonomic language to write.

  • Steel Bank Common Lisp
    9 projects | news.ycombinator.com | 30 Jun 2023
    > both are dynamic languages with types added later in?

    Common Lisp has always had types and type declarations (e.g. `the` in the hyperspec[1]) as it's part of the specification. It was not added later as far as I know.

    However, `declaim` and `declare` were left very underspecified so they tend to be very implementation-specific, though there are libraries that make types more portable[2][3].

    [1] http://www.lispworks.com/documentation/HyperSpec/Body/s_the....

    [2] https://github.com/lisp-maintainers/defstar

    [3] https://github.com/ruricolist/serapeum/blob/master/REFERENCE...

  • Visual type system?
    2 projects | /r/Common_Lisp | 17 Jan 2023
    Like defstar? https://github.com/lisp-maintainers/defstar Type declarations that you can place inside the defun. Also serapeum:-> (atop the defun). Or Coalton: https://github.com/coalton-lang/coalton/ But it's possible you'll feel much less a need for that in CL.
  • Defstar symbol comparison: contributing to old libraries
    1 project | /r/lisp | 13 Sep 2022
    Hi, if you plan to work on enhancing the library (glad to here!): you can fork the repository to your github username, decide that you will be able to maintain for the foreseeable future and ask Quicklisp to point defstrar to your repository. You can create a defstar org on github, so you could easily give push access to future maintainers. Or, you could ask for write access here: https://github.com/lisp-maintainers/defstar it's an un-official org that I created in the hope to maintain orphan projects collectively. You can send PRs or ask for push access. There is no current maintainer for this project, it is not pointed to by QL, it is only a Github mirror. Best,
  • Common Lisp Code Optimisation
    1 project | news.ycombinator.com | 7 Nov 2021
    agreed^^ there are macros and libraries to bring a nicer syntax (of course). Exple: https://github.com/lisp-maintainers/defstar

       (defun\* (sum -> real) ((a real) (b real))

githut

Posts with mentions or reviews of githut. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-02-04.
  • Include <Rules>
    2 projects | news.ycombinator.com | 4 Feb 2024
    This is the best measure I've found:

    https://madnight.github.io/githut/#/pushes/2023/4

    Unfortunately it doesn't have new projects, but it does seem like C++ peaked a couple of years ago and is starting to trend down. "Plummeting" is clearly an exaggeration though.

  • Fourteen Years of Go
    13 projects | news.ycombinator.com | 11 Nov 2023
    >There's a lot of misinformation, bad arguments and bad conclusions in this post. Let's pick it apart.

    No, there really isn't, but I had fun answering :-)

    > But, past isn't a guarantee of the future. It was stable before, but who's to say it will be in the future?

    Whos to say C will be stable tomorrow? Well, the fact that the C compiler is a standard, and has an official document outlining what a C compiler does. And go is the same.

    If anyone was to change that, all I have to do is check out an earlier version of this open source language, and use that. And since tons of code rely on this, that is what would happen.

    Languages don't become unstable because they suddenly change trajectory, they are unstable if feature upon feature is heaved upon them, along with codebases relying on these features, necessitating constantly keeping up to date with the language version.

    Go, explicitly, has a completely different design trajectory. And as a result, Go code that was written in Go 1.8 will still compile today.

    > Go has no standard

    Here is the official spec of the language: https://go.dev/ref/spec

    Which is a de-facto standard, even according to this listing: https://en.wikipedia.org/wiki/Comparison_of_programming_lang...

    Btw. if you look at the listing, MOST languages, including commonly used ones, don't have an international or national standard. Many don't even have a de-facto standard. Among them are many tried and battle tested languages.

    > and nobody will hold them responsible for the discrepancy.

    Anyone unhappy with the implementation is free to fork the project and take it in a different direction. He who writes the code makes the rules. If people are unhappy with that, they can fork, or use another language. And people seem to be very happy with the language: https://madnight.github.io/githut/#/pull_requests/2023/3

    > By who? How did you come to this conclusion? There's only evidence to the contrary of your argument.

    What evidence is there for the assumption that Go would vanish if Google lost interest?

    > This is demonstrably false.

    No, it is not, as demonstrated by the example I gave regarding C. The language didn't change much from C99, which itself wasn't that big a step away from ANSI-C. C99 was a quarter century ago, and C remains one of the most used languages in existence.

    > To further illustrate this point: today, versions of Python

    I am pretty sure I never used Python as an example for this. If you disagree, quote where I did.

    > In more broader terms, I have no idea why did you bring C into this argument.

    For a very simple reason: To show that languages that a language that is mostly feature-freezed, and so stable that I can run a modern compiler on decades-old unchanged code, and still get a runnable executable, can be, and are, incredibly successful. Go has been called "C for the 21st century", and for everything other than System-Programming, that statement holds true.

  • Ask HN: Why Did Python Win?
    3 projects | news.ycombinator.com | 29 Aug 2023
    fad - an intense and widely shared enthusiasm for something, especially one that is short-lived and without basis in the object's qualities; a craze.

    ---

    I don't think Ruby is a fad. The drop off Ruby had since early 2010s is dramatic, but it stabilized around 5% of all PRs on GH in the last few years:

    https://madnight.github.io/githut/#/pull_requests/2023/2

    It's still one of the most popular languages for web development.

  • GitHut: Discover GitHub metrics by programming language
    1 project | news.ycombinator.com | 18 Jul 2023
  • Ten Years of “Go: The Good, the Bad, and the Meh
    5 projects | news.ycombinator.com | 18 Jul 2023
    I would beg to differ.

    On Github[0], Go currently sits at #3 for pull request volume (C# is at 10), #3 for stars (C# is at 8), #6 for pushes (C# is at 10) and #6 for stars (C# is at 9). By each of those metrics, Go has a much more vibrant ecosystem than C#.

    [0]: https://madnight.github.io/githut/#/pull_requests/2023/2

  • Steel Bank Common Lisp
    9 projects | news.ycombinator.com | 30 Jun 2023
    One measure is git pushes on GitHub. By that measure[0], in Q1 2023, we have Emacs Lisp (2995 pushes) > Clojure (2135) > Scheme (1350) > Common Lisp (236) > Racket (below detection; latest in Q1 2022: 102).

    [0]: https://madnight.github.io/githut/

  • Sigils are an underappreciated programming technology
    2 projects | news.ycombinator.com | 29 May 2023
    > 20 years ago I might've agreed with you. But I do not think that PHP, BASIC and shell scripting are popular beginner languages in 2023.

    PHP and shell scripting are still massively used in 2023 (eg https://madnight.github.io/githut/#/pull_requests/2023/1). You have a point about BASIC but it was the de facto standard for computers at a time when people didn't have the web to quickly look up problems and thus learning to code was much harder. Yet we (in fact I) managed just fine.

    > Quotation marks and especially parentheses after function calls don't fit TFA's definition of a sigil because they aren't at the beginning of the word and (arguably only in the latter case) don't communicate meta-information about the word.

    I didn't say they are sigils. I said they're tokens. My point was that removing sigils doesn't remove meta-information encoded in magic characters:

    - You have `foobar()` where the braces denote (call the function rather than pass the function reference

    - "" == string which allows escaping and/or infixing vs '' which doesn't (other languages have different tokens for denoting string literals, like `` in Go)

    - # in C and C++ is a marco

    - // is a line comment in some languages. Others use #, or --

    - Some languages use any of the following for multi-line comments: ```, /* /, and even {} is used. Whereas it's an execution block in some other languages

    My point is you have to learn what all of these tokens mean regardless of whether they sit as a prefix or not. The that that they're a sigil doesn't change anything.

    The real complaint people are making here is about specific languages, like Perl, overloading sigils to do magical things. That is a valid complaint but, in my opinion, it's a complaint against overloading tokens rather than sigils specifically. Much like a complaint about operator overloading doesn't lead to the natural conclusion that all operators are bad.

    > don't communicate meta-information about the word.

    We need to be careful about our assumption about whether a token effectively communicates meta-information because while I do agree that some tokens are more intuitive than others, there is also a hell of a lot of learned behaviour involved as well. And it's really* hard to separate what is easier to understand from what we've just gotten so use to that we no longer give a second thought about.

    This is a massive problem whenever topics about code readability comes up :)

    > I'll agree with you that the line between sigils and general syntax/punctuation is a bit of a blurry one - where do you stop?

    shrugs...somewhere...? You can't really say there should be a hard line that a language designer shouldn't cross because it really depends on the purpose of that language. For example the language I'm currently working on makes heavy use of sigils but it also makes heavy use of barewords because it's primary use is in interactive shells. So stricter C-like strings and function braces would be painful in a read once write many environment (and I know this because that was my original language design -- and I hated using the shell with those constraints).

    In a REPL environment with heavy use of barewords, sigils add a lot to the readability of the code (and hence why Perl originally adopted sigils. Why AWK, Bash, Powershell, etc all use them, etc).

    However in lower level languages, those tokens can add noise. So they're generally only used to differentiate between passing values vs references.

    But this is a decision each language needs to make on a case by case basis and for each sigil.

    There also needs to be care not to overload sigils (like Perl does) because that can get super confusing super quick. If you cannot describe a sigil in one sentence, then it is probably worth reconsidering whether that sigil is adding more noise than legibility.

    > sing my definition above, I think wrapping strings in quotation marks is a clear win because it fits our widely-held shared understanding that quotation marks demarcate and group a sequence of words. Single and double quotes behaving differently is unintuitive for the same reason while not conferring a corresponding benefit on experts.

    Here lies the next problem for programming languages. For them to be useful, they need to be flexible. And as languages grow in age, experts in those languages keep asking for more and more features. Python is a great example of this:

    - ''

    - ""

    - ''' '''

    - """ """

    - f""

    ...and lots of Python developers cannot even agree on when to use single and double quotes!

    I tried to keep quoting simple in my own language but I ended up with three different ways to quote:

    - '' (string literals)

    - "" (strings with support for escaping and infixing)

    - %() (string nesting. For when you need a string within a string within a string. Doesn't come up often but useful for dynamic code. A contrived example might look like: `tmux -c %(sh -c %(echo %(hello world)))` (there are certainly better ways you could write that specific code but you get the kind of edge case I'm hinting at).

    As much as languages do need to be easy to learn, they shouldn't sacrifice usability in the process. So it is a constant balancing act trying to make something easy to learn, yet also powerful enough to actually have a practical use. Not to mention the constant push and pull between verbosity where some claim fewer characters (eg `fn` as a function keyword) improves readability because it declutters the screen from boilerplate, while others say terms like `function` are more readable because it is closer to executable pseudo-code. Ultimately you cannot please all of the people all of the time.

  • PYTHON vs OCTAVE for Matlab alternative
    3 projects | /r/math | 22 May 2023
    The official julia user developer survey for 2022 lists GitHub as the largest platform of people using julia which intuitively also seems fitting to me as it seems like the community is very pro "open code, open science". But checking the GitHub language trends (via https://madnight.github.io/githut/ and https://tjpalmer.github.io/languish/) you can see that Julia has been rather stagnant since 2019 w.r.t. some measures and only slowly growing w.r.t. others.
  • Githut 2.0
    1 project | news.ycombinator.com | 18 May 2023
  • The RedMonk Programming Language Rankings: January 2023
    2 projects | news.ycombinator.com | 16 May 2023
    It seems to me they made the same mistake that I did in my GitHub archive queries, they do not filter bot accounts. JavaScript, without filter, is on top 1 because of dependabot. If you filter all bots then Python is number 1, see: https://madnight.github.io/githut/#/pull_requests/2023/1

What are some alternatives?

When comparing defstar and githut you can also consider the following projects:

cerberus - Common Lisp Kerberos v5 implementation

TabNine - AI Code Completions

lparallel - Parallelism for Common Lisp

nushell - A new type of shell

quicklisp-client - Quicklisp client.

Pluto.jl - 🎈 Simple reactive notebooks for Julia

serapeum - Utilities beyond Alexandria

sdk - The Dart SDK, including the VM, dart2js, core libraries, and more.

vernacular - Module system for languages that compile to Common Lisp

flutterfire - 🔥 A collection of Firebase plugins for Flutter apps.

coalton - Coalton is an efficient, statically typed functional programming language that supercharges Common Lisp.

ts-node - TypeScript execution and REPL for node.js