The best Hacker News stories from Show from the past day

Go back

Latest posts:

Show HN: I'm making a dynamic language in Rust

An implementation of a dynamic programming language in Rust. Includes: Parser/Compiler, REPL, Virtual Machine, Bytecode Disassembler<p>This started out as a learning project to teach myself Rust. It has grown into a decently substantial piece of software and I've learned quite a bit in the process!<p>Some neat things:<p>+ A garbage collector that can store dynamically sized types without any double-indirection (i.e. I have my own Box implementation with manual alloc/dealloc)<p>+ The smart pointer used to reference GCed data is a thin pointer. The ptr metadata needed for DSTs is stored in the GC allocation itself, so that the GC smart pointer is just a single usize wide. This allows me to keep the core value enum Variant down to 16 bytes (8 bytes for data, the enum discriminant, and some padding).<p>+ The GC also supports weak references!<p>+ Statically dispatched type object model using a newtype wrapper and Rust's declarative macros. Ok, what that means is that I have a MetaObject trait that I can use to easily add new data types and define the behavior for specific types. Similar idea to Python's PyTypeObject though very different in implementation. However, I don't resort to dynamic dispatch or trait objects despite working with dynamically type data. Instead, I have a newtype wrapper over the core value enum Variant that statically dispatches to each of the enum branches! And then a few macros that minimize the boilerplate required if I want to add a new branch to Variant or a new method to MetaObject (just a single line in each case).<p>+ Different string representations! This was inspired by the flexstr crate. Strings that are short enough to fit inside a Variant are "inlined" directly in the value. Longer strings are either GCed or interned in a thread-local string table. All identifiers are interned.<p>+ An efficient implementation of closures inspired by Lua's upvalues.<p>The language is still pretty WIP. I'm planning to add an import system, a small standard library, and a few other things<p>(Yes, the name might not be the best, being also used by a well-known ReST docs generator, I'll take suggestions. I do like the name though, both as a reference to the mythological creature and the cat :D)

Show HN: I Made a Magic Trick

Show HN: I Made a Magic Trick

My typical working day as software engineer

Show HN: I built a dashboard of official data ahead of French elections

Show HN: I built a dashboard of official data ahead of French elections

Show HN: WorkOrPay – Set goals, form contracts, pay a penalty if you fail

Show HN: WorkOrPay – Set goals, form contracts, pay a penalty if you fail

Show HN: This AI Does Not Exist

Hey HN! Author of the site here. I tried a few tricks to keep the text-generation part of the site up, but even leaning hard on Huggingface's API and bumping time-outs up, it looks like the site is struggling a bit. I'm going to see if there's anything I can do to keep the text-generation part available, but in the meantime, the pre-generated set should stay pretty stable. Not sure if there's much else I can do without burning a hole in my cloud bills — sorry for the troubles!<p>I've put up a more detailed description of how this works on the GitHub - <a href="https://github.com/thesephist/modelexicon" rel="nofollow">https://github.com/thesephist/modelexicon</a><p>PS - if anyone at Huggingface is reading this and wants to help out with keeping the API up, that would be super :)

Show HN: This AI Does Not Exist

Hey HN! Author of the site here. I tried a few tricks to keep the text-generation part of the site up, but even leaning hard on Huggingface's API and bumping time-outs up, it looks like the site is struggling a bit. I'm going to see if there's anything I can do to keep the text-generation part available, but in the meantime, the pre-generated set should stay pretty stable. Not sure if there's much else I can do without burning a hole in my cloud bills — sorry for the troubles!<p>I've put up a more detailed description of how this works on the GitHub - <a href="https://github.com/thesephist/modelexicon" rel="nofollow">https://github.com/thesephist/modelexicon</a><p>PS - if anyone at Huggingface is reading this and wants to help out with keeping the API up, that would be super :)

Show HN: This AI Does Not Exist

Hey HN! Author of the site here. I tried a few tricks to keep the text-generation part of the site up, but even leaning hard on Huggingface's API and bumping time-outs up, it looks like the site is struggling a bit. I'm going to see if there's anything I can do to keep the text-generation part available, but in the meantime, the pre-generated set should stay pretty stable. Not sure if there's much else I can do without burning a hole in my cloud bills — sorry for the troubles!<p>I've put up a more detailed description of how this works on the GitHub - <a href="https://github.com/thesephist/modelexicon" rel="nofollow">https://github.com/thesephist/modelexicon</a><p>PS - if anyone at Huggingface is reading this and wants to help out with keeping the API up, that would be super :)

Show HN: Resume Editor

Show HN: A better Reddit search engine to find Menswear recommendations

Hey HN Community!<p>We built this simple community search tool that basically allows people to search through thousands of past Reddit threads and tens of thousands of recommendations using tags. It mostly covers a few bigger subreddits like r/BIFL, r/MFA, r/AskMen, r/SkincareAddiction but along the way, I expanded it to include other smaller subreddits too. In addition to filtering by category, power users can also search by<p>-Body Fit (big thigh, long torso)<p>-Occupation (work in retail, teacher, doctor)<p>-Age (18-24, 25-35), Size (height, weight)<p>-Brand comparison (similar to: X)<p>-Use (suitable for wedding, everyday wear)<p>-Location (available in UK, use in Northeast US)<p>-Mood/Style (minimalist, vintage, retro)<p>Check it out. Buy fewer, buy better. Happy Earth Day!

Show HN: Augmented reality apps made hands-on interactive

Show HN: Augmented reality apps made hands-on interactive

Show HN: Fleet – Experimental build tool for Rust that’s up to 5x faster

Fleet is an experimental fast, lightweight, open-source, build tool for Rust.<p>Builds with Fleet enabled are up-to 5x faster!<p>For a production repository (infinyon/fluvio) which we tested, we were able to cut down our incremental build times from 29 seconds down to 9 seconds, boosted by Fleet. We saw even better results on dimensionhq/volt, with our build times cut down from 3 minutes to just 1 minute - a 3x speed improvement!<p>How does fleet work?<p>Fleet works by optimizing your builds using existing tooling available in the Rust ecosystem, including seamlessly integrating sccache, lld, zld, ramdisks (for those using WSL or HDD's) et al.<p>You can get fleet at the official website.<p>Check out fleet over at https://github.com/dimensionhq/fleet and our website at https://fleet.rs<p>Looking forward to your feedback and thoughts!

Show HN: Fleet – Experimental build tool for Rust that’s up to 5x faster

Fleet is an experimental fast, lightweight, open-source, build tool for Rust.<p>Builds with Fleet enabled are up-to 5x faster!<p>For a production repository (infinyon/fluvio) which we tested, we were able to cut down our incremental build times from 29 seconds down to 9 seconds, boosted by Fleet. We saw even better results on dimensionhq/volt, with our build times cut down from 3 minutes to just 1 minute - a 3x speed improvement!<p>How does fleet work?<p>Fleet works by optimizing your builds using existing tooling available in the Rust ecosystem, including seamlessly integrating sccache, lld, zld, ramdisks (for those using WSL or HDD's) et al.<p>You can get fleet at the official website.<p>Check out fleet over at https://github.com/dimensionhq/fleet and our website at https://fleet.rs<p>Looking forward to your feedback and thoughts!

Show HN: Fleet – Experimental build tool for Rust that’s up to 5x faster

Fleet is an experimental fast, lightweight, open-source, build tool for Rust.<p>Builds with Fleet enabled are up-to 5x faster!<p>For a production repository (infinyon/fluvio) which we tested, we were able to cut down our incremental build times from 29 seconds down to 9 seconds, boosted by Fleet. We saw even better results on dimensionhq/volt, with our build times cut down from 3 minutes to just 1 minute - a 3x speed improvement!<p>How does fleet work?<p>Fleet works by optimizing your builds using existing tooling available in the Rust ecosystem, including seamlessly integrating sccache, lld, zld, ramdisks (for those using WSL or HDD's) et al.<p>You can get fleet at the official website.<p>Check out fleet over at https://github.com/dimensionhq/fleet and our website at https://fleet.rs<p>Looking forward to your feedback and thoughts!

Show HN: A programmer's approach to finding gifts

Hey Folks,<p>I’ve been really annoyed with the search part of finding gifts.<p>It’s hard to use keyword search for something when it’s an “I’ll know it when I see it” kind of deal.<p>So I thought, what if we scraped/indexed TONS of products and then just focused on removing the things we don’t want and then see what’s left to see if there’s anything cool?<p>I built it in Flutter so it's both iOS and Android but it could be web too.<p>I’ve only just started the scraping/tagging of products and if anyone has suggestions for bulk tagging images/content I would love to hear them. That’s the current bottleneck.<p>Any feedback would be welcome!<p>cvanvlack AT gmail DOT com if you want to discuss 1-on-1.

Show HN: A programmer's approach to finding gifts

Hey Folks,<p>I’ve been really annoyed with the search part of finding gifts.<p>It’s hard to use keyword search for something when it’s an “I’ll know it when I see it” kind of deal.<p>So I thought, what if we scraped/indexed TONS of products and then just focused on removing the things we don’t want and then see what’s left to see if there’s anything cool?<p>I built it in Flutter so it's both iOS and Android but it could be web too.<p>I’ve only just started the scraping/tagging of products and if anyone has suggestions for bulk tagging images/content I would love to hear them. That’s the current bottleneck.<p>Any feedback would be welcome!<p>cvanvlack AT gmail DOT com if you want to discuss 1-on-1.

< 1 2 3 ... 678 679 680 681 682 ... 929 930 931 >