liblg

Languages and libraries

virtual machine library

SHOW HN2020

60points
20comments
#980of 3,028 in 2020
Top 33%of 2020 by points

How HN took it

CuriousMostly questions and neutral comments

1 positive, 7 neutral or asking, 1 mixed, 2 critical, out of 11 comments about the project. Thread score -0.07.

Design: 1 for, 2 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Design section of the README is helpful

    From 1 comment
    • The design section of the README is greatly appreciated! > The core loop uses computed goto, which means that new instructions must be added in identical order > Values are…
      matheusmoreira on HN

Objections

  • Built-in types are global, requiring lg_init and lg_deinit calls

    From 1 comment
    • I see, so it refers to the C storage class. There can be several virtual machine instances referencing the same built-in integer type instance. This imposes on users the need to…
      matheusmoreira on HN

Requests

  • Support user-defined data types without modifying the library's union

    From 1 comment
    • I see, so it refers to the C storage class. There can be several virtual machine instances referencing the same built-in integer type instance. This imposes on users the need to…
      matheusmoreira on HN
  • Performance improvements such as typed instructions or a JIT backend

    From 2 comments
    • > ideas on how to improve its performance further without making a mess are most welcome. One approach would be designing the input language for performance. In particular,…
      gergo_barany on HN
    • I see, so it refers to the C storage class. There can be several virtual machine instances referencing the same built-in integer type instance. This imposes on users the need to…
      matheusmoreira on HN

Questions

  • What is a global fundamental type and is there a local counterpart

    From 1 comment
    • The design section of the README is greatly appreciated! > The core loop uses computed goto, which means that new instructions must be added in identical order > Values are…
      matheusmoreira on HN
  • Why parameters are named underscore

    From 1 comment
    • This piqued my intrest. I’m a hobbyist C programmer so forgive me if this is a rudimentary question. What is the rationale/convention for naming a variable “_”? I’ve never seen…
      jiive on HN

Alternatives named

  • Lua register based VM

    From 1 comment
    • For those interested in the subject, another great read is Lua register based VM: https://webserver2.tecgraf.puc-rio.br/lua/local/source/5.1/lvm.c.html
      tarruda on HN
  • GForth super-instructions

    From 1 comment
    • You might want to peruse the C sources for GForth which has been under continuous development for 20 years or so. It introduced a concept called super-instructions that speeds…
      lebuffon on HN
  • LibJIT

    From 1 comment
    • > ideas on how to improve its performance further without making a mess are most welcome. One approach would be designing the input language for performance. In particular,…
      gergo_barany on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/24388687)