Goodbye LLMs

I’ve been on PTO for the past two weeks to recharge and I am feeling energized to go back to work tomorrow. Part of this is getting the rest I’ve needed and spending time on my hobbies. But another part of this is the massive shift in public opinion on LLMs and their usefulness. I thought LLMs were a dead-end tech and not a path to true AGI (Artificial Generalized Intelligence - the holy grail of computer science) around 2023 or 2024, so seeing the entire industry be fully onboard with this tech has been very demoralizing. It has done nothing but take up space from real research that could be happening. I used to love reading Hacker News every day to expand my knowledge, but the majority of the content the past few years have just been “how you can better utilize LLMs”. So let’s start by talking about the problems with them.

[Read More]
Tags: AI LLMs code programming tech 

Things I Like About Nim

Method Call Syntax

In Nim, a.f(b) is really just syntactic sugar for f(a, b). Note: they look like methods but aren’t attached to the type/object at all. Which function to call will be figured out at compile time, just like normal function calls.

You can use this to implement pseudo extension methods on standard types like strings:

import
  nim_utils/files,
  os,
  strformat

proc makeBackup(filename: string) =
  let backupPath = fmt"{filename}.bak"
  case filename.fileType
  of ftFile, ftSymlink:
    copyFile(filename, backupPath)
  of ftDir:
    copyDir(filename, backupPath)
  else:
    raise newException(IOError, fmt"Cannot make backup of {filename}")


for f in @["fstab", "systemd"]:
    fmt"/etc/{f}".makeBackup() # Same as makeBackup(fmt"/etc/{f}")

You can also use this to chain calls together nicely:

[Read More]

S3 on Flashblade

I currently work for a company called Pure Storage. One of their products is called Flashblade. I couldn’t find any examples on how to use Flashblade’s S3 capabilities programmatically anywhere online, so I’m putting this out to hopefully help people realize they can move their object store into their data center with very little changes to their code.

Code Snippets

Most of the work with the libraries I’ve used involves figuring out how to get the client configured properly. Once that’s done, all of the methods work just like they do with Amazon S3.

[Read More]
Tags: tech programming code