let it leave me like a long breath

let it dissipate or fade in the background

(no subject)

Profile

xax: purple-orange {11/3 knotwork star, pointed down (Default)
howling howling howling

Nav

  • Recent Entries
  • Archive
  • Reading
  • Tags
  • Memories
  • Profile

Tags

  • art - 2 uses
  • asteroid garden - 4 uses
  • code - 19 uses
  • demos - 1 use
  • dreams - 5 uses
  • ff7 fangame - 23 uses
  • fic prompts - 13 uses
  • gamedev challenge - 82 uses
  • hell game - 76 uses
  • nanowrimo - 11 uses
  • plants - 9 uses
  • process - 52 uses
  • programming - 51 uses
  • screenshots - 5 uses
  • writing log - 83 uses

May 2025

S M T W T F S
    123
45678 910
1112131415 1617
18192021222324
25262728293031
  • Mar. 28th, 2016
  • xax: purple-orange {11/3 knotwork star, pointed down (Default)
    [personal profile] xax
    • Current Music: Panic! At The Disco - Hallelujah
    Tags:
    • programming
    posted @ 03:12 am

    (i wrote the initial happstack webserver very ad-hoc and when i started thinking i might want to support JSON, for map generation initially, i just kinda grabbed some packages off of hackage and ended up with both Data.Aeson and Text.JSON despite how they both do the exact same thing (codify json in haskell). so aeson is... either hooked up into happstack natively, or at least much _easier_ to hook up into happstack, but w/e when i was putting this together i didn't know any of that.)

    (all of this is a very roundabout way of saying that for a very long time my json was double-encoded: when it was sent out as a response body i did Data.Aeson.encode . Text.JSON.encode, and i only noticed i did this -- and that it was weird -- when i started digging into the specific guts of the event api, since... if i output null it would come out as "null", and the more complex events were a mess of backslashes due to being escaped into a string. and i had to manually call JSON.decode on the javascript end.)

    (this all ended with me writing a ToJson (from aeson) instance for JSObject (from text.json), just transliterating one form of json encoding to another one. probably at some point i should go in there and pull out all the text.json bits & get rid of that dependency.)

    • Previous Entry
    • Add Memory
    • Share This Entry
    • Next Entry
    • Reply
Page generated Jan. 23rd, 2026 04:50 pm
Powered by Dreamwidth Studios

Style Credit

  • Style: (No Theme) for vertical