And perhaps call it "image generator" rather than "wallpaper generator". I thought it was going to do something special that was suited specifically suited for a wallpaper.
Since you mentioned it, THC and tetrahydrocannabinol are the same... but different. I don't know enough about these kinds of diagrams to know what the differences are - but surely they should be the same?
It looks like "THC" and "tetrahydrocannabinol" resolve to different isomers. One has wedges (stereo information) and they have different double bond positions (the double lines).
The problem here is naming compounds - a name like "THC" is not precise enough to distinguish between these isomers. A more exact name could be "(–)-trans-Δ⁹-tetrahydrocannabinol" (from wikipedia).
Ah, interesting - thanks. I'll be honest chemistry never really was my strong point (I much preferred the more practical aspect of physics in school) - I try to pick up what I can from creators such as codyslab, nilered, nurdrage, etc, but I guess my attention to it falls in the "interesting but not interested" category, for lack of a better term.
Hey, it's me, avogadr.io guy. The first thing to give out seemed to be the molecule rendering server Sourire (running locally) which is a Clojure webserver wrapper around a cheminformatics toolkit (see GitHub for more info). The molecule rendering server process was crashing for some reason under the load (physical memory, disk space, jury's still out I'm honestly not sure at this point) so the site itself was being served but any requests to Sourire were failing (hence the lack of a molecule in the UI during the hug of death). More RAM/disk space seems to have sorted it out for now and it's holding steady. I guess it comes down to a question of how many molecule renders are possible concurrently on the hardware (including any temp file/cache/RAM cleanup time).
It's certainly crossed my mind, and it'd be great to implement something like that, but the Clojure is just a wrapper around a large and complicated cheminformatics toolkit. Porting the actual rendering library (Java/C++?) would probably be a substantial undertaking.
I'm curious as to what type of hardware these sites that can't handle HN traffic are running on? I've had a project go front page before, and it was nothing a $10 droplet couldn't handle. A few hundred concurrent users is nothing for a webserver/database.
Interesting. But it lacks a lot of simple compounds. For instance it doesn't recognize ethyne or acetylene only ethylene. These are all different names for the same thing but ethyne is the systematic name. Similarly it recognizes propane and propene but not propyne, but does recognize methyl ethylene.
This is a bit odd because all of those names are regular constructions that indicate the composition in formally defined ways.
While I can't explain your result (does this give another meaning to metal umlauts? Edit: Phosphorus isn't a metal :/), it looks like canonical SMILES representation for methane is C (not CH4 as one might naïvely expect, as I did):
This is super cool! However, I notice that the generated PNG isn't high enough resolution for Retina or other High-DPI displays. It would be great if this gave the option to export different sizes.
- Some kind of feedback over whether the compound name is valid or not
- Validation on the SMILES input
- Whether it's working on building the picture or not
- Autocomplete for the compound name
- Different colors for each element
- Preset color pallettes
- List of "cool-looking" or "most often used" compounds