GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Notices by Paul Khuong (pkhuong@discuss.systems)

  1. Embed this notice
    Paul Khuong (pkhuong@discuss.systems)'s status on Saturday, 22-Nov-2025 20:41:08 JST Paul Khuong Paul Khuong
    in reply to
    • ✧✦Catherine✦✧

    @whitequark for medium sized docs, I've had a hard time justifying better compression algorithms than gzip, since gz encoding is so widely supported you can almost blindly stick verbatim it in your response. zstd soon though.

    In conversation about 7 months ago from discuss.systems permalink
  2. Embed this notice
    Paul Khuong (pkhuong@discuss.systems)'s status on Monday, 10-Nov-2025 15:06:19 JST Paul Khuong Paul Khuong

    API design q: how much do we hate the implicit transform stack in opengl?

    In conversation about 8 months ago from discuss.systems permalink
  3. Embed this notice
    Paul Khuong (pkhuong@discuss.systems)'s status on Friday, 17-Oct-2025 09:18:22 JST Paul Khuong Paul Khuong
    in reply to
    • ✧✦Catherine✦✧
    • Jann Horn

    @whitequark @jann p99.9 on real S3 is surprisingly trash. You need request hedging for reasonable tail latencies… but I have no idea if that even work on S3-compatible service of the day.

    In conversation about 9 months ago from discuss.systems permalink
  4. Embed this notice
    Paul Khuong (pkhuong@discuss.systems)'s status on Saturday, 23-Aug-2025 06:10:14 JST Paul Khuong Paul Khuong

    is there a nice replacement for std::sort that's a lot smaller, even if slower?

    In conversation about 10 months ago from discuss.systems permalink
  5. Embed this notice
    Paul Khuong (pkhuong@discuss.systems)'s status on Sunday, 13-Jul-2025 20:25:50 JST Paul Khuong Paul Khuong
    in reply to
    • Hailey
    • ✧✦Catherine✦✧

    @whitequark @hailey one of the most infuriating moments using rust async was when I used block_on to hide async implementation details, and that worked fine in a blocking context (with C in the middle of the call stack). But then someone used the same code in an async context, and that panicked.

    In conversation about a year ago from discuss.systems permalink
  6. Embed this notice
    Paul Khuong (pkhuong@discuss.systems)'s status on Sunday, 13-Jul-2025 20:11:29 JST Paul Khuong Paul Khuong
    in reply to
    • Hailey

    @hailey The problem is that async runtimes want to take over the whole execution, so any component that wants to be explicit about exposing concurrency in its implementation ends up leaking in callers that don't, or has to implement an inefficient adapter. There wouldn't be a colouring problem if it were easy to block on async values and return the result the same way as a blocking call. But no, my microbenchmarks!

    In conversation about a year ago from discuss.systems permalink
  7. Embed this notice
    Paul Khuong (pkhuong@discuss.systems)'s status on Wednesday, 09-Jul-2025 12:33:01 JST Paul Khuong Paul Khuong
    in reply to
    • Rich Felker
    • [object Object]

    @dalias @ireneista @zzt i worked at a place that did that and it was non-trivial to find significant space improvements. I don't think it makes sense to claim JSON is necessarily orders of magnitude larger than a raw binary representation and that the memcpy yardstick is thus a useless metric. Or at least, it makes as much sense as claiming the same for fixed width VS variable width binary.

    In conversation about a year ago from discuss.systems permalink
  8. Embed this notice
    Paul Khuong (pkhuong@discuss.systems)'s status on Wednesday, 09-Jul-2025 12:15:29 JST Paul Khuong Paul Khuong
    in reply to
    • Rich Felker
    • [object Object]

    @dalias @ireneista @zzt arrays are valid json. That's equally extensible as raw binary.

    In conversation about a year ago from discuss.systems permalink
  9. Embed this notice
    Paul Khuong (pkhuong@discuss.systems)'s status on Wednesday, 09-Jul-2025 12:04:46 JST Paul Khuong Paul Khuong
    in reply to
    • Rich Felker
    • [object Object]

    @dalias @ireneista @zzt all I'm saying is that json can be smaller than a binary fixed width format. So it's not obvious to me why the memcpy comparison is necessarily garbage.

    In conversation about a year ago from discuss.systems permalink
  10. Embed this notice
    Paul Khuong (pkhuong@discuss.systems)'s status on Wednesday, 09-Jul-2025 11:38:24 JST Paul Khuong Paul Khuong
    • [object Object]

    @ireneista @zzt I'm saying json can be smaller than binary when the latter is fixed width for the worst case. ASCII decimal gets you slightly over 3.3 bits/byte. Fixed width binary is 8b/B, but must be sized for the worst case, often with coarse granularity (1, 2, 4, or 8 bytes). It's not rare for the typical value < sqrt(worst case), especially once the worst case is rounded up to a nice bitwidth.

    In conversation about a year ago from discuss.systems permalink
  11. Embed this notice
    Paul Khuong (pkhuong@discuss.systems)'s status on Monday, 30-Jun-2025 00:47:44 JST Paul Khuong Paul Khuong
    in reply to
    • LR
    • Rich Felker

    @dalias @lritter pretty sure you can bucket iterators by ctz of their index, and keep the highest indexed iterator in each bucket.

    In conversation about a year ago from discuss.systems permalink
  12. Embed this notice
    Paul Khuong (pkhuong@discuss.systems)'s status on Sunday, 29-Jun-2025 22:12:53 JST Paul Khuong Paul Khuong
    in reply to
    • LR
    • Rich Felker

    @lritter @dalias you keep log n copies of earlier iterators (and always keep a copy of the initial iterator). The copies are more dense when you're closer to the current location (and fully dense just before)

    In conversation about a year ago from gnusocial.jp permalink
  13. Embed this notice
    Paul Khuong (pkhuong@discuss.systems)'s status on Tuesday, 15-Apr-2025 02:28:30 JST Paul Khuong Paul Khuong
    in reply to
    • Rich Felker
    • ✧✦Catherine✦✧

    @dalias @whitequark a lot of time devs don't want to tweak their crash reporter integration to filter out sensitive data, so the crash reporting server has to do it after the fact :/

    In conversation about a year ago from discuss.systems permalink
  14. Embed this notice
    Paul Khuong (pkhuong@discuss.systems)'s status on Monday, 17-Mar-2025 17:25:46 JST Paul Khuong Paul Khuong

    @jj git fetch/git reset?

    In conversation about a year ago from discuss.systems permalink
  15. Embed this notice
    Paul Khuong (pkhuong@discuss.systems)'s status on Thursday, 23-Jan-2025 01:16:01 JST Paul Khuong Paul Khuong
    in reply to
    • mcc

    @mcc movzx/sx for widening. regular mov for narrowing, but be mindful of partial dependencies on 8 and 16 bit destinations (16b in particular).

    The size suffix is an at&t special and not part of the ISA (which also has movd/movq…)

    In conversation Thursday, 23-Jan-2025 01:16:01 JST from discuss.systems permalink
  16. Embed this notice
    Paul Khuong (pkhuong@discuss.systems)'s status on Thursday, 23-Jan-2025 01:15:59 JST Paul Khuong Paul Khuong
    in reply to
    • mcc
    • William D. Jones

    @cr1901 @mcc 16 bit ops are extra slow nowadays (no one uses them).

    In conversation Thursday, 23-Jan-2025 01:15:59 JST from discuss.systems permalink
  17. Embed this notice
    Paul Khuong (pkhuong@discuss.systems)'s status on Monday, 06-Jan-2025 12:02:47 JST Paul Khuong Paul Khuong

    So, the MOAR LAYERS folks like log-sum-exp… do we know if one tried to replace log with a bitcast of float to int, and exp with the reverse? In a float world, the cost is int -> float after bitcast, and float -> int before bitcast.

    In conversation Monday, 06-Jan-2025 12:02:47 JST from discuss.systems permalink
  18. Embed this notice
    Paul Khuong (pkhuong@discuss.systems)'s status on Tuesday, 17-Dec-2024 07:09:50 JST Paul Khuong Paul Khuong

    Let's say you know the input is an exact multiple of your integer divisor. Does that let you come up with a smaller div-by-mul constant?

    EDIT: I don't mean a reciprocal inverse mod 2^w, but literally a fixed point div by mul (which also avoids the need to ensure the divisor is odd).

    https://discuss.systems/@pkhuong/113663255154088174

    In conversation Tuesday, 17-Dec-2024 07:09:50 JST from discuss.systems permalink

User actions

    Paul Khuong

    Paul Khuong

    https://pvk.ca

    Tags
    • (None)

    Following 0

      Followers 0

        Groups 0

          Statistics

          User ID
          306891
          Member since
          16 Dec 2024
          Notices
          18
          Daily average
          0

          Feeds

          • Atom
          • Help
          • About
          • FAQ
          • TOS
          • Privacy
          • Source
          • Version
          • Contact

          GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

          Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.