James Kim (jameskim)

James Kim

Building fully onchain games @fruitlingvalley prev eng at OP Labs, South Park Commons, Harvard CS

842 Followers

Recent casts

@fruitlingvalley unwrapping the tech behind the UX part 1 Starting a series of technical posts to discuss how Fruitling Valley works behind the scenes. 😀 Part 1: Optimistic Actions If you tap to harvest, animations and harvested fruit should be visible instantly—not 6 seconds later, when the transaction confirms. We have around 40 types of actions to support (plant, hatch, build, collect, ...) ⛓️ A typical onchain flow looks like this: 1. Tap to harvest 2. Send transaction (~1s) 3. Wait for inclusion (~2s) 4. Wait for receipt (~ 4s) 5. Parse logs 6. Update state That’s multiple seconds before the player sees any feedback. For a game, that’s UNACCEPTABLE. 🍓 How Fruitling Valley works 1. Press harvest 2. *Simulate the transaction locally (< 50ms)* 3. Update state *immediately* 4. Send the transaction onchain 5. Wait for tx confirmation 6. If logs match → nothing changes 6.b. If logs differ → recompute + re-render The player experiences instant feedback. The chain remains the source of truth.

  • 3 replies
  • 9 recasts
  • 37 reactions

can't look at this fruitling the same way anymore 🥭 thank you @fucory for ruining this mango for me forever

  • 9 replies
  • 4 recasts
  • 45 reactions

Top casts

@fruitlingvalley unwrapping the tech behind the UX part 1 Starting a series of technical posts to discuss how Fruitling Valley works behind the scenes. 😀 Part 1: Optimistic Actions If you tap to harvest, animations and harvested fruit should be visible instantly—not 6 seconds later, when the transaction confirms. We have around 40 types of actions to support (plant, hatch, build, collect, ...) ⛓️ A typical onchain flow looks like this: 1. Tap to harvest 2. Send transaction (~1s) 3. Wait for inclusion (~2s) 4. Wait for receipt (~ 4s) 5. Parse logs 6. Update state That’s multiple seconds before the player sees any feedback. For a game, that’s UNACCEPTABLE. 🍓 How Fruitling Valley works 1. Press harvest 2. *Simulate the transaction locally (< 50ms)* 3. Update state *immediately* 4. Send the transaction onchain 5. Wait for tx confirmation 6. If logs match → nothing changes 6.b. If logs differ → recompute + re-render The player experiences instant feedback. The chain remains the source of truth.

  • 3 replies
  • 9 recasts
  • 37 reactions

can't look at this fruitling the same way anymore 🥭 thank you @fucory for ruining this mango for me forever

  • 9 replies
  • 4 recasts
  • 45 reactions

Yo_forks_are_nice_or_not_nice_or_whatever_but_can_a_dev_please_fix_the_fucking_network_congestion_so_I_can_evolve_my_Juicy_Melon_into_a_Heavy_Juicy_Melon_and_then_get_back_to_gathering_Tree_Logs_so_I_can_upgrade_my_Town_Hall_and_my_grafting_station_to_get_Dubai_Strawberries_which_I_can_then_sell_for_gold_to_buy_more_plots_of_land_and_then_eventually_unlock_fishing.jpg

  • 3 replies
  • 8 recasts
  • 27 reactions

am I doing AI x Crypto right? Roastcaster - get roasted by AI about your onchain activity 🔥 buidled with @0xdesigner & @mattkim https://roastcaster.xyz

  • 10 replies
  • 5 recasts
  • 22 reactions

Onchain profile

Ethereum addresses