HackerTrans
TopNewTrendsCommentsPastAskShowJobs

rajangdavis

454 karmajoined 10년 전

Submissions

Patterns in Konnakol

algorithmicpattern.org
3 points·by rajangdavis·6개월 전·0 comments

comments

rajangdavis
·어제·discuss
Just out of curiosity, why are there no flat keys and ability to construct chords?

The website looks slick but I think from a functionality perspective, there is a lot lacking with this library. I am also not sure what the value of MCP is here.

Without flat keys (and double sharp/double flats), there is quite a bit of harmonic space that is omitted.
rajangdavis
·지난달·discuss
This is really strange, but the link provided has an iframe pointing to https://mimo.xiaomi.com/coder

When you look at the source, you can set it to English from the params https://mimo.xiaomi.com/coder?lang=en but there's a small bug, the hero subtitle isn't translated but everything else is.

Wondering why this is in an iframe.... so strange
rajangdavis
·2개월 전·discuss
Throwing out this idea, but would you ever consider making your own version of Github?
rajangdavis
·5개월 전·discuss
Am I crazy or is this AI generated?

Parts like `No boilerplate, no imports, no build system. Just Ruby being Ruby.` and `The insight behind Shoes wasn't technical—it was emotional` seem to fit a pattern I frequently see in AI Generated output.

Even the structure of the blog post follows a pattern I see in AI generated text with the section of `Why This Matters`.
rajangdavis
·6개월 전·discuss
The more I use AI, the more I think about the book Fooled By Randomness.

AI can take you down a rabbit hole that makes you feel like you are being productive but the generated code can be a dead end because of how you framed the problem to the AI.

Engineers need enough discipline to understand the problems they are trying to solve before delegating a solution to a stochastic text generator.

I don’t always like using AI but have found it helpful in specific use cases such as speeding up CI test pipelines and writing spec; however, someone smarter than me/more familiar with the problem space may have better strategies that I cannot of think of, and I have been fooled by randomness.
rajangdavis
·7개월 전·discuss
This is really neat, thank you!
rajangdavis
·7개월 전·discuss
I have been programming with Ruby for 11 years with most of the time in a professional context. It's my favorite language :).

I don't care much for types, but it can be useful with denser libraries where IDE's can assist with writing code. It has been helpful in my professional life with regards to typed Python and Typescript.

One potential example that would be interesting is utilizing types for reflection for AI tool calling, the python library for Ollama already supports this[0].

It would make it easier to use such tools in a Ruby context and potentially enhance libraries like ruby-llm [1] and ollama-ruby [2].

[0] https://docs.ollama.com/capabilities/tool-calling#using-func...

[1] https://rubyllm.com/

[2] https://github.com/flori/ollama-ruby
rajangdavis
·7개월 전·discuss
If it is at all possible, it would be nice to have a little bit better support for metaprogramming namely around `define_method` and supplying a typed lambda or block for the dynamic method. I can see why this would be a pain to implement, so I don't expect it :).

Otherwise, I think in terms of typed Ruby, this is an incredible undertaking with very well written documentation. Thank you for making this library, I think there's a lot that the Ruby community can benefit from with it. Cheers!
rajangdavis
·8개월 전·discuss
I've gotten a couple of posters and shirt from this store: https://mcescher.com/shop/
rajangdavis
·3년 전·discuss
I made an app to control my pedalboard via WebMIDI

https://github.com/rajangdavis/macrocosm_js

Was inspired by some existing editors so I made my own and extended it to create macros for sending sysex/PC messages to multiple devices.
rajangdavis
·6년 전·discuss
A few years ago, I had this bright idea of updating a site I maintained to be a single page application (SPA). I was very inspired by this site (https://pocketjavascript.com/blog/2015/11/23/introducing-pok...) and thought it would make the user experience a lot better by making the site easier to navigate.

I preloaded data such that a user could navigate via search or clicking through some drill-down menus without having to wait for a full page refresh. The data would hydrate the views so that the transition time between views was almost always fast, even on slow mobile traffic.

One aspect that was very difficult to figure out was incorporating views that would require more data from the server. Once a user drilled down to such a view, the challenge became how to load the view via AJAX without having to make another AJAX call to load more data.

The solution was to return server side rendered HTML instead of JSON...

Looking at the demo, this seems very similar to some of the things I had to do minus 95% of the hacky Angular/PHP code I had to set up.

This is a killer feature to have in Rails and I am looking forward to learn more of the conventions that will surround the implementation.
rajangdavis
·8년 전·discuss
I am thinking about building an app using Neo4j.

I built a prototype with Postgres but there were bottle necks in the IO and querying. Did some research and it turns Neo4j might be better suited.

The app is a beer recommendation system using data scraped from Beer Advocate. It makes recommendations based on the location of the user and beers that the user enters in.

Why a graph database might be suitable for this is that there are no null relationships with Neo4j. In my limited understanding, this means that full table scans don't need to occur for making recommendations based on location.

Supposedly cosine simularity and other recommendation algorithms are built in, so looking forward to using that.