Marginalia Search, Money, C++, Rust, AI, Stuff

(marginalia.nu)

59 points | by Curiositry 3 hours ago ago

11 comments

  • wannabe44 2 hours ago

    > I’d be on the hook for an AI subscription perpetually hoping and praying the token prices wouldn’t ever go up. This is a nonstarter for the same reasons the search engine runs on its own hardware and not in the cloud. You can’t be truly independent if you’re subject to the whims of a landlord.

    This is the redpill of our times.

  • theolivenbaum 2 hours ago

    At the risk of being one of those people shouting "but why not language X?", I'd suggest giving modern C# a serious look. Given the background in C++ and Java, it should feel fairly familiar, while being arguably much more expressive than either and offering excellent language and runtime support for writing allocation-free code.

    We've recently ported two large projects to C#, one from Java and another from C++, and seen performance improvements ranging from 30% to 300% faster, largely by focusing on eliminating allocations rather than doing anything particularly clever algorithmically.

    • Zambyte 2 hours ago

      > largely by focusing on eliminating allocations rather than doing anything particularly clever algorithmically.

      Did rewriting it in C# make this easier, or did rewriting make this easier?

    • giancarlostoro 2 hours ago

      Outside of .NET itself, C# is one of those rare things Microsoft got disgustingly correct. It's entire runtime is cross-platform and MIT licensed.

      • whs an hour ago

        I was going to learn C# then I realize it's probably the only language that still has commercial, non domain specific paid library. (eg. Paid react component is fine for me, but a paid circuit breaker library is not)

      • skydhash an hour ago

        > It's entire runtime is cross-platform and MIT licensed

        It does not run on OpenBSD. And I think it only got recently ported on FreeBSD. Yes, they are “small” platform, but lot of languages are there.

    • keyle an hour ago

      I'd claim this is the rewrite done by people that know what they're doing that is responsible for most of the gains vs. C#'s compiler to magically make things run faster.

      Sure the C# compiler is great and mature; and .NET Jit probably great too. But these massive gains can only be explained by "do less stoopid stuff".

  • cowlevel 3 hours ago

    I'm embarrassed to have forgotten about Marginalia recently. Is it still the web's best search engine within its domain?

  • nnevatie 29 minutes ago

    > Java

    Well, there's your first problem, when it comes to performance. Let's not kid ourselves - JVM is great, but it doesn't hold a candle to optimized native code.