HackerTrans
TopNewTrendsCommentsPastAskShowJobs

mayyue

no profile record

Submissions

[untitled]

1 points·by mayyue·3 tahun yang lalu·0 comments

Deploy your own GPT-3 API with Docker and fly

github.com
24 points·by mayyue·3 tahun yang lalu·9 comments

How to handle 8 billion text files

may-blog.fly.dev
2 points·by mayyue·3 tahun yang lalu·1 comments

comments

mayyue
·3 tahun yang lalu·discuss
Finally got this working. I was unable to get this to play well with Node or Bun but I did get the <script> approach working.

For the CORS with Vite you can just set a config like so in vite.config.ts

import { defineConfig } from "vite";

export default defineConfig({ server: { headers: { "Cross-Origin-Embedder-Policy": "require-corp", "Cross-Origin-Opener-Policy": "same-origin", }, }, });

I was then able to just use this code example with one caveat (https://github.com/wasmerio/wasmer-js?tab=readme-ov-file#use...)

I had to update the SDK import with crossorigin="anonymous"
mayyue
·3 tahun yang lalu·discuss
Doing some more due diligence: https://docs.wasmer.io/javascript-sdk <-- this is the one source of truth on the docs.

Seems like they still have to update their stuff a fair few places...

Now I'm just struggling to use the package registry, none of the copy and paste examples have worked for me, but I'm sure I can figure it out. Will post here if I do.
mayyue
·3 tahun yang lalu·discuss
Note: I tried it with both Bun and Node, neither worked.
mayyue
·3 tahun yang lalu·discuss
Can anyone get the actual JavaScript example posted to work with Node or any JS runtime for that matter?

I tried it with Bun and I feel weird showing examples that don't seem to run.

> $ npm install @wasmer/sdk

```js import { Wasmer } from "@wasmer/sdk";

let cowsay = Wasmer.fromRegistry("cowsay"); let instance = await cowsay.entrypoint.run({ args: "\"Hello world\"" }); let output = await instance.wait(); ```

I also tried to use the <script> approach and I cannot get it working on a local dev server due to CORS.
mayyue
·3 tahun yang lalu·discuss
https://queercat.github.io/blog i write about random tech stuff that interests me at the time. haven't written in a minute but i'd like to again.

Magic The Gathering & 8 billion text files: https://queercat.github.io/blog/posts/on-magic-arenas-deck-l...
mayyue
·3 tahun yang lalu·discuss
Twitter has either disabled (or broken) the ability to view accounts and tweets without having an account. Which is... interesting.
mayyue
·3 tahun yang lalu·discuss
i thought it was interesting and few (3-4) people would like it. i ABSOLUTELY did not expect for anyone to actually look at this with any amount of thought nor care.

it is a hack that this works and is guaranteed something that does not make OpenAI happy. rewriting to reflect this.
mayyue
·3 tahun yang lalu·discuss
been working on making stuff, not sure if i'll finish this and figured i'd share it. :)