wis

Joined 10 years ago

Karma
204
Submissions
59
Member since
Nov 16
I like Lisp, SQLite and Lua. I know, what a surprise, just the typical HN user.

Olive Oil guzzler.

My Email Address is "mister" (but the shortened form) @wis.am

[ my public key: https://keybase.io/wis; my proof: https://keybase.io/wis/sigs/ywbFXIY7DKf8i5ATOQInEt6CX7CJpmi9SXqe2ln_Uss ]

View on Hacker News

Recent submissions

Comment · 4 months ago
Very nice, the rendered demo for all the file types appear to render flawlessly and load instantly on page load, and looking in the DevTools the parsers are split into different Wasm bundles for each file type xslx, docx and pptx:

  docx 458kb raw 217kb gzipped
  pptx 574kb raw 253kb gzipped
  xslx 601kb raw 269kb gzipped
I expected the Wasm bundles to be large and a lot more bigger than that for some reason.

ChatGPT.com can benefit from using this library (or such a library) for rendering a preview of the file in a side panel on the right, instead of just giving me a download link to the outputted/transformed docx/pptx/xslx file.

Comment · 4 months ago
Comment · 1 year ago
Not an aviation expert or enthusiast, but I'd imagine in a commercial airliner if the gear was not deployed and the pilot was trying to land, at a certain point the plane would start yelling at the crew something like "NO GEAR" "NO GEAR" "NO GEAR (deployed)"

So I don't think a pilot can just "forget" to deploy the landing gear in a commercial airliner.

Comment · 1 year ago
Comment · 1 year ago
Comment · 1 year ago
Comment · 1 year ago
Comment · 1 year ago
But the article mentions that they intend to have full compatibility:

  > Our goal is to build a reimplementation of SQLite from scratch, fully compatible at the language and file format level, with the same or higher reliability SQLite is known for, but with full memory safety and on a new, modern architecture.
Comment · 1 year ago
Comment · 1 year ago
Comment · 1 year ago
Wow, 8 MiB, that's impressively small IMO. I expected a program that embeds V8 (let alone also having windowing and Skia) to have a binary size much bigger. something closer to Node's or Deno's binary size 40MiB+.

Using the Window.js approach of embedding V8, instead of using a windowing library + a Skia Canvas library in Node.js ─really makes sense if you would like to keep the binary size minimally small and only pay for the libraries/modules you actually pull in and use, instead of having them statically linked in the binary by default. For example, an offline app/game that doesn't use the network doesn't need to have a "net" or "http" module in the binary. These may be bad examples though, I don't know how much do those Node runtime modules constitute out of the final Node binary, it may be an insignificant fraction.

Comment · 1 year ago
Amazing project!

> but also embeds v8 for a very small runtime instead of using Node.

By how much does embedding just V8 instead of using Node.js decrease the binary size? Node.js uses V8, does most of Node's binary size come from its runtime and not V8?

I tried browsing the website and GitHub repo to find how many kBs or MBs typically is a Window.js binary, but didn't find an answer.

Comment · 1 year ago
Comment · 1 year ago
Yes! It's infuriating when Claude stops generating mid response and deletes the whole thread/conversation. Not only you lose what it has generated so far, which would've been at least somewhat useful, but you also lose the prompt you wrote, which could've taken you some effort to write.
Comment · 1 year ago
Yea, In my opinion using Python's list comprehension is more readable and code checkable.

Here's the usage example from the README:

  from leopards import Q
  l = [{"name":"John","age":"16"}, {"name":"Mike","age":"19"},{"name":"Sarah","age":"21"}]
  filtered= Q(l,{'name__contains':"k", "age__lt":20})
  print(list(filtered))
Versus:

  [x for x in l if ('k' in x['name'] and int(x['age']) < 20)]
Outputs:

  [{'name': 'Mike', 'age': '19'}]
Also from the readme:

  > Even though, age was str in the dict, as the value of in the query dict was int, Leopards converted the value in dict automatically to match the query data type. This behaviour can be stopped by passing False to convert_types parameter.
I don't like this default behavior.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton