Wednesday, October 25, 2023

Show HN: Basil – AI Portfolio Tracker https://ift.tt/WwTidhB

Show HN: Basil – AI Portfolio Tracker https://basil.fi October 24, 2023 at 09:32PM

Show HN: Switchboard – Dependency Injection for Unity, Log Files, Zero GC https://ift.tt/Xk30Ygt

Show HN: Switchboard – Dependency Injection for Unity, Log Files, Zero GC I've been a professional game engineer for over 10 years, working with Unity for most of that time. Around when the pandemic started, I was at a point where I could start a new version of an existing project, rebuilding everything from scratch. So, I investigated this "Dependency Injection" concept I had heard about, and how it could be better than using singletons. If you've worked with Unity you know that singletons are prolific in that environment. You mostly create scripts derived from MonoBehaviours that get instantiated for you, so there is no opportunity for constructor injection. Other dependency injection frameworks for Unity mostly mirror the way it's done in other environments, and end up using reflection to get the job done in Unity. To make a long story short, I ended up creating a novel design pattern (correct me if I'm wrong) that I call the Injector Locator Pattern. It accomplishes inversion of control in Unity without any use of reflection. The first service I thought to inject was a logger. Unity, especially when I started, did not have good log files. The performance is poor, and it generates a lot of garbage memory allocations. To make yet another long story short, I ended up creating a replacement for StringBuilder that does not allocate garbage memory when appending numerical values. (StringBuilder still does that in Unity 2021/2022.) Also, I realized that .NET literally cannot render the exact value of certain floating-point numbers. So, I made sure that you can render any float or double to any degree of precision, formatted however you like. Even the values displayed in Visual Studio's debugger are wrong! Anyway, you can essentially use the standard .NET ILogger interface, in Unity, loosely coupled and injected, and write thousands of log entries in a fraction of a second that get written out to UTF-8 log files, with zero GC allocations at any point along the way. Please let me know what you think of my Injector Locator Pattern, my replacement for StringBuilder, and anything else. Thanks! https://ift.tt/PYlh50w October 24, 2023 at 09:53PM

Tuesday, October 24, 2023

Show HN: WebSession, a Secure Replacement for Cookies https://ift.tt/vAdoJVz

Show HN: WebSession, a Secure Replacement for Cookies https://websession.dev/ October 24, 2023 at 02:44AM

Show HN: Image Turing test for humans. Test your AI detection skills https://ift.tt/IcrxwOV

Show HN: Image Turing test for humans. Test your AI detection skills We are blurring the lines between real images vs A.I. generated images with the innovations like Midjourney and DALL E. IsThatAI is a place where you can take the image Turing tests to tell A.I. from real ones! Show A.I. who's boss! https://isthat.ai/ October 23, 2023 at 07:03PM

Show HN: Autolicious – AI-powered bookmark cataloging Chrome extension https://ift.tt/OEzK2a3

Show HN: Autolicious – AI-powered bookmark cataloging Chrome extension https://ift.tt/3Da7yTL October 23, 2023 at 09:51PM

Monday, October 23, 2023

Show HN: Pypipe – A Python command-line tool for pipeline processing https://ift.tt/p7XTgyj

Show HN: Pypipe – A Python command-line tool for pipeline processing pypipe is a command-line tool for writing data pipelines in Python. When working with data processing in the terminal, I often find myself wanting to pass the output of commands to Python for further processing. In such cases, one can either write one-liners or create regular Python scripts and connect them through pipes. However, using pypipe makes this process more convenient and efficient. https://ift.tt/bENUXkT October 23, 2023 at 10:05AM

Show HN: Use an EEPROM as Programmable Logic https://ift.tt/Nhju7Jc

Show HN: Use an EEPROM as Programmable Logic https://ift.tt/HeBNflV October 23, 2023 at 04:29AM

Show HN: Sharpe Ratio Calculation Tool https://ift.tt/VwEg1dG

Show HN: Sharpe Ratio Calculation Tool I built a simple but effective Sharpe Ratio calculator that gives the full historical variation of it...