View Posts for Software Engineering

  • Leptos 0.7 GetRandom Wasm JS Issue

    |
    Updated at

    You'll upgrade leptos at some point and encounter an issue related to getrandom. It's not really a leptos issue since it still uses 0.2, but more of when Leptos builds for wasm target.

    Getrandom crate was updated to 0.3. Leptos uses 0.2 still, but because Leptos uses wasm target for hydrate and your current system target for ssr, you'll be confused on what the issue is. Most likely you brought in a crate like uuid that brings in latest getrandom and uuid is included on the hydrate wasm build.

    Solution 1

    Disabl...

  • Using Rust/Leptos For Frontend Dev on All My Properties

    |
    Updated at

    I hope this is the last shift. I fully got rid of NodeJS from my public websites. This blog was the first to use Leptos for SSR for SEO purposes. I used CSR for a good amount of time with lit-element.

    I got tired of NodeJS constantly breaking good working code with their needless changes. You can't really upgrade, so you are stuck, so I say F IT and just moved away from using it. Moving to rust for frontend meant far smaller binary sizes (300+mb -> 25mb) and 50% or more cut in memory usage for the same funct...

  • Continue.dev is a Great AI Coding Assistant Plugin for VSCode

    |
    Updated at

    and Microsoft Phi 4 is one of the better smaller local AI models to run on your computer via Ollama.

    The secret with Continue.dev is learning what and how to use Contexts and how to configure the plugin. I was wondering how I could get AI to program like I would and contexts provide exactly that ability. The plugin indexes your code and provides special "tags" to reference your code, file, folders, etc.

    With Contexts (Prefix with @), you can ask AI questions about your whole project, refer to structs, classes...

  • Open AI Models Getting Better At Coding Tasks

    |
    Updated at

    I'm a use any tool that helps you kind of person, so I like GPT-4o and Claude for coding tasks, but open models are getting much better. Problem is models like GPT and Claude require an internet connection. Open models like LLaMA 3.2 does not, which confers benefits for employees at companies looking to increase their productivity.

    Here are several Leaderboards measuring code model performance:

    1. https://prollm.toqan.ai/leaderboard/coding-assistant

    2. https://aider.chat/docs/leaderboards/

    3. https://evalplus.g...

  • Building MyRocks for MySQL 8, Fedora

    |
    Updated at

    I find myself annoyed when building something that more things are needed than what the instructions say.

    The build steps: https://github.com/facebook/mysql-5.6/wiki/Build-Steps

    You follow these steps and are stuck at cmake which complains about out of source builds. Wtf does that mean. Then you get past that and now you need to install more libraries. UGH. After that it complains about needing BOOST 1.77 which is already in the directory. Finally you get to make and now hamstrung by some perl build error! I ...

  • Saving More Space In My Time Series Database

    |
    Updated at

    I created a Time Series Database for private use and am also looking to figure out ways to decrease on/off memory space and simplify things.

    Typically a time series database will store values into an inflexible 64bit number such as a long integer or double precision float. I did that at first just to get something done, but branched out into having public types separated from internal types. The idea instead is to expose things like percent, normalized value, integer, rational, etc. I would map those into in...

  • I Created A Time Series Database (TSDB), Finally

    |
    Updated at

    It's a big step forward. I've talked about Data Collection, Monitoring and Visualization before, so this has always been on my mind. Just glad to get something down now.

    My Idea has been a TSDB/LogDB on every machine that can send to a historical store. One should be able to query and stream observable data from any machine from an authorized point of access to diagnose issues. With that streaming capability, my idea has been that you could create rules that trigger violations and enough/combination of viola...

  • Bitcode (De)Serialize is slower than RMP-Serde and Bincode 1.3.3 Serde

    |
    Updated at

    I assert that rmp and bincode are much faster than bitcode despite the "rust serialization benchmark". Bitcode is highly compressible as well, it claims and that I will not test.

    There is this
    https://david.kolo.ski/rust_serialization_benchmark/ย and its comparing apples to oranges when it comes to bin code. Are you going to be reusing a bitbode buffer when typeically serializing and deserializing objects? How about using serde which most applications use. The benchmark is highly unrealistic.

    This is the result...

  • I Commit Secrets To Git Repositories

    |
    Updated at

    ๐Ÿ’€๐Ÿ˜ญ๐Ÿ˜

    Yes, and it would be bad if it weren't for C5Store's secrets handling. Secrets are encrypted before commit ๐Ÿ˜ฎโ€๐Ÿ’จ

  • ULID64 as a Compact Form of ULID

    |
    Updated at

    You might be thinking what is ULID? or Why not use UUID? This is why I don't use UUIDย for identity.

    ULID is essentially a sortable version of UUID4 with timestamp. It having a sortable property works out really well for indexes that rely on sortability like a B-Tree Index in MySQL or less so a Skiplist index in RocksDB. I use RocksDB a lot these days, still use MySQL. I'm using both of these databases for Project Starflash, in fact. Anyway, ULID is an absolute improvement over UUID4 for database indexes, but...