Senin, 02 Januari 2023

Show HN: Spall – WASM-based profiler for JavaScript and C in ~5k lines of Odin https://ift.tt/u9ThZl2

Show HN: Spall – WASM-based profiler for JavaScript and C in ~5k lines of Odin [I'm the author] Spall is a web-accessible profiler that I made to help my web-dev friends load gigabyte+ JSON traces without lunch-break-long load times. Recently, Spall got experimental support for auto-tracing with binary traces (along with an in-progress native-port, to give it more memory headroom), which was used to help track down and fix some hard-to-spot lock contention issues in the Odin-language compiler. I demoed it at the Handmade Seattle conference in October, https://ift.tt/x3ERcsL , with a head-to-head against Perfetto, another big web profiler. I'll be around to answer any questions. Thanks for looking at my project! If you like Spall, you can catch my other projects over at https://ift.tt/j9eVfYN . If you happen to be hiring I'd love to hear from you. Looking for something fun and new to do after a long sabbatical, working on cool open-source projects! https://ift.tt/3yxHs8b January 2, 2023 at 09:07PM

Show HN: Block positive reinforcement from HN with uBlock https://ift.tt/K6sfUy9

Show HN: Block positive reinforcement from HN with uBlock Inspired by the nytimes post "Luddites don't want your upvotes", and presumably being a Luddite myself, I have used uBlock to block my Karma score at the top of the page. I found myself (on old account) reflexively checking my Karma score and found myself responding emotionally to it. I do not like this. Positive reinforcement can be a dangerous thing! And negative reinforcement make me feel a bit crap. I'm going to post what I think is the right thing, votes be damned! However I do see the use of downvotes for getting rid of stupid comments and spam as a good thing. I see the use of down/upvotes for political ideologies as a bad thing. SO, I simply used uBlock to permanently block "Karma" across HN topbar. Simply go to uBlock icon, press Element Picker Mode (the eyedropper), select the Karma number, and select the Create button. Done. January 2, 2023 at 09:09PM

Show HN: Sierra, a DSL for building Java Swing applications https://ift.tt/fsEGl3P

Show HN: Sierra, a DSL for building Java Swing applications Yes, I know hardly anyone uses Swing anymore. :-) I basically just did it for fun and thought I would share. https://ift.tt/VIqDUnN January 2, 2023 at 03:40AM

Show HN: InterviewFrog – Gamify Your Interview Prep With GPT A.I https://ift.tt/y4PNIvO

Show HN: InterviewFrog – Gamify Your Interview Prep With GPT A.I https://ift.tt/rWEZL8d January 1, 2023 at 11:40PM

Show HN: Detecting collision between 500k circles below 5ms https://ift.tt/jvTXZfI

Show HN: Detecting collision between 500k circles below 5ms Heya. I created a flexible collision engine for broad detection in C that's also pretty fast. Personally that's my best, so I wanted to show it here. Although... still not as fast as DragonEnergy's one that supposedly handled millions of agents bouncing off each other every frame on an old i3, haha. I hope I get better at this! He set the bar pretty high for me. I was considering including some small function that tries finding the nearest entity, although I think it might be better to simply use query for that matter. Perhaps in the future I will get a good idea of how to do that more efficiently. This is not a clickbait. Although generally you also call other functions in a tick, a collision check between 500,000 circles ("circles", not "squares", because distance is checked and forces are applied based on the angle between) is done below 5ms on not really that demanding hardware. I achieve lower times than that on my budget laptop, slightly more on my PC (yeah, weird). The total time spent in a tick is 3-4 times that. https://ift.tt/EKoVD8S January 2, 2023 at 03:08AM

Minggu, 01 Januari 2023

Show HN: Modreveal – Utility to find hidden Linux kernel modules https://ift.tt/BJs7zSr

Show HN: Modreveal – Utility to find hidden Linux kernel modules https://ift.tt/sHDfAha January 1, 2023 at 10:32PM

Show HN: Lama2 - Plain-Text Powered REST API Client for Teams https://ift.tt/KYIsF2a

Show HN: Lama2 - Plain-Text Powered REST API Client for Teams https://ift.tt/Pwci3Bn January 1, 2023 at 09:06PM

Show HN: I created my AI clone based on 600.000 written words https://ift.tt/LjZG3AF

Show HN: I created my AI clone based on 600.000 written words https://twitter.com/louis030195/status/1609487185602023426 January 1, 2023 at 04:51PM

Show HN: My programming language, building in public for 1 year https://ift.tt/MdQWf71

Show HN: My programming language, building in public for 1 year My weekly(ish) video logs tracking my progress of building a completely sound statically typed language and structural editor. The motivation is to make lots of invalid programs unrepresentable. https://ift.tt/iZD50jN January 1, 2023 at 06:42AM

Show HN: I made a simple, open source, chromatic tuner mobile app https://ift.tt/IE6ed5B

Show HN: I made a simple, open source, chromatic tuner mobile app I'm a musician by night, software developer by day, and one of the minor frustrations I've always had was trying to find a simple tuner app for my phone. Looking at both the iOS and Android app stores, you'll find a lot of the top tuner apps are rather bloated with ads or subscription callouts. I thought I'd create a dead-simple minimalistic mobile chromatic tuner the way I would like it - open the app and tune my guitar. My work is in web with NodeJS and React, so I chose React Native since it was the easiest to understand coming from React. Flutter was also an option since the company I work for has a team working in that, but I thought it would be a bit too much effort to learn Dart. I learned a bit more about React rendering with this project as well. The main issue I had was trying to have a React state variable be constantly updated with any frequencies detected from the mic input, but that ended up causing substantial slowdown due to so many rerenders, so I opted to use a React ref to maintain any detections, and then only update the React state when there was an actual note. I feel like sometimes the UI has trouble updating occasionally when my iPhone is in battery saving mode, which I guess might be related to throttling the audio sample rate somehow, though I'm not entirely sure. Friends and family haven't noticed this, so it may be due to my old 2016 iPhone SE :P. The apps you can find on the both the iOs App Store and Google Play (free!). https://ift.tt/nYMRbDt https://ift.tt/Jj2C5Sb... Would love any feedback! https://ift.tt/EiJH4OW January 1, 2023 at 03:51AM