Hosting a website on a disposable vape

(bogdanthegeek.github.io)

479 points | by dmazin 3 hours ago

32 comments

  • SXX 1 hour ago
    Talking of cheap and powerful devices one can also look at Chinese UZ801 4G LTE (Qualcomm MSM8916) dongles. They cost like only $4-5 and pack quite impressive HW: 4GB eMMC, 512MB RAM, actual 4G modem sometimes with 2 sim switching support. Since it's actually old Android SOC there is even GPU and GPS in there. And a lot of work was already done on supporting them:

    https://wiki.postmarketos.org/wiki/Zhihe_series_LTE_dongles_...

    https://github.com/OpenStick/OpenStick

    So yeah if you looking for hardware platform for weird homelab projects that's can be it.

    • happyhardcore 53 minutes ago
      I've found [1] to be the best guide for getting started with them; you need to make a copy of the firmware partitions that you re-flash after installing Linux onto it in order to get the 4G modem working. It's honestly absurd how much you're getting for a fiver with it; add a power bank (or make your own from scavenged vape batteries in the spirit of this post) and you have a full Linux machine with WiFi and 4G that can work almost anywhere.

      [1] https://wvthoog.nl/openstick/

      • motorest 41 minutes ago
        What an interesting gadget! It looks like it has most of the features of an Orange Pi Zero, but at around 1/5th of the price.
        • sitzkrieg 33 minutes ago
          it's almost like everything matching the pi footprint is severely overpriced!
    • user_7832 14 minutes ago
      > Qualcomm MSM8916

      Well hullo there, turns out that's my old mate, the Snapdragon 410! Quite an unexpected surprise!

      And funnily in retrospect, my Moto G3 from 2015 (which I still occasionally use for whatsapp!) has the exact same processor, and turns out base android (7) is (un?)surprisingly efficient when you're not doing much! I totally believe you could get a lightweight linux distro going on; I'm more impressed by such an old (and mobile!) chipset still having some sort of vestigial support!

      (Fun fact, iirc this was one of the first processors to get 64 bit support for android but motorola wasn't able to port it over in time for the launch. Hence it runs 32 bit android instead!)

    • e145bc455f1 20 minutes ago
      Where do i get a MSM8916 board for commercial usage at low volumes(1k)?
  • x187463 2 hours ago
    Re-using this sort of device is super cool. I can imagine a post-apocalyptic scenario where a city is run on a hodgepodge of random computing devices like this.

    I will say, though, disposable vapes with microcontrollers inside (and even full games and screens from recent reporting) are an egregious source of e-waste. Many layers of stupid are present here.

    • patapong 1 hour ago
      Another example: One-time covid tests with a microcontroller, optical sensor to read the result and bluetooth to connect to a phone to display the results. Previous discussion here: https://news.ycombinator.com/item?id=29698887
    • beAbU 2 hours ago
      I've been aware about the perfectly reusable lithium batteries inside these disposable vapes, which is egregious enough.

      But the one in the FTA comes with a full fat microcontroller and USB-C connector! I'm not clear if these connectors are accessible outside or if you need to break open the packaging before being able to get to it.

      Like you said: "Many layers of stupid are present here"

      All that hardware must surely be worth more than half the value of the actual product!

      • rglullis 1 hour ago
        Between (a) component that costs tens of cents to mass produce and can be bought off the shelf and is reusable vs (b) component that needs actual experienced electronics engineers working on a single-use design that can not be repurposed later, I think we'd see that (a) might end up being less wasteful.
        • afiori 1 hour ago
          > can not be repurposed later

          whether it can be repurposed is worth little in being wasteful if >99% go to the landfill.

          > I think we'd see that (a) might end up being less wasteful.

          Monetarily? sure. Environmentally? unlikely

          • jayd16 1 hour ago
            It's not so much that 99% go to the landfill, but this product does. Other products that use the same parts might be more reusable.

            The point is that, most likely, the controller existed before this vape. Buying an off the shelf part can be cheaper than trying to bring up some custom part, both in cost and possibly in overall resources.

        • dijit 1 hour ago
          I don't follow the logic.

          Because humans are expensive? Or because we can maybe re-use the components if an (expensive) human comes and retrieves the components?

          Sorry for being dumb here.

    • palata 1 hour ago
      The fact that selling such a thing is profitable means that we lack regulations somewhere.
      • gwbas1c 12 minutes ago
        No, it means computing has gotten so %$#@ cheap that it's cheaper to just cobble together cheap parts instead of spending the money to design a purposed device.
      • ramesh31 1 hour ago
        >The fact that selling such a thing is profitable means that we lack regulations somewhere.

        It's the exact opposite. Tobacco is so heavily regulated and taxed that these become profitable. If cigarettes were 3-4$ a pack (which they would be without sin taxes and regulatory overhead), the vape market would come down as well and there's no way these could be profitable. As it is, they retail around $20 and contain the same nicotine as multiple $10 packs of cigarettes.

        • rebolek 19 minutes ago
          The regulation was written in time when there were no such devices. Are they "healthier" (less damaging) for the user? If yes, let's tax them lower. Are they less damaging for whole population? Considering the e-waste, I guess not, but it's not up to me to decide. If they aren't, they shouldn't be taxed higher that cigs, if yes, let's change the regulation.
      • spacephysics 50 minutes ago
        The fact something is profitable (even vices) does not mean it requires regulations, unless the regulation in mind is direct or indirect cap on profit margins?
        • 0xffff2 39 minutes ago
          The missing regulation is some kind of tax or other disincentive against e-waste. I believe the premise of the GP is that such things can only be profitable if we chose to ignore their environmental impact.
        • strbean 10 minutes ago
          I think it's a lack of regulation to prevent negative externalities. Particularly with respect to waste management / product lifecycle.
    • kilroy123 1 hour ago
      • amelius 49 minutes ago
        How do I build a 6502 from just the elements?
        • vdupras 39 minutes ago
          You begin by making a pen "from just the elements", then work your way up to there.

          In other words, it's a huge challenge, but 6502 is closer, in complexity, to the pen than to the, say, AMD Ryzen.

          But the primary idea behind Collapse OS isn't to run from 6502 built from the ground up (although it partly is), but to run from frankenstein cobbled up machines made from scavenged parts.

          • mm263 11 minutes ago
            If I scavenge any machine today, how likely would I be to find a 6502 vs something more modern? I’d argue that some people might have a NES at home and one could get a 2A03 from it, but in a hypothetical scenario where I need to scavenge some computational power, I’d find an Android phone
            • vdupras 1 minute ago
              You're much more likely to stumble one something more modern, but that modern something is also much less repairable. It's great if it works and if it can run Linux or Dusk OS, but when it can't, you're out of luck.

              With a 6502 or other such CPU, the machines you scavenge them from are much more repairable and adaptable. You can use those components like lego blocks. It breaks? either repair it or strip the working parts to use in another frankenstein computer.

          • amelius 12 minutes ago
            OK. It would be nice though if Collapse OS contained tools to build an AMD Ryzen.
      • robterrell 1 hour ago
        holy crap, what a rabbit hole you sent me down.
    • hamomrye34 51 minutes ago
      > "A merry little surge of electricity piped by automatic alarm from the mood organ beside his bed awakened Rick Deckard."

      > Dick writes of the IoT being a source of vast-artificial-living-systems functioning on collective compute.

    • Mistletoe 2 hours ago
      Will the Butlerian Jihad find all the vapes?
      • ffsm8 2 hours ago
        It sometimes surprises me how the dune series was created out of the culture of the Muslim Faith (and he wasn't even coy about it, he straight up said so back when it was published) - with super obvious tells like literally calling the war against machines a "jihad", which is the word Muslims call their holy war against non believers and more obsessively woke people haven't jumped on it decrying "Muslim phobia!1" whenever it's referenced.
        • i80and 1 hour ago
          This is an exceedingly strange comment -- you made up a silly thing to get upset about, and are making fun of people who aren't upset about the thing, because you think it's the sort of thing they would be upset about, even though it isn't and you say as much?

          This feels like a whole new category of straw man.

          • jeej 1 hour ago
            "thinking of inventing a new type of person to get mad at on here. maybe people who carry too many keys around.. i dont know yet"

            -Dril

        • Findecanor 1 hour ago
          The word "jihad" has a wider meaning than "holy war". It would better be translated into "worthy struggle" — with "worthy" being very subjective.

          Islam is in fact the largest religion (by worshippers) in the world today, so Frank Herbert's assumption that a culture derived from it would be dominant in a future society is just extrapolation.

          • kpil 1 hour ago
            I think the current estimate is that there are almost a half a billion more Christians than Muslims (in 2025.)

            One reason is that the number of Christians in Sub-Saharan Africa is growing. But extrapolating the trends, yes Islam will probably become the largest religion in the coming decades.

            Or at least maybe - looking at birth rates, it seems as second generation muslim immigrants to Western countries have even lower birth rates than the native population. That might happen also in regions say like Pakistan and Indonesia and other fast growing regions, depending on economical or other changes.

          • ffsm8 1 hour ago
            > Islam is in fact the largest religion (by worshippers) in the world today, so Frank Herbert's assumption that a culture derived from it would be dominant in a future society is just extrapolation

            Fyi,

            > Dune is a 1965 epic science fiction novel by American author Frank Herber

            The distinction you're making wrt Jihad is also super modern and did not apply back then

        • int_19h 8 minutes ago
          There are many discussions on this exact topic online.

          TL;DR: while Dune has many references to various concepts coming from Islamic societies throughout, the Fremen are the obvious stand-in for Arabs specifically, and so get the most attention. And, in the context of the first book at least, Fremen are the "good guys" in many ways - if you reframe it in modern terms, they are the natives fighting against a colonial empire that subjugates them in order to extract a valuable resource from their lands, and then on top of that there's also the more subtle ecological angle.

        • staplers 1 hour ago

            obsessively woke people
          
          Because most "woke" stuff is made up or blown out of proportion by people on the internet. One person might do one thing and the video/meme goes viral and people eat up the story like its some movement
        • zknow 2 hours ago
          Really? I thought that it was kind of a ecumenist religion that included themes from many religions.
          • overfeed 1 hour ago
            I hope gp goes on a tear about the Orange Catholic Bible next, and how outrageous its non-subtle references are.
          • NemoNobody 1 hour ago
            It is.
          • ffsm8 1 hour ago
            not really, pretty old overview on it - but kept up to date it seems (current references to interviews)

            https://baheyeldin.com/literature/arabic-and-islamic-themes-...

            its true that the concept of a _holy war_ isnt unique to the muslim faith though. I never claimed that either however.

            It's slightly surprising to me how few people seem to be aware of that in HN. Was expecting the general readership here to be a little less obsessively righteous and uninformed on a topic like this, but ymmv I guess

    • spicyusername 1 hour ago
      It's a shame negative externalities like this are basically impossible to include in the up-front price.
      • palata 1 hour ago
        I feel like a law saying "don't put electronics in disposable products" would do the job.
        • Someone1234 1 hour ago
          What about Smoke Detectors, since they too are a disposable electronic?
          • x187463 1 hour ago
            You throw away your smoke detector? Just replace the battery.

            My guy is out here pulling off the whole thing and tossing it in the trash.

            • Someone1234 45 minutes ago
              Yes, Smoke Alarms should be thrown away. The element that detects smoke has a 10-year maximum life span, which is exactly why most have moved to a non-replaceable battery that forces you to throw it away (for safety).
            • jtarrio 54 minutes ago
              Modern smoke detectors, at least here in the US, have a 10-year sealed non-replaceable battery.
              • sitzkrieg 31 minutes ago
                every smoke detector i've seen takes a 9volt battery. maybe this is true for commercial units
                • Someone1234 27 minutes ago
                  Most of those smoke detectors are old and already passed their 10-year-lifespan. People keep putting 9-volt batteries in them, but they shouldn't.

                  If you go look at modern smoke detectors, many-to-most, now have a non-replaceable battery for exactly that reason.

                  • wpm 5 minutes ago
                    I didn't have to look far to replace my combo CO/Smoke detector or do a ton of hard searching to find one that just took a 9-volt. The first two results on Amazon US for "smoke detector" take 9-volts.
      • reaperducer 1 hour ago
        It's a shame negative externalities like this are basically impossible to include in the up-front price.

        You mean like add the cost of a MRI to the price of a pack of cigarettes?

    • maeln 1 hour ago
      Hope you don't get caught in Luddic Path's space with your stash of contraband disposable vape
  • jerf 2 hours ago
    The mismatch between the Ancient Specs of Yore is kind of interesting. The Commodore 64 had 64KB of RAM, but that RAM was attached to an 8-bit, 1MHz CPU. This thing has call it half the RAM of a Commodore 64, but it's attached to a 32-bit 24MHz CPU the 1980s could only dream of. And it's disposable in 2025. Pretty impressive in a weird way.
    • justincormack 2 hours ago
      Its only got 3k of RAM, 24k of flash. Although modern flash is sometimes the same bandwidth as memory was if you go back a bit, although not latency of course.
    • Narishma 1 hour ago
      It's got only 3KB of RAM, less than even the VIC-20.
      • jerf 1 hour ago
        Whoops, yes. I stand corrected. Tack another order of magnitude or so on to the mismatch.
  • zero_k 1 hour ago
    I am happy they demonstrated how useful these devices are. Marking these as "disposable" is a kind of insanity. I recovered a few of them "disposed" (i.e. "randomly thrown away into") in an empty flower pot, and took out the LiPo batteries from them -- which are rechargeable, and have charge circuitry (non-trivial for LiPos). That we somehow decided that it's OK to design these to be used only once feels wrong.

    This is the opposite of repairability. We specifically made them impossible to reuse and refill. Makes my tinkerer (and eco-friendly) heart very sad.

    • cluckindan 1 hour ago
      There are reusable vapes and reputable stores carry only those, but they are generally many times more expensive than disposable vapes, which are favored by smugglers (profit margins) and underage users (price point and potential seizing by parent/teacher/police).

      Disposable vapes put young people in contact with career criminals and organized crime, who will be only too happy to oblige even if the customer has no money. The result is young people in debt to criminals, which has the exact same ramifications as getting in drug debt. Those young people can then be coerced to commit other crimes to cover their debts.

    • Eric_WVGG 52 minutes ago
      There's a pretty amazing video where a guy makes an entire functioning e-bike battery out of disposable vapes that he gathered around a music festival. https://www.youtube.com/watch?v=VcVp9T8f_W4

      I can't fathom why disposables are legal. Really believed that the post-boomer generations actually gave a damn about waste.

  • nusl 2 hours ago
    Disposable vapes are an abomination that somehow society has normalised.
    • mcdonje 1 hour ago
      Society tends to normalize things that have ad budgets.
    • NoSalt 1 hour ago
      Not to mention the EXTREME damage it can do to a person's lungs, and do this damage very quickly.
      • cluckindan 1 hour ago
        Probably not, unless there are very specific substances in the liquid being vaped.

        There are two known culprits: diacetyl is/was used in some flavorings for its buttery taste, and liquid Vitamin E oil was used in clandestinely produced THC vape cartridges (which are really not relevant for the topic at hand). Both of those have largely disappeared from the market.

        Sure, some cheap components can in theory leach heavy metals into liquids. The amounts are insignificant compared to what you will be breathing in just by walking on city streets, even outside rush hour.

        And at least vapes don’t contain polonium-210 like cigarettes do.

  • NoSalt 1 hour ago
    The current state of technology is ... weird. From AI doing our art instead of our work, to hosting a website on an eCigarette. "Weird" is the only word I can think of at this moment.
  • jsheard 2 hours ago
    Previously discussed, but I think that first submission fell off the frontpage early because it linked directly to the vapeserver which instantly died under load: https://news.ycombinator.com/item?id=45243800
    • topherjaynes 2 hours ago
      It let out one last valiant puff of smoke after it succumbed to load.
  • t_mann 6 minutes ago
    Reality catching up with satire: https://youtube.com/watch?v=lE4UXdJSJM4&t=170s
  • r0bbbo 10 minutes ago
    Has anyone done the joke about "next big cloud platform" yet?
  • RedShift1 2 hours ago
    We need to reduce microplastics.

    Let's put microcontrollers into disposable vapes.

    I don't know if I'm sad or happy.

    • grues-dinner 1 hour ago
      The micro in this thing is a WQFN-16 (W = very very thin, thinner than V for very) with 3x3x0.75mm body. That's around a fiftieth of a gram of plastic.

      I think the bigger SOIC chip is probably the battery charge IC. And then maybe a gram or two of PCB epoxy. And the plastic in the battery pouch and membranes which you need anyway.

      In terms of plastics waste volume, the casing and tank is probably nearly all of the content. So the problem is a disposable vape bring a thing at all, not really the microcontroller in there.

      It feels mad and somehow wasteful that you can get a CPU at that price point, but the die itself is a tiny sliver of silicon. You can even embed an (even tinier) and weedier application-specific) IC in a paper metro ticket. Compute is just so ridiculously cheap that you can have a hundred of functional ICs for the cost of a single largish cup of hot bean water.

      • citizenpaul 1 hour ago
        The mfg/mining process for the chips is probably equally bad.

        All for a device to help you develop health problems.

        • grues-dinner 53 minutes ago
          There's more silicon in the battery charge controller probably (bigger transistors). The MCU is just a speck. Ironically making these disposable vapes "reusable" causes more e-waste as now they need a connector and charge controller and a bigger PCB.
        • cluckindan 1 hour ago
          You could say that for a lot of devices.

          It is indisputable that anyone switching cigarette smoking to vaping is making a healthier choice.

  • droobles 2 hours ago
    Long live hacking! This is what Hacker News is all about. Great article and fun project!
  • isoprophlex 42 minutes ago
    Could one say that the author found the ultimate computing platform for running vaporware?
  • daft_pink 1 hour ago
    I’m not vaping mom, It’s my webserver.
  • 6r17 36 minutes ago
    Hei ; Preact would be deff appropriate in that scenario ; it's a clone of react that is meant to be small !

    Very inspiring work btw !

  • 1970-01-01 1 hour ago
    I always forget about the idea that IPv6 was intended to allow literally everything to have an address. The mouse, keyboard, display, etc. Seems like a bad idea now, but back then it was considered as part of the overall plan for the nearly infinite space. Maybe the joke is still missing a punchline. We've had this generic device interface for decades but decided on proprietary and arbitrary standards of device communication to make our lives easier in the short-term.
  • prism56 21 minutes ago
    Anyone got an RSS for this blog?
  • distances 1 hour ago
    By law, neither electronics nor batteries can be disposed of with generic waste. This is the case in the EU, at least. So how are people then disposing these devices?

    Disclaimer: I do know the answer, but I'd rather pretend that people actually follow the law.

    • avian 1 hour ago
      The vape comes with a miniature laser-engraved WEEE crossed-out trash can symbol so everything is fine.
  • accrual 1 hour ago
    This is really impressive. I laughed when I got 503 Unavailable on the hosted URL. I guess we're all hugging that little vape CPU a little too hard. :)
  • konfusinomicon 2 hours ago
    living that cloud life
  • jhoechtl 30 minutes ago
    Time for the disposable vape web farm
  • rozumbrada 38 minutes ago
    This is why I go to hackernews every day <3
  • peteforde 2 hours ago
    I see that as of the time of this comment, he hasn't run Doom on it.

    Yet?

    • jsheard 2 hours ago
      3kb of RAM and 24kb of flash is a bit tight for Doom unfortunately. It has been ported to another Cortex-M0+ microcontroller, the RP2040, but that has 264kb of RAM plus megabytes of flash and the game still barely fits.
    • reaperducer 1 hour ago
      I see that as of the time of this comment, he hasn't run Doom on it.

      Imagine a Beowulf cluster of them…

  • BruceEel 1 hour ago
    This is quite amazing. Dumb question: is there a way to run it in QEMU?
    • BogdanTheGeek 1 hour ago
      Maybe, I'm not sure how you would connect a debugger to qemu, and you would have to emulate the ram and flash, but other than that is pretty standard arm cortex m0. The code is pretty generic too.
      • BruceEel 25 minutes ago
        Makes sense, thank you. Congrats on the extremely cool project.
  • markstos 2 hours ago
    I found of these that had a built-in retro game console with screen. Like, the kind of little game that a small child would be interested in. So frustrating.
  • NoiseBert69 2 hours ago
    I bought a few hundred Puyas for my lab as stock for projects. They are quite capable and very cheap uCs to have around.
    • grues-dinner 2 hours ago
      Apparently they're cheap because they're a flash memory company that bolts a little CPU onto their own flash, rather than a CPU company having to then buy the more expensive flash with a markup.
  • kpil 1 hour ago
    This is like a really really fast VIC 20!
  • 867-5309 1 hour ago
    504 timeout -- fug of breath
  • broabprobe 1 hour ago
    very impressive, I wonder if it would run Collapse OS (https://collapseos.org/)
  • shadowgovt 1 hour ago
    That's gotta be between 75 and 90% less damaging to humanity than the designed use of a disposable vape. Well done, Bogdan!

    I'm reminded of the project Tom7 put together a few years back where he used the surplus components inside a digital COVID kit as spare memory. https://www.youtube.com/watch?v=JcJSW7Rprio

  • ivape 2 hours ago
    I wonder how much cost would be added if they included a small usb storage drive in those things. You could incentivize non-disposal because people would have a million of those things.

    It’s really hard to quite vaping btw.

    • zetanor 2 hours ago
      Add a GPS and a few propellers to vapes so they can fly themselves directly into the nearest river, lake or (as a last resort) ocean once they're empty.
      • Rebelgecko 40 minutes ago
        I know you're joking, but it seems like a great option for IEDs. Cheap, hard to trade (might even come with a patsy's DNA preinstalled)
      • ch4s3 2 hours ago
        Why wait until they're empty, let he fish vape I say!
    • RedShift1 2 hours ago
      > It’s really hard to quite vaping btw.

      They put addictive stuff in vapes, because of course they do.

      • Dilettante_ 1 hour ago
        The Addictive Stuff™ is literally the core feature of the item. Your comment makes it sound like the producers are nefariously and covertly adding nicotine to a product which normally would not have any? It's like saying "These scoundrel breweries! They're making beer that gets you drunk!"
    • Scubabear68 28 minutes ago
      I wonder when an Android phone will be released that includes a vape attachment.

      Don't think Apple would go there, but who knows....

    • cardanome 2 hours ago
      I mean disposable vapes are just complete idiocy to begin with.

      Vapes with pods are less expensive in the long run and offer a vastly superior vaping experience. You can get liquid for dirt cheap. If you smoke heavily, you might offset the initial investment in a week or two.

      Disposable vapes offer zero advantages. They are only good if you want to "just try" it once or that is what you are going to tell yourself in your career of producing e-waste.

      • unmotivated-hmn 1 hour ago
        What they offer is ubiquity and the turnkey nature. You can walk into any nearby smoke shop, get one and use it immediately. You don't have to carry around a bottle of liquid and extra coils and paper towels/napkins for the inevitable leak.

        I stopped vaping a little while ago but when I did vape, there was no clear standard of pod systems. You sure could walk into a nearby smoke shop but it was unlikely that you'd find your ideal pod/coil/liquid.

        It's hard to take back the convenience people have gotten used to. I think one idea could be that disposable vapes become recyclable vapes. They should cost $15 more and buyers should get back $10 when they return it for recycling. This is nicotine we're talking about so the buyer is always coming back anyway.

    • jdoliner 2 hours ago
      Hey can you print this paper off my vape bro? I need to turn it in to my next class.
  • ChrisArchitect 2 hours ago
    [dupe] More discussion on this submission by the dev: https://news.ycombinator.com/item?id=45243800