Live data from Hacker News

Viewing profile — peter_lawrey

peter_lawrey

HN member
Joined
Wed, Jul 13, 2011, 12:30 PM UTC
HN karma
68
Public activity
95 items

About peter_lawrey

No profile information was provided.

Recent public activity

  1. comment
    Comment #48918008

    TL;DR: Markdown for AI working documents, AsciiDoc for curated human-reviewed specs, HTML only as a publishing target.

  2. story
  3. comment
    Comment #48832422

    AI has improved over the last 6 months, with quality in the mid-range. It takes less effort to get it to produce a mediocre-to-average-quality solution. In many cases, this is good…

  4. story
  5. comment
    Comment #48829041

    A common mistake appears to be that only when women have fewer than 1 child does the population drop long term...

  6. story
  7. comment
    Comment #48829011

    This post explores using AI as a mock User, something AI is particularly suited for. - AI remembers nothing from previous tests by default. - It has a broad knowledge set - It read…

  8. story
  9. comment
    Comment #48828984

    In this post I look at a simple event to response latency benchmark, MarketDataSnapshot to NewOrderSingle at 50K/s for 30 minutes using JLBH to test Chronicle-FIX. The goal is to c…

  10. story
  11. comment
    Comment #48808033

    Thank you for the feedback

  12. comment
    Comment #48808028

    Good feedback

  13. comment
    Comment #48806069

    This is a high-level article; for lower-level details, I also posted. https://blog.vanillajava.blog/2026/06/testing-java-memory-ma... https://blog.vanillajava.blog/2026/06/why-you-…

  14. comment
    Comment #41190073

    7 Frequently Asked Questions about Low-latency Microservices in 7 minutes

  15. story
  16. comment
    Comment #32846913

    Most Iterators should be placed on the stack anyway. If they are not and you have a random access collection like ArrayList you can use an index, but this is rarely needed. If you …

  17. comment
    Comment #32846891

    A friend of mine is working at Oracle on collections that support primitives e.g. List , Set https://openjdk.org/jeps/8261529

  18. comment
    Comment #32846874

    Iterators tend to be placed on the stack in hot code. In the benchmark I had to make sure these object weren't optimised away.

  19. comment
    Comment #32846855

    Mutable objects have their own issues, which can catch people out by surprise. Having good test coverage is important.

  20. comment
    Comment #32846842

    Reusing your objects can be confusing for other developers. You need to be careful with anything exposed via an API, however internally you can me more optimised.

  21. comment
    Comment #32846829

    In each case the default settings were used (i.e. no options were provided). In both Java 8 (Parallel GC) and Java 11+ (G1), As the GC was a small portion of the time, changing the…

  22. comment
    Comment #32846785

    The GC isn't involved with allocation, the expensive bit here. The GC handles the clean up. The allocations create memory pressure that can easily saturate the bus to DDR if you ar…

  23. comment
    Comment #32846769

    Right, it's the total object count at runtime that matters, not how many lines of code could create an object.

  24. comment
    Comment #32846757

    This is where using a profiler like YourKit or Flight Recorder is your friend. It will show you the objects that can't be optimised away and where code bottlenecks are. It's hard t…

  25. comment