Log inSign up
meghan 🌻
4,334 posts
Image
user avatar
meghan 🌻
@nektro
29. 🏳️‍⚧️. building @asthenoware. advocate @ziglang. previous @bunjavascript. longtime taylor swift fan.
San Francisco, CA, USA
github.com/nektro
Joined November 2011
490
Following
723
Followers
  • user avatar
    meghan 🌻
    @nektro
    Apr 27, 2024
    In the next version of Bun ClickHouse works
    ❯ bun index.ts
[
  {
    id: 1,
    name: "John Doe",
  }
]

/tmp/clickyhousey                                                                                                                                                                                                                                                                         22:23:23
❯ cat index.ts 
───────┬──────────────────────────────────────────────────────────────────────────────────
       │ File: index.ts
───────┼──────────────────────────────────────────────────────────────────────────────────
   1   │ import { createClient } from "@clickhouse/client";
   2   │ 
   3   │ const client = createClient({ url: process.env.CLICKHOUSE_URL });
   4   │ const rows = await client.query({ query: `SELECT * FROM test_table LIMIT 1` });
   5   │ const { data } = await rows.json();
   6   │ 
   7   │ console.log(data);
───────┴──────────────────────────────────────────────────────────────────────────────────
    27K
  • user avatar
    meghan 🌻
    @nektro
    May 3, 2019
    Replying to @nyloisbroke @Magistree and 5 others
    The common agreement is that tweets would only be editable for 1-5 mins after being sent so that that doesn’t happen
  • user avatar
    meghan 🌻
    @nektro
    Apr 19, 2019
    Replying to @RepStenyHoyer
    If you don't #ImpeachTrump then you've failed us just as much as the republicans have.
  • user avatar
    meghan 🌻
    @nektro
    Jul 28, 2019
    What a perfect encapsulation of what’s wrong with ‘blue lives matter’ and the twitter hate train
  • user avatar
    meghan 🌻
    @nektro
    Mar 9, 2024
    In the next version of Bun `bun run -` lets you run or pipe JavaScript, TypeScript, jsx & tsx from stdin
    ❯ echo "console.log('Hello')" | bun run -
Hello

~ 
❯ echo "console.log!('TypeScript!' as any)" > typescript.js

~ 
❯ bun run - < typescript.js
TypeScript!
    17K
  • user avatar
    meghan 🌻
    @nektro
    May 7, 2024
    In the next version of Bun Brotli compression is implemented in node:zlib
    ❯ bun brotli.js
:broccoli: Hello Brotli!

❯ bun-1.1.7 brotli.js # Before
1 | const zlib = require("zlib");
2 |
3 | const brotli = zlib.createBrotliCompress();
                   ^
error: zlib.createBrotliCompress is not implemented
      at node:zlib:2269:65
      at /Users/jarred/Desktop/brotli.js:3:16
❯ cat brotli.js
   1   │ const zlib = require("zlib");
   2   │
   3   │ const brotli = zlib.createBrotliCompress();
   4   │ const unbrotli = zlib.createBrotliDecompress();
   5   │
   6   │ brotli.end(":broccoli: Hello Brotli!");
   7   │
   8   │ unbrotli.on("data", (a) => console.log(a.toString()));
   9   │ unbrotli.write(brotli.read());
  10   │ unbrotli.end();
    11K
  • user avatar
    meghan 🌻
    @nektro
    Feb 24, 2021
    Replying to @Elias_Error
    “kidnapping charges” I mean that’s better than just a fine but this was straight up attempted murder
  • user avatar
    meghan 🌻
    @nektro
    Apr 3, 2024
    In the next version of Bun, Bun Shell supports positional arguments via $0 $1 through $9
    ~ 
❯ bun arg.js arg2 arg3
 ___________
< arg2 arg3 >
 -----------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

~ 
❯ bun-1.0.35 arg.js arg2 arg3 # Previously
 _______
< $2 $3 >
 -------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

~ 
❯ cat arg.js
───────┬──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
       │ File: arg.js
───────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   1   │ import { $ } from "bun";
   2   │ 
   3   │ await $`bunx cowsay $2 $3`;
    11K
  • user avatar
    meghan 🌻
    @nektro
    Mar 30, 2020
    Replying to @_michaeltcarter and @jaboukie
    this is one of those takes so shatteringly true I’m gonna need a minute to take it in
  • user avatar
    meghan 🌻
    @nektro
    Mar 30, 2024
    In the next version of Bun, Bun Shell supports "exit <code>"
    ❯ cat shell-exit.ts
───────┬───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
       │ File: shell-exit.ts
───────┼───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   1   │ import { $ } from "bun";
   2   │ $.throws(false);
   3   │ const { exitCode } = await $`exit 123`;
   4   │ console.log(exitCode);
───────┴───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

/tmp 
❯ bun shell-exit.ts # New
123

/tmp 
❯ bun-1.0.35 shell-exit.ts # Previously
bun: command not found: exit
1
    13K
  • user avatar
    meghan 🌻
    @nektro
    Apr 30, 2022
    started work a few days ago on a new native UI toolkit for building desktop applications on Linux. and its going to all be in #Zig. been programming for a long time but pretty new to native graphics. trying a new thing where I make a thread on here to show my progress
  • user avatar
    meghan 🌻
    @nektro
    Aug 19, 2021
    Replying to @domohussles and @lilplantmami
    extreme tourism is the gentrification of foreign lands. and the US literally stole hawaii from its people.
  • user avatar
    meghan 🌻
    @nektro
    May 17, 2024
    In the next version of Bun Response, Request, and Bun.file() get the "bytes" method to return content as a Uint8Array
    ❯ bun index.ts
Uint8Array(74) [ 123, 34, 109, 101, 115, 115, 97, 103, 101, 34, 58, 34, 78, 111, 116, 32, 70, 111, 117, 110, 100, 34, 44, 34, 100, 111, 99, 117, 109, 101, 110, 116, 97, 116, 105, 111, 110, 95, 117, 114, 108, 34, 58, 34, 104, 116, 116, 112, 115, 58, 47, 47, 100, 111, 99, 115, 46, 103, 105, 116, 104, 117, 98, 46, 99, 111, 109, 47, 114, 101, 115, 116, 34, 125 ]

~/src/test                                                   19:25:57
❯ cat index.ts
───────┬──────────────────────────────────────────────────────────────
       │ File: index.ts
───────┼──────────────────────────────────────────────────────────────
   1   │ const url = "https://api.github.com/v1/repos/oven-sh/bun";
   2   │ const response = await fetch(url);
   3   │ const bytes = await response.bytes();
   4   │ console.log(bytes);
───────┴────────────────────────────
    12K
  • user avatar
    meghan 🌻
    @nektro
    Apr 3, 2019
    How unaffected I thought I’d be by transphobia before transition vs how angry it actually does makes me

New to X?

Sign up now to get your own personalized timeline!

Create account

By signing up, you agree to the Terms of Service and Privacy Policy, including Cookie Use.

Terms·Privacy·Cookies·Accessibility·Ads Info·© 2026 X Corp.
Don't miss what's happening
People on X are the first to know.
Log inSign up