BetterSPICE is a free SPICE circuit simulator

(bspicesim.com)

217 points | by zdw 13 hours ago

21 comments

  • roeles 2 minutes ago
    I would love to see a spice simulator that can simulate failure modes and their consequences (and subsequent failures).

    That would enable monte carlo simulation and estimation of reliability.

  • kalinkochnev 5 hours ago
    As someone who has really struggled understanding electronics and wanted good visuals, the post and comments are gold.
  • Scene_Cast2 2 hours ago
    Looks neat. I wonder how it compares to the other two similar tools in my toolbox - Qucs-s and falstad's circuitjs.
  • astahlx 11 hours ago
    I like it a lot and it would be an important addition to the agent loop. Hope the project will keep its pace up and find some contributors. It can definitely benefit from some better harness focusing on code quality. Still want good readable and well maintainable, for me but also for the agents.
    • arwidV 5 hours ago
      I am working on 1.1.0 right now. I'ts about half way, mainly some auditing and fixes. Then 1.2.0 will have some more features added. I am waiting mainly on feedback from people and the in-app bug reports.
  • Joel_Mckay 10 hours ago
    One may also download the upgraded LTSpice next generation, to use full granularity QSpice GPU simulation for free.

    https://www.qorvo.com/design-hub/calculators-simulation/qspi...

    A very nice tool if you like to learn about electronics, and want to avoid nonsense. =3

    • werediver 10 hours ago
      It's a pity QSPICE is Windows-only. LTspice also runs on macOS (not sure about Linux).
  • bvm 5 hours ago
    I know the homepage reeks of slop, but I encourage people to try this software.

    The MCP integration is _superb_, I'm running it on a moderately complex kicad design, and the interaction between HITL and agent is really impressive. Very inspirational desktop design.

    • arwidV 5 hours ago
      If i knew it would pick up this fast I woulda upgraded the homepage a bit more,lol. I have a few revisions of the website to make it less slop-y. Some stuff is over explained etc. I have pretty strict lint, but some stuff still goes through the gaps lol.
      • bityard 3 hours ago
        Protip: You can fix most of the sloppiness by just removing most of the text. Showing a screenshot is good, but then adding a caption that says, "parts list on the left, circuit in the middle" is just beyond useless.
    • gspr 3 hours ago
      Licensing conditions are a complete joke though. And that's not just because the author misleadingly calls this "open source", it's because they haven't even understood the licenses they've chosen.
  • hn_submit 10 hours ago
    The only thing I'm missing is a THD analyzer. Would it be feasible to add it?
    • arwidV 5 hours ago
      I will add it, its next feature on the list :)
  • vkaku 7 hours ago
    Oooh... Spicy!
  • runningmike 11 hours ago
    This title is misleading. This is not a valid osi open source license. Its Commons Clause. With a strange mix of agpl.

    But great software and great example of using AI to create a nice tool.

    • postalrat 1 hour ago
      When most of the source code is written by an LLM can it even have a license? If challenged it's probably public domain code.
    • arwidV 5 hours ago
      Its "basically" open-source. I just don't want people to take it an monetize it without modifying it at all and package it as their own. If they modify it enough and meaningfully change it then yeah they can sell it. But they can't just copy-paste, change some branding and images and sell it.
      • mort96 5 hours ago
        It's not "basically open source". It's source-available proprietary software.

        Which is fine. Just don't lie.

        • ChrisHasEntered 5 hours ago
          The source is available.

          You have confused open source with public domain or copyleft, which are a specific kind of open source called communism.

          • mort96 4 hours ago
            No, you have confused "open source" with "source available". They have never meant the same thing.

            Also, I believe you're confusing "public domain" with permissive licenses. Something under the MIT license is permissively licensed. Something under the GPL is copyleft licensed. Something under a license with the Commons Clause is proprietary source-available software. A work dedicated to the public domain is something else entirely and depends on jurisdiction, with many jurisdictions not even allowing a person to dedicate a work to the public domain. Things typically enter the public domain after some time has passed.

            Please don't speak so confidently on things you don't understand. At least have your chat bot fact check it for you before you post.

          • n3xyf 3 hours ago
            I know nothing and I must larp
          • blagie 4 hours ago
            > The source is available.

            > You have confused open source with public domain or copyleft, which are a specific kind of open source called communism.

            This is the most confused, ignorant comment I've read in a while.

            Go and educate yourself. Read the open source definition:

            https://opensource.org/osd

            It literally starts with "Open source doesn’t just mean access to the source code"

            There's about 2-4 hours of education you need in what open source is, what free software is, and how it works, why it's designed the way it is, and the history. I'd also read about communism, while you're at it, since you're also confused there.

            You don't even need to agree. You just don't want to appear an idiot in conversations.

      • medler 2 hours ago
        Speaking as the creator of many vibe-coded projects, I wouldn’t worry about someone monetizing your AI code. Anyone could prompt an AI with a paragraph-long description of what this thing is doing and generate something substantially similar without even looking at the code. And I don’t mean to denigrate the project, which looks very cool and which surely did take a lot of prompting work to create.
      • blagie 4 hours ago
        None of this is true. It's not basically open-source. And people can't sell it even if they modify it "enough."

        You don't understand your own license.

        The reaction you'll get ("Just don't lie" in the other comment) won't be uncommon, and is probably actively harmful to whatever goals you have for the project, which aren't well-articulated.

        This could be a nice teaching tool, but the license precludes it:

        - Try to pull it into Canvas? Not without spending a few grand on a lawyer.

        - Try to use it a tuition-charging course? Call a lawyer. That might be selling "consulting/ support services related to the Software," or fall under the "without limitation" clause.

        - Want to contribute? Call a lawyer to figure out what that means.

        That list goes on.

        Most people with a legal department won't touch this with a 10-foot-pole. Most people without a legal department, but with enough background in how the law works, also won't touch this without speaking to a lawyer first.

        And if you accept your first PR, the question is whether the license binds you (probably, "yes"), and you can't use it in any of those ways either! You've basically tied your own hands at that point.

        The reason we have mainstream licenses is:

        - Interoperability and network effects. All GPLv3/AGPLv3/permissive/etc. code can be used together.

        - Shared understanding. Everyone knows what CC-SA, GPL, MIT, etc. mean.

        - Extensive legal review. You have some of the best legal minds in the world (e.g. Moglen and Lessig) drafting these, in consulation with an army of advisors, and thinking through things like jurisdictional issues and other not-so-corner corner cases.

        This is a legal foot-gun.

        • kragen 1 hour ago
          > You don't understand your own license.

          Given that they are fraudulently claiming that the license is an open-source license, it would be unsurprising if they were making other fraudulent claims about the license, rather than failing to understand it.

          • blagie 57 minutes ago
            Hanlon's Razor applies: "Never attribute to malice that which is adequately explained by stupidity."

            If the license brought any sort of advantage to the author, or they might somehow brought benefit from it, I might agree. However, the license is clearly bad legal language.

            The best-case outcome for the author that someone researching the author on social media discovers that they did something dumb, and they lose a job or consulting gig. The worst-case outcome -- well, I can think of a half-dozen ways they might inadvertently expose themselves to legal liability.

            The best description in this thread so far is gspr's "It's a layercake of stupid :)"

            If you don't know what you're doing, don't try drafting your own legal language. The author should pick the AGPL, which will preclude the vast majority of the kinds of use the author is concerned about, while being legally vetted and, well, sane.

            Most commercial providers won't touch AGPL code with a 10-foot pole, so de facto, it does the same thing. Adding a trademark, as well as making full use of the power of AGPL section 7, gets it almost the rest of the way there.

            This is a time to educate, not attack.

        • gspr 3 hours ago
          Very much this.

          Here's another example of how terribly they're misunderstanding their own license. They write

          > Which text applies first: this Commons Clause condition limits the license below. Where the text of the GNU Affero General Public License (its preamble included) speaks of charging for copies, selling or charging a fee, that right is not granted for BetterSPICE.

          Yet the AGPL clearly states:

          > All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term.

          So, if the author insists that the code is "insane bespoke license + AGPL", then the recipient has the right to remove restrictions from the bespoke license.

          Completely moronic shitshow.

          • MrMorden 3 hours ago
            The licensing is even stupider than that. All of the above is accurate for human-produced code, but AI-produced code is uncopyrightable, and based on the text it appears that the code is 100% AI-produced. The prompts are copyrightable, but that doesn't make a difference.

            The end result is that none of this code has a copyright and it's public-domain, except for whichever parts Claude may have regurgitated verbatim from copyrighted training data. And those parts may have incompatible open-source licenses or even be proprietary.

            • blagie 46 minutes ago
              ... that's not quite how it works.

              First of all, we can talk about the US.

              In the US, machine-generated, including AI-generated, work is not copyrightable, but a lot of work is not purely LLM-generated, but LLM-assisted. If I give an AI a prompt:

              "Make a picture of a monkey"

              That's clearly not copyrightable. If I give a prompt:

              "Make a comic, with two monkeys playing ping-pong. In the first frame, a monkey says, 'Catch!' In the second frame, ...."

              I might hold the copyright to the script, while the visual choices of the AI might not be copyrightable. A lot of this has no case law yet, but I suspect the key question will be about where the creative contribution comes from. An LLM held on a short leash, where it translates ideas into the mechanics of code, is likely to produces something with a lot of human copyright, whereas one given a spec to implement might produce something with no or de minis copyright.

              Now the harder part: The world isn't the US. Every country's legal system has its own opinions here. The internet is global. If you screw this up, you might be facing a lawsuit in Zambezia, Zubrowka, Sokovia, Ishtar, or Montequinto.

            • gspr 2 hours ago
              Of course. It's a layercake of stupid :)
      • kragen 1 hour ago
        Being "basically open-source" would allow anyone to take it and monetize it without modifying it at all and package it as their own, as long as they acknowledge you. "Open source" is a term that was invented specifically to market free software whose licensing strongly protects its users' freedom to modify and repackage it, because they found that the term "free software" was a problem for marketing to businesses.

        By calling it "open-source", you are attempting to free-ride on the good will that the resulting movement has accrued over the ensuing 29 years, and deceive potential users into believing that their freedom is protected by open-source licensing, when in fact you are deceptively sneaking non-open-source terms into the purported copyright license.

        You are lying in an effort to commit fraud, and you should stop immediately.

      • samatman 33 minutes ago
        I guess it depends on if you care about the success of your project.

        If you do, this is exceptionally stupid behavior. No sane person will do more than kick the tires on this, ever. Every place it's posted, the discussion will be drowned out by people (rightfully) dragging the license. Any lawyer shown this code will advise their client to kill it with fire. The ill will you're generating will follow you around until you give up.

        But if you don't care about the success of your project, well. I don't understand what you're doing. But I suppose then, it doesn't matter.

        You're optimizing for the wrong thing here. Please listen to me: this is existential for the future of your project. Pick a normal license.

    • blagie 5 hours ago
      To me, this is the make-or-break. The ironically-named Commons Clause license prevents a license; it means this can't reasonably integrate with much of anything. It's license-incompatible with the universe, with people wanting to make external contributions, or with anything I'd want to develop integrating it.
  • charan345 1 hour ago
    [dead]
  • mdayan 6 hours ago
    [dead]
  • kennywinker 9 hours ago
    Seems like A vibe coded ripoff of falstad's circuitjs... they didn't even bother to change the look, just made the whole thing horribly cluttered and slopified.

    Just use https://www.falstad.com/circuit/circuitjs.html

    • Lerc 8 hours ago
      Looking at the repos they don't seem architecturally similar.

      At a glance the look seems the same as everycircuit. CircuitJs has quite a few user interface eccentricities.

  • dionyziz 11 hours ago
    You passed on the opportunity to call it SPICIER?
    • aeve890 4 hours ago
      This is the kind of things llms would never come up with.
  • lopotubez 2 hours ago
    Was excited to see a new electronics tool, but I dislike this dark-pattern behavior of claiming "free, open source" making people think it is FOSS.

    Thankfully this comment section already noticed that.

  • bemtevi 5 hours ago
    I just avoid projects that are vibe-coded like this. Is it because they're not useful? No. Is it because they could have security flaws? No. It's because, what's even the point of supporting a world that just spends endless energy on clones of clones of clones. It seems so very disrespectful to support a new technology that uses so much energy when we've already entrenched so many inefficient technologies that are hardly improving the world at all.

    Plus, there's clearly very little human effort involved here, and who knows if these projects will be maintained? What's the point?

    • arwidV 5 hours ago
      Dude, that's fine that's your right, but like if you think there is no effort on this i spend so much effort on this that i barely sleep, its just a different type of effort, i am fighting decisions, ui/ux choices, structural choices, wording choices, functional choices rather then fighting a function for not compling.
      • bemtevi 5 hours ago
        If you barely sleep then maybe AI is an addiction and you should just do something else because that's really not healthy.
        • blagie 4 hours ago
          It depends on how long it goes on for.

          I spent 2 months like that when Fable came out, and then burned out. It was fun for a while. I learned a lot. It wasn't unhealthy.

          • bemtevi 4 hours ago
            Everyone says they've learned a lot. But I wonder if that is true and if that knowledge will even stick or go anywhere.

            I think it's more likely you're just justifying it after the fact with some nebulous statement about learning when in reality it was just like gambling....which might teach a little about probabilities.

            • blagie 3 hours ago
              My experience is that in any experience, there is a rapid initial learning curve, and then diminishing returns.

              I feel like those two months gave that rapid initial learning curve, but if I kept it up much longer, I'd get pretty dumb long-term. At least at what I was doing.

              I can see other activities which would lead to a longer or shorter learning curve, so that's a comment about me and what I was doing -- not generalizable. The generalizable comment is to try most things for a little bit, where "little bit" might be a 1-hour class, or a 2-year intensive dive.

              The knowledge definitely does inform how I do things now.

      • gspr 3 hours ago
        Poor you. Maybe have your slopmachine do that too then?
  • bowsamic 10 hours ago
    At least write the stuff on your landing page by hand. This is intensely and offputtingly LLM written
    • crabmusket 8 hours ago
      It feels too easy to criticise AI web design, and I know it's frowned upon in HN culture. But the new ways that sites look uncanny now is fascinating to me.

      Like in this page, the bright and bolded "5,767" and de-emphasized context is just such a weird little tic. Like someone who doesn't know what the sentence is for, but knows it needs to have emphasis on one big number.

      They at least changed the colour scheme away from Claude Orange, but structurally, it's pure slop.

  • excannuk 5 hours ago
    A glance at the landing page and the AI slop glare had me hitting the back button.

    Its the same feeling Ive gotten the few times Ive entered a casino - the neon lights triggering too many cheap dopamine.

  • pelasaco 8 hours ago
    Destroying small SaaS one vibe coding session at a time...
  • AIShill101 12 hours ago
    Hmm, the website and GitHub repo trigger my ai-slop filter unfortunately.

    Tho I really was looking for a nice circuitsim.

    • ViktorEE 5 hours ago
      I've just added real time simulation to PCBJam ( https://www.pcbjam.com/ ). It's just KiCad with Ngspice, and a layer above it for visuals. Here's a video about it: https://www.youtube.com/watch?v=AQ_pAV7nnvI As you can see you can do thermal simulations, and run an esp32 ( or Arduino Uno ). It's quite early, we'll improve it a ton in the future ( real time audio simulation, more MCUs, more components ). It's aight as it is I think.
    • kennywinker 9 hours ago
      • konart 4 hours ago
      • larodi 8 hours ago
        while this is perhaps hand-weaved, it is definitely not better looking or more complete than the vibe thing.
        • delusional 7 hours ago
          Doesn't matter to me. Personally, I don't want to expose my brain to slop. I don't care if the product is better.
          • larodi 21 minutes ago
            one's personal choice reg. how exactly are things produced does not necessarily correctly conclude/infer their objective qualities, perhaps you would agree?
    • pbmonster 11 hours ago
      QUCS Studio has a python API. It's so ancient, not only is it certainly not slop, it comes with years of FOSS drama pre-build.

      No, but seriously. QUCS works for most projects, it's pretty impressive.

      • Joel_Mckay 10 hours ago
        The key feature in QUCS, is using NanoVNA or LiteVNA64 to model actual stock components. It can often hit below 12% error on the first try if done right. =3
    • noah32 12 hours ago
      I cooked up this slop a little while ago. https://turbospice.net/ It's still slop and probably not as good but maybe less chaotic looking
    • johnwheeler 12 hours ago
      [flagged]
      • Haven880 11 hours ago
        AI wrote significantly better. But not so if it is system architecture type of multi component software. But if the setup is in a continous loop, then it blows thru what human can do in that amount of time. This is already well known in senior engineers circle in big tech. You can just look at vectorcraft. Hard to find anyone with 20 years experience to manually code that out even if given them 5 years to do so.
      • gobdovan 12 hours ago
        Could you show some AI code that you consider better than human code + in which way is it better?
        • Haven880 11 hours ago
          Vectorcraft? You have to factor in time contraint. If you use an enginer working on the software for 20 years and vs a 1mth old software AI generated, it isnt a fair comparison. Or if one work in cybersec doing software analysis, no humans able to code better than AI when it comes to exploit+loop.
          • gobdovan 11 hours ago
            Is Vectorcraft considered better than Illustrator? I like the cybersec one, because if AI finds same vuln as human, if AI found it faster AI is just better. There's not much difference in how the exploit code looks like or how performant it is. Probably why AI seems so nice for math proofs as well.
          • cwillu 11 hours ago
            > You have to factor in time contraint.

            You really don't.

        • rurban 11 hours ago
          rurban/rcc is definitely better in the target features, than similar human code. The goal was to be faster in compilation, and having less bugs than gcc and clang
          • gobdovan 11 hours ago
            But aren't you responsible for the target features? Is there a particular piece of code or algorithm the AI came up with that you consider better than what you or another competent programmer would have written?
            • rurban 10 hours ago
              Yes, I favored correctness over execution speed.

              I also favored compile-time speed, because I couldn't compile my own huge library anymore on a 32MB laptop with gcc or clang, only with tcc, which has huge holes still.

              Special pieces:

              builtin preprocessor tokenizes only once, and interns all the identifiers. So not much strcmp needed later. And -E synthesizes the code from the tokens.

              Much simplier and faster codegen without the optimizer. Heuristic optimizer, compared to the exact cost-based optimizer in the huge compilers. Like, much easier inliner. No auto-vectorizer, the user can vector his code very easily by himself. No silent dead-code removal, which is safety critical.

              Compile-time conversion of large sparse switch cases to perfect hashes is unique. The AI wouldn't have come to it by itself, it needed to be guided.

              The test runner is much better and much faster than anything else. I hate waiting for regression test results. Gcc is perf horror, clang way overarchitectured.

              Simple -g avoids libdwarf overhead.

              • gobdovan 10 hours ago
                Thanks for the elaborate response. It seems AI is better at building software for small user base. Clang may be better for general usecases, but AI made it possible to build software around your specific preferences without spending years developing it.
                • rurban 9 hours ago
                  Nonsense. AI is better at building software in general as long as you follow proper software development principles.

                  AI slop coders, like ccc, dont do that, so their code sucks. They cannot even maintain it.

                  gcc decided against AI, so they are outpaced and are doomed. More and more bugs creeping on, it will only get worse.

                  • nitros 8 hours ago
                    The rate of bugs creeping in to gcc is going to increase? Since GCC is not allowing AI contributions, that should just mean that the development trajectory continues somewhat unchanged from if LLMs didn't exist. Is that a problem?
                    • rurban 7 hours ago
                      The rate of gcc bugs is increasing, and they are not favoring fixing them. Their only priority is to add more features and more bugs. It is a big problem. clang is not doing better, even worse. They get even more bigger, with more bugs than gcc already. Perf also got much worse.
        • johnwheeler 11 hours ago
          [flagged]
          • tomhow 11 hours ago
            Please stop with the sneering and swipes. HN is for curious conversation, not whatever this is. https://news.ycombinator.com/newsguidelines.html
            • johnwheeler 10 hours ago
              Sorry. Although I can argue that calling someone's hard work AI slop isn't cool either.
              • tomhow 9 hours ago
                We don’t like shallow dismissals, and they’re against the guidelines too. But it’s important for project creators to present their work in a way that engenders respect from the audience when asking for their time and attention (and maybe money).

                I haven’t looked deeply into at this project so I don’t know if the critique is fair or valid. But on HN we are awash with projects that haven’t had much time or effort put into building them, and it’s understandable that a lot of people are succumbing to some fatigue.

                Really we want everyone to be kind and respectful, but that includes project creators being respectful towards the audience.

          • gobdovan 11 hours ago
            It was and still is a genuine question.
  • cosmicgbp 11 hours ago
    [dead]
  • hizlikovboy27 11 hours ago
    [dead]