The best Hacker News stories from Show from the past day

Go back

Latest posts:

Show HN: Modifying Clang for a Safer, More Explicit C++

Modified C++<p>Inspired by the paper "Some Were Meant for C" by Stephen Kell, I decided to show that it's possible to iterate C++ to be safer, more explicit, and less error-prone.<p>Here's a possible starting point: I didn't invent a new language or compiler, but took the world's best compiler, clang, and modified it to begin iterating towards a new furture of C++. Naming things is hard, so I call this 'Modified C++'. Some of the following could be implemented as tooling in a linter or checker, but the idea is to update the compiler directly. I also wanted to learn more about clang. This compiler needs a flag to enable/disable this functionality so that existing library code can be used with a 'diagnostic ignored' pragma.<p>You can build clang using the normal non-bootstrap process and you'll be left with a clang that compiles C++ but with the following modifications:<p><pre><code> - All basic types (excluding pointers and references) are const by default and may be marked 'mutable' to allow them to be changed after declaration - Lambda capture lists must be explicit (no [&] or [=], by themselves) - Braces are required for conditional statements, case and default statements within switches, and loops - Implicit conversions to bool are prohibited (e.g., pointers must be compared against nullptr/NULL) - No goto support - Explicit 'rule of six' for classes must be programmer-implemented (default, copy, and move c'tors, copy and move assignment, d'tor) - No C style casts </code></pre> Here's an example program that's valid in Modified C++:<p><pre><code> mutable int main(int, char**) { mutable int x = 0; return x; } Here's another that will fail to compile: mutable int main(int, char**) { int x = 1; x = 0; // x is constant return x; } </code></pre> I'd like your feedback. Future changes I'm thinking about are:<p><pre><code> - feature flag for modified c++ to enable/disable with 'diagnostic ignored' pragma, to support existing headers and libraries - support enum classes only - constructor declarations are explicit by default - namespaces within classes - normalize lambda and free function syntax - your ideas here</code></pre>

Show HN: SineRider - A game about love, math, and graphing built by teenagers

Hello everyone! It was so fun working on this project for the past few months with some of my fellow high school students :) I am so excited to share our first prototype and hopefully we'll be done with it all soon! <3<p>(ofc, it's open source, contribute here: <a href="https://github.com/hackclub/sinerider" rel="nofollow">https://github.com/hackclub/sinerider</a>)<p>The goal of the game is to slowly teach function composition that get progressively more complex while you also help the ghosts ski on the slopes and explore the entire map!

Show HN: SineRider - A game about love, math, and graphing built by teenagers

Hello everyone! It was so fun working on this project for the past few months with some of my fellow high school students :) I am so excited to share our first prototype and hopefully we'll be done with it all soon! <3<p>(ofc, it's open source, contribute here: <a href="https://github.com/hackclub/sinerider" rel="nofollow">https://github.com/hackclub/sinerider</a>)<p>The goal of the game is to slowly teach function composition that get progressively more complex while you also help the ghosts ski on the slopes and explore the entire map!

Show HN: SineRider - A game about love, math, and graphing built by teenagers

Hello everyone! It was so fun working on this project for the past few months with some of my fellow high school students :) I am so excited to share our first prototype and hopefully we'll be done with it all soon! <3<p>(ofc, it's open source, contribute here: <a href="https://github.com/hackclub/sinerider" rel="nofollow">https://github.com/hackclub/sinerider</a>)<p>The goal of the game is to slowly teach function composition that get progressively more complex while you also help the ghosts ski on the slopes and explore the entire map!

Show HN: SineRider - A game about love, math, and graphing built by teenagers

Hello everyone! It was so fun working on this project for the past few months with some of my fellow high school students :) I am so excited to share our first prototype and hopefully we'll be done with it all soon! <3<p>(ofc, it's open source, contribute here: <a href="https://github.com/hackclub/sinerider" rel="nofollow">https://github.com/hackclub/sinerider</a>)<p>The goal of the game is to slowly teach function composition that get progressively more complex while you also help the ghosts ski on the slopes and explore the entire map!

Show HN: Allsearch – Making it easier to use different search engines seamlessly

