BetterSPICE is a free SPICE circuit simulator

(bspicesim.com)

250 points | by zdw 2 days ago ago

87 comments

  • bgnn a day ago ago

    I thought this is a better general purpose spice, but it looks like a hobbyist grade simoftware with a very unpractical GUI. Still waiting for something to kill Cadence's Spectre.

    • arwidV a day ago ago

      I don't understand why you think that. It has more features then every other fully fledged SPICE sim. Tell me what you think is missing and what its doing wrong and I will work on implementing those features.

    • bsder a day ago ago

      In what ways does Xyce fall down relative to Spectre? https://xyce.sandia.gov/

    • foohis a day ago ago

      Spectre is about 100x more complex and detailed than this. It will take a lot more time and resources for even vibe-coders to replace it and other commercial EDA tools.

      • bgnn a day ago ago

        Funny thing is, it's mainly written by one person, Ken Kundert. At least the core.

        • dan10400 19 hours ago ago

          It was definitely not 'mainly written' by one person, even just the core.

  • roeles a day ago 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.

    • arwidV a day ago ago

      Good idea, putting it on the to-do list, if you got any more details on this ideal would love to hear it.

      I already have monte carlo and tolerances, but this more "intense" failure mode seems like good idea.

      • roeles 5 hours ago ago

        I would like to be able to simulate the circuit not only with a normal model of the components, but also with their components in a failure mode. Where these are not known I would use MIL-STD 217. For each component keep track of its current state and the probability of each failure mode (may depend on the circumstances, for example voltage).

    • bgnn a day ago ago

      Wgat do you mean by this? TDDB? Latch-up?

      It's not even possible to predict some of these failure modes, because of the scarcity of the events and lack of good models.

      • roeles a day ago ago

        Ideally I would want to estimate what the probability is that some property holds.

        For example: I measure the voltage drop through a current shunt on the high side of a load, using an IC. What is the probability (given all the failure modes of the components used) that the load does not receive power?

        It's not about being perfect. It's about being able to estimate. We can always expand and improve the component models.

        • wildzzz a day ago ago

          There's enough data from the vendor to probably give you a good idea but their MTBFs are all proprietary and you're gonna need to sweettalk them into letting you sign an NDA to have that. Of course you're welcome to just make assumptions and have it act accordingly. Make up what you think might be a realistic MTBF and apply that to a series 0ohm resistor drastically changes value when the RNG says today is the day.

          Or, since trying to model probabilities in SPICE means massive sim times to produce meaningful results, just step the value of the resistor between 0 and 1Tohm (and any interesteing values between) to mimic failure states of the downstream part. For AC stuff, you can mess with shitty transmission lines or caps doing weird stuff. Lots of fun, it's like circuit bending in spice. It's not going to match perfectly to real world results but it's close enough to at least see where you can shore up your failure modes.

          • roeles 7 hours ago ago

            Better to be conservative than too optimistic. MIL-STD-217 is a nice and pessimistic source.

        • 0_____0 a day ago ago

          Like an auto-FMEA to predict likelihood?

          • roeles a day ago ago

            Yeah I guess it's similar to that.

  • kalinkochnev a day ago ago

    As someone who has really struggled understanding electronics and wanted good visuals, the post and comments are gold.

  • Scene_Cast2 a day ago ago

    Looks neat. I wonder how it compares to the other two similar tools in my toolbox - Qucs-s and falstad's circuitjs.

  • astahlx 2 days ago 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 a day ago 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.

      • alex7o a day ago ago

        Man one thing I would love you to fix is the fact that Analog devices parts can only be loaded in lt-spice and TI ones in pspice. And I want to mix and match I don't want to only use analog devices or Texas instruments ones.

        • arwidV a day ago ago

          Plain, unencrypted Analog Devices and TI models run in the desktop app. For encrypted models of TiSPICE if you have PSpice for TI you can simulate them in BetterSPICE directly with the install, haven't done LTspice yet encrypted models yet... i really do not want to break encryptions and maybe I will integrate if you have LTspice installed to run them in the same way.

  • Joel_Mckay 2 days ago 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 2 days ago ago

      It's a pity QSPICE is Windows-only. LTspice also runs on macOS (not sure about Linux).

  • bvm a day ago 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 a day ago 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 a day ago 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.

        • arwidV a day ago ago

          I worked in Marketing for a long time, i guess its a force of habit for over-selling stuff lol. I will clean it up a bit. I just wanted to get the most info possible on the main page so people get an idea without having to jump through like 5 pages.

    • gspr a day ago 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 2 days ago ago

    The only thing I'm missing is a THD analyzer. Would it be feasible to add it?

    • arwidV a day ago ago

      I will add it, its next feature on the list :)

  • runningmike 2 days ago 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 a day ago 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 a day ago 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 a day ago ago

        It's not "basically open source". It's source-available proprietary software.

        Which is fine. Just don't lie.

        • tagrun a day ago ago

          While Commons Clause does not fit the "OSI open source" definition (the rebranding of free software for corporate adoption, which is not equal to "open source", and is a topic of debate on its own, as many people didn't like how Bruce Perens, Eric Raymond and others forcefully declared their interpretation of "open source" as THE "open source" definition back in ~1998, in a way that conveniently encapsulated + distinguished them from Richard Stallman and FSF, and cheered by corporate shills & backers and everyone else who saw open source mainly as a tool to profit, managing to sideline Stallman) or copyleft, it is definitely not Proprietary Software: https://en.wikipedia.org/wiki/Proprietary_software

          As anyone in their 40+s here can recall, the concept of "open source" existed long before OSI and the criteria they defined; the freedoms and licensing, which cover the question of whether you could commercialize someone else's open-source code, were orthogonal concepts to open source. That is why Stallman had to introduce free software and GPL in the first place, and that is also partially why he has been critical of the OSI.

          • blagie 5 hours ago ago

            This is incorrect.

            The concept of "open source" did not exist prior to OSI.

            While OSI / open source was created to "conveniently... sideline Stallman" and "as a tool to profit," it was created in the late nineties. They coined the term precisely so they could define it. The open source definition is THE open source definition. The term didn't exist before then.

            You can't redefine it, any more than you can redefine Microsoft's "Shared Source Initiative."

            People invent terms for specific reasons, good and bad, but if they invent a term, they get to control it. Open source is open source is open source.

            And "not proprietary" does not equal "open source." There are many models. Commons Clause does not fit any free software or open-source definition.

            And Commons Clause + AGPL, as used here, is just a legal contradiction:

            > Software under the Commons Clause cannot typically be combined with software under copyleft licenses like GPL

            https://fossa.com/glossary/commons-clause/

        • ChrisHasEntered a day ago 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 a day ago 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.

          • blagie a day ago 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.

          • n3xyf a day ago ago

            I know nothing and I must larp

      • medler a day ago 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 a day ago 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 a day ago 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 a day ago 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 a day ago 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 a day ago 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 a day ago 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 a day ago ago

                I'm not arguing against the point you're making about copyrightability. You're probably right.

                But I struggle to see how the status quo is sustainable if there's a gadget you can point at something and say "make me me something like that" and not be incumbered by that something's copyright.

                • blagie a day ago ago

                  That's exactly what's happening to an AGPL tool I wrote. A company pirated it -- same tool, minor code changes, name stripped out, copyright stripped out, renamed.

                  After 6 months of violation letters, they decided to come into "compliance" by having an LLM clone it.

                  Feels dirty. Took all the fun out of the project. It's a big-fish-in-small-pond kind of situation, so all sorts of users are confused, mislead, and there's all sorts of other fraud going on (ergo, "compliance" in quotes).

                  But very little in the status quo feels sustainable. Right now, capital beats labor, and education is being massively devalued. Either we're heading for a communist utopia, mass starvation, AI takeover, or, probably, something completely different. No one knows.

                  • gspr 13 hours ago ago

                    Aye. And when someone on this site points out how unfair the process that happened to you is, they'll say we've misunderstood the hacker spirit, and that we finally have a future where everything is in everyone's hands.

                    You know, I'd almost agree. If it weren't for the fact that it's happening in a wildly asymmetric way!!! Why do people think the GTA6 recompilers are hiding in secrecy? How do they think Disney would react if you had an LLM watch their movie and "make" an "inspired" "recreation"? Of course you'd be sued out of oblivion!

                    So no, we don't have the hacker's dream. We have a nightmare in which our best defensive measures (copyleft licenses) are being rendered ineffective, and where anything with visible source written by the little guy will be cloned by the big guys, with the reverse process blocked.

                    This is not utopia. It's the undoing of four decades of progress. I wanna scream out of frustration that people can't fucking see this!

                    I'm beginning to think we'll need a EULA-like defensive tool. It makes me extremely sad, but maybe FOSS needs to curtail one freedom and ban ingesting of the code into an LLM. It's draconian, but whatever we have now is a path to oblivion.

                    • blagie 11 hours ago ago

                      I actually wouldn't feel bad about it, if not for the financial aspect:

                      * As a free software author, I have a $100/month plan on OpenAI and on Anthropic

                      * The sleazy competitor has millions of dollars in federal grant funding, likely based on fraud, which means once the tooling for someone non-technical is there, they'll be able to run who swarms of agents.

                      In January, non-technical person + agent was a non-starter. Today, they can build things which kind of don't work, but good enough to fake it for demos. In another 6 months, I'm probably screwed. Especially given the LLMs are training on the logic going into my code.

                      If this was available to everyone on an equal basis, I wouldn't mind. Copyright could, effectively, go away as a relic of the past. It's a social construct which didn't exist prior to 1500, was originally pragmatically designed to "promote technological progress," and began to be treated as an ethical thing only decades ago, based on aggressive RIAA/MPAA/BSA campaigns targeting grade school kids.

                      Promoting technological progress is no longer the problem -- indeed, today, many more people are asking how we slow it down than how we speed it up further.

            • gspr a day ago ago

              Of course. It's a layercake of stupid :)

      • kragen a day ago 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 a day ago 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 a day ago 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.

  • kennywinker 2 days ago 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 2 days ago 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 2 days ago ago

    You passed on the opportunity to call it SPICIER?

    • aeve890 a day ago ago

      This is the kind of things llms would never come up with.

  • lopotubez a day ago 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.

  • bowsamic 2 days ago ago

    At least write the stuff on your landing page by hand. This is intensely and offputtingly LLM written

    • crabmusket 2 days ago 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.

  • pelasaco 2 days ago ago

    Destroying small SaaS one vibe coding session at a time...

  • bemtevi a day ago 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 a day ago 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 a day ago 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 a day ago 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 a day ago 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 a day ago 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 a day ago ago

        Poor you. Maybe have your slopmachine do that too then?

  • excannuk a day ago 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.

  • AIShill101 2 days ago ago

    Hmm, the website and GitHub repo trigger my ai-slop filter unfortunately.

    Tho I really was looking for a nice circuitsim.

    • ViktorEE a day ago 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 2 days ago ago
      • konart a day ago ago
      • larodi 2 days ago ago

        while this is perhaps hand-weaved, it is definitely not better looking or more complete than the vibe thing.

        • delusional a day ago 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 a day ago ago

            one's personal choice reg. how exactly are things produced does not necessarily correctly conclude/infer their objective qualities, perhaps you would agree?

            • delusional a day ago ago

              I would argue that how something is produced is an "objective quality".

            • kennywinker a day ago ago

              It’s subjectively like looking at a casino floor.

    • pbmonster 2 days ago 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 2 days ago 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 2 days ago 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

  • vkaku a day ago ago

    Oooh... Spicy!