f-strings

String interpolation for Lua (by hishamhm)

F-strings Alternatives

Similar projects and alternatives to f-strings

  1. cosmopolitan

    build-once run-anywhere c library

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. LuaJIT

    Mirror of the LuaJIT git repository

  4. bython

    22 f-strings VS bython

    Python with braces. Because python is awesome, but whitespace is awful.

  5. ljs

    Lua with C/C++/Java/Javascript syntax

  6. omnilua

    Every Lua, everywhere — pure-Rust Lua 5.1-5.5, suite-passing, LuaRocks-compatible, wasm-ready.

  7. Torch

    http://torch.ch

  8. ljsjit

    Luajit with C/C++/Java/Javascript syntax

  9. CorsixTH-ljs

    A port of CorsixTH to LJS

  10. premake-core

    Port of premake5 to LJS (by mingodad)

  11. snabb-ljs

    Snabb packet networking converted to ljs

  12. raptorjit-ljs

    Applying ljs to raptorjit

  13. ZeroBraneStudioLJS

    Port of ZeroBraneStudio from lua to ljs

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better f-strings alternative or higher similarity.

f-strings discussion

Log in or Post with

f-strings reviews and mentions

Posts with mentions or reviews of f-strings. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2026-06-24.
  • LuaJIT 3.0 proposed syntax extensions
    14 projects | news.ycombinator.com | 24 Jun 2026
    5.5 introduced global which makes better use of attributes as well. of course, I don't deny how great it would be to not type <> or local const since const would already imply a local

    > string interpolation

    Hisham already made this nice module https://github.com/hishamhm/f-strings Which I don't dare use, even if you don't have string interpolation. Of course, I don't care because I just have a table.format(tbl, "tbl.key is %{key}"), is it a little tedious? sure, but its just a gsub call.

    > short form function syntax

    I disagree with this, I've always wanted it and roll my eyes as I write/create a function, especially when you like to use lots of them like

        str:gsub('%d+', (s){ tonumber(s)+1 })

Stats

Basic f-strings repo stats
1
95
-
over 5 years ago

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com