Allsearch is a tool I made after getting fed up with Google's search results and reading up on conversations on HN about the state of search on the internet.<p>This is a tool I made as a spiritual successor to GnodSearch (<a href="https://www.gnod.com/search/" rel="nofollow">https://www.gnod.com/search/</a>), which I've seen in a couple conversations about search on HN. GnodSearch is great, but a bit barebones in terms of looks and functionality; Allsearch is my attempt to build off of it.<p>Similar to Gnod, Allsearch allows you to apply any given search query to a search engine of your choice (either through only keystrokes, or via mouse). However, it also allows you to add your own engines to its catalogue, and allows you to define macros to use multiple engines simultaneously (useful for easily comparing engines).<p>It's not feature complete; there are still some things I'd like to add in. There are way more engines I want to add to it's default catalogue, and I also want to add in the ability to export your settings to allow people to easily share their Allsesarch configurations.<p>Curious about people's thoughts on it :)

Show HN: Allsearch – Making it easier to use different search engines seamlessly

Allsearch is a tool I made after getting fed up with Google's search results and reading up on conversations on HN about the state of search on the internet.<p>This is a tool I made as a spiritual successor to GnodSearch (<a href="https://www.gnod.com/search/" rel="nofollow">https://www.gnod.com/search/</a>), which I've seen in a couple conversations about search on HN. GnodSearch is great, but a bit barebones in terms of looks and functionality; Allsearch is my attempt to build off of it.<p>Similar to Gnod, Allsearch allows you to apply any given search query to a search engine of your choice (either through only keystrokes, or via mouse). However, it also allows you to add your own engines to its catalogue, and allows you to define macros to use multiple engines simultaneously (useful for easily comparing engines).<p>It's not feature complete; there are still some things I'd like to add in. There are way more engines I want to add to it's default catalogue, and I also want to add in the ability to export your settings to allow people to easily share their Allsesarch configurations.<p>Curious about people's thoughts on it :)

Show HN: I made a writing tool that asks questions like Socrates

Show HN: I made a writing tool that asks questions like Socrates

I built a vector map from scratch

Hi HN<p>I've used a lot of vector maps in the past, and was always fascinated by the technology, so I decided to try and build one from scratch as a way to learn more about how it works, and also as a reason to (finally) learn WebGL.<p>I've uploaded the source to GitHub <a href="https://github.com/kochis/webgl-map" rel="nofollow">https://github.com/kochis/webgl-map</a><p>Hope someone finds it useful / informative, and open to any feedback or tips as well. Cheers!

I spent a year designing a low profile, minimal mechanical keyboard

Hi HN,<p>During lockdown I took up the keyboard hobby but I couldn't find anything I liked the aesthetic of. So I set out to design my own keyboard from scratch that shunned the gamer look in favour of a more minimal, serious design.<p>I've built several prototypes but I would love to get some feedback from the HN community.

Show HN: Search engine for finding the best of anything

Bestlist is a search engine that is focused solely on helping users discover the best of anything.<p>All of our results are non-biased, non-paid, and are dynamically generated via our search algorithm. It’s not perfect, but we’re working extremely hard and are determined to make it ubiquitous in the lives of the everyday internet user.<p>Other Features<p>Voting If you’re feeling strongly about a search results, you can up or downvote the listing to voice your opinion. When you vote, you’ll be asked to state why you voted. This gives other users better insights into the listing.<p>Collections With collections you can easily save and keep track of all of your favorite listings. Collections can be public or made private, and they’re easily edited, reordered, and shared.<p>Submissions If you find that we’re missing a result for a particular query, you can easily submit it as a suggestion. We’ll review it, and publish it if it makes the cut.<p>Current Limitations •It’s currently English only. •We don’t handle searches that start with “Best way..” or “Best settings ..” or “Best route..” very well. •Also, searches for professionals (doctors, etc,) and recipes have issues.<p>I’m sure there are a lot more we’re missing.<p>I'd love for you to try and it and let us know what you think.<p>Thank you, Tyler

Show HN: Search engine for finding the best of anything

Bestlist is a search engine that is focused solely on helping users discover the best of anything.<p>All of our results are non-biased, non-paid, and are dynamically generated via our search algorithm. It’s not perfect, but we’re working extremely hard and are determined to make it ubiquitous in the lives of the everyday internet user.<p>Other Features<p>Voting If you’re feeling strongly about a search results, you can up or downvote the listing to voice your opinion. When you vote, you’ll be asked to state why you voted. This gives other users better insights into the listing.<p>Collections With collections you can easily save and keep track of all of your favorite listings. Collections can be public or made private, and they’re easily edited, reordered, and shared.<p>Submissions If you find that we’re missing a result for a particular query, you can easily submit it as a suggestion. We’ll review it, and publish it if it makes the cut.<p>Current Limitations •It’s currently English only. •We don’t handle searches that start with “Best way..” or “Best settings ..” or “Best route..” very well. •Also, searches for professionals (doctors, etc,) and recipes have issues.<p>I’m sure there are a lot more we’re missing.<p>I'd love for you to try and it and let us know what you think.<p>Thank you, Tyler

