Growing India News, world news, nation news, our news, people's news, grow news, entertainment, fashion, movies, tech, automobile and many more..
Monday, May 15, 2023
Show HN: I built my first Cyberdeck https://ift.tt/iegNOuy
Show HN: I built my first Cyberdeck https://ift.tt/QEuAMs0 May 15, 2023 at 12:08AM
Show HN: Tack, a fast lightweight scripting language for games and embedding https://ift.tt/JqgA31X
Show HN: Tack, a fast lightweight scripting language for games and embedding https://ift.tt/ey4iz5K Hi HN! Tack is a scripting language I've been working on sporadically for the past year or so, and intensely for the past few weeks. It originated out of a desire for something that was like Lua, but with a more familiar syntax, and without some of the other surprises in Lua such as the 1-indexed tables. It's also been a great learning project, and a very satisfying challenge! While the current version is early beta at best, I hope to continue working on it and maybe see some adoption. Despite the relative lack of optimization, I'm very pleased with the performance so far - although I haven't done a huge amount of benchmarking, it seems to be significantly faster than the stock Lua 5.4 interpreter for the quicksort test, and the btrees test (copied from the Computer Language Benchmarks Game). The language is designed for embedding in C++ programs, and is written in C++ more or less from scratch including the handwritten recursive descent parser, and a register-based compiler/interpreter. The only dependency other than the standard library is my C++ adaptation of the khash library used for the object type - a from-scratch hashmap seemed not worth the trouble. Quick code example - more examples in the repo! fn quicksort(arr) { const n = #arr if n <= 1 { return arr } " find the midpoint " let l = min(arr) let r = max(arr) if r == l { return arr } const mid = (l + r) / 2 " split array into upper and lower " const upper = filter(arr, fn(x) { return x < mid }) const lower = filter(arr, fn(x) { return x >= mid }) " recursively sort the upper and lower sub-arrays and join the result" return quicksort(lower) + quicksort(upper) } let A = [] for i in 0, 1000000 { A << random() } let before = clock() let B = quicksort(A) let after = clock() print("Time taken: ", after - before, "seconds") Building requires just cmake and a C++20 compiler - tested with MSVC 2022, g++11 on WSL and Clang 15 on M1 https://craftinginterpreters.com was a great help with implementing closures, as I had gone down a blind alley with my first approach for locating the closed-over variables. However I have taken a slightly different approach towards boxing. As I do intend to use this for some small games myself going forward, there is a standard library already, and plans to expand it. I also intend to release a GLFW-based mini game framework along with precompiled binaries, so hobbyists (and younger relatives!) may use it without needing a full compiler toolchain. I would love if anyone is interested enough to try it out! James https://github.com/PlumeCat/tack May 14, 2023 at 11:09PM
Sunday, May 14, 2023
Show HN: Torquigen,create symmetrical animated GIFs from your images https://ift.tt/JXrdQqh
Show HN: Torquigen,create symmetrical animated GIFs from your images This is the first code I've written in WebGL2. It supports Chrome, Firefox, and Safari (macOS or ipadOS). https://torquigen.app May 14, 2023 at 10:09PM
Show HN: ts-npm-template – Template to bootstrap NPM package with TypeScript https://ift.tt/9gNXHYM
Show HN: ts-npm-template – Template to bootstrap NPM package with TypeScript https://ift.tt/z9dxYwP May 14, 2023 at 06:06PM
Show HN: Botecko, a gpt4 client that simulates an instant messenger https://ift.tt/ufOF1tR
Show HN: Botecko, a gpt4 client that simulates an instant messenger This is a simulation of an instant messenger running on the browser. It generates contacts (including the profile picture) based on a single sentence. All chat history is stored on your browser. Features: - Open source (apache 2) - Profile generation including picture - Prompt with plan-ahead in 4 steps. This improves the response and also gives a way to debug the character motivation. - Group Chat. Get new insights by making characters with different opinions talk to each other. If you don't have an openAi account you can check a demo here https://youtu.be/e07yjZJGnYo https://ift.tt/mFW7nSB May 14, 2023 at 06:07PM
Show HN: WhyBot, making GPT-4 question itself https://ift.tt/3FR1I4h
Show HN: WhyBot, making GPT-4 question itself Hi HN — we’re John and Vish! We built WhyBot, a tool to help you deeply explore a question or topic. You ask a question, and WhyBot responds by building an ever-expanding knowledge graph. It does this by recursively generating answers and follow-up questions. You can change its persona to change the flavor of the generations (try toddler mode!). We originally built this for the AngelList Agent Hackathon ( https://twitter.com/AqeelMeetsWorld/status/16502799744050421... ) and got a lot of interest from folks asking to play around with it. So we thought it’d be fun to brush it up and release it as a web app! It’s a work in progress and we plan on adding more features, such as saving, sharing, focusing on one branch and potentially executing code. We hope you enjoy playing around with it and would love to hear any of your feedback or thoughts. https://ift.tt/PAkcUKV May 14, 2023 at 09:47AM
Show HN: Bytebase – a GUI-based database schema change tool for developers https://ift.tt/NFDitj2
Show HN: Bytebase – a GUI-based database schema change tool for developers https://ift.tt/hGEqDNp May 13, 2023 at 11:36PM
Subscribe to:
Posts (Atom)
Show HN: Do You Know RGB? https://ift.tt/t8kUpbO
Show HN: Do You Know RGB? https://ift.tt/OWhvmMT June 24, 2025 at 01:49PM
-
Show HN: An AI logo generator that can also generate SVG logos Hey everyone, I've spent the past 2 weeks building an AI logo generator, ...
-
Show HN: Snap Scope – Visualize Lens Focal Length Distribution from EXIF Data https://ift.tt/yrqHZtDShow HN: Snap Scope – Visualize Lens Focal Length Distribution from EXIF Data Hey HN, I built this tool because I wanted to understand which...
-
Show HN: Federated IndieAuth Server implemented as a notebook https://ift.tt/32IC633 April 27, 2021 at 04:37PM