Show HN: Match(it): A C++17 pattern-matching library with lots of good stuffs

A lightweight single-header pattern-matching library for C++17 with macro-free APIs.<p>Try it at <a href="https://godbolt.org/z/8YMr8Kz8j" rel="nofollow">https://godbolt.org/z/8YMr8Kz8j</a>

Show HN: Match(it): A C++17 pattern-matching library with lots of good stuffs

A lightweight single-header pattern-matching library for C++17 with macro-free APIs.<p>Try it at <a href="https://godbolt.org/z/8YMr8Kz8j" rel="nofollow">https://godbolt.org/z/8YMr8Kz8j</a>

Show HN: GraphJSON – Easily log and analyze events using ClickHouse

Hi HN,<p>My name is JR and I had a need for a simple analytics solution that allowed me to store (timestamp, json) logs and run SQL over them.<p>It was hard to find the right solution. Solutions like Mixpanel and Amplitude optimized for particular report types. Whereas solutions like Snowflake, BigQuery, etc. required a lot of setup.<p>I built GraphJSON to fit in the middle. I strived for the ease of use of tools like Mixpanel and Amplitude, but wanted to ensure affordances were built to support use cases that big data warehouses enable.<p>Under the hood, GraphJSON is powered by ClickHouse. This enables really efficient disk compression and fast queries. In many ways, you can think of GraphJSON as an easy way to explore ClickHouse without having to run and maintain your own clusters.<p>I'd love for you to give it a try. You can generally start logging your data in under a minute. From there, you can either use the UI tooling to create graphs in a no-code way. Or if you're more advanced, you can use the SQL editor to do any query you can think of!

Show HN: GraphJSON – Easily log and analyze events using ClickHouse

Hi HN,<p>My name is JR and I had a need for a simple analytics solution that allowed me to store (timestamp, json) logs and run SQL over them.<p>It was hard to find the right solution. Solutions like Mixpanel and Amplitude optimized for particular report types. Whereas solutions like Snowflake, BigQuery, etc. required a lot of setup.<p>I built GraphJSON to fit in the middle. I strived for the ease of use of tools like Mixpanel and Amplitude, but wanted to ensure affordances were built to support use cases that big data warehouses enable.<p>Under the hood, GraphJSON is powered by ClickHouse. This enables really efficient disk compression and fast queries. In many ways, you can think of GraphJSON as an easy way to explore ClickHouse without having to run and maintain your own clusters.<p>I'd love for you to give it a try. You can generally start logging your data in under a minute. From there, you can either use the UI tooling to create graphs in a no-code way. Or if you're more advanced, you can use the SQL editor to do any query you can think of!

Show HN: GraphJSON – Easily log and analyze events using ClickHouse

Hi HN,<p>My name is JR and I had a need for a simple analytics solution that allowed me to store (timestamp, json) logs and run SQL over them.<p>It was hard to find the right solution. Solutions like Mixpanel and Amplitude optimized for particular report types. Whereas solutions like Snowflake, BigQuery, etc. required a lot of setup.<p>I built GraphJSON to fit in the middle. I strived for the ease of use of tools like Mixpanel and Amplitude, but wanted to ensure affordances were built to support use cases that big data warehouses enable.<p>Under the hood, GraphJSON is powered by ClickHouse. This enables really efficient disk compression and fast queries. In many ways, you can think of GraphJSON as an easy way to explore ClickHouse without having to run and maintain your own clusters.<p>I'd love for you to give it a try. You can generally start logging your data in under a minute. From there, you can either use the UI tooling to create graphs in a no-code way. Or if you're more advanced, you can use the SQL editor to do any query you can think of!

Exponential Smoothing: faster and more accurate than NeuralProphet

We benchmarked on more than 55K series and show that ETS improves MAPE and sMAPE forecast accuracy by 32% and 19%, respectively, with 104x less computational time over NeuralProphet.<p>We hope this exercise helps the forecast community avoid adopting yet another overpromising and unproven forecasting method.

Show HN: I made a web-based notepad with a built in unit calculator

Hi HN<p>It also supports percentages, dates and variables.<p>I've been working on this alone for a few years now, so would love to get some feedback.

< 1 2 3 ... 641 642 643 644 645 ... 949 950 951 >