News for hackers. Stuff that matters.

btbytes

Re:Which programming languages are most token-efficient? on Sunday January 11, 2026 @09:13PM (#46583083)
Not surprisingly, it is J [1], an APL dialect.

[1] https://www.jsoftware.com/

Re:Microservices Should Form a Polytree on Friday December 12, 2025 @11:51AM (#46245919)
have you read about Erlang supervision trees? https://adoptingerlang.org/docs/development/supervision_tree...
Common things in all these Pro-Apple threads:

1. Macbook users who have/are using non-Apple laptops that find the average work-issued Intel laptops to be just meh or worse.

2. People that only buy some exclusive Lenovo, Framework laptops (that are not that common out in the real world (e.g: in US)) refuse to acknowledge the positive experience of Macbook owners.

I have had only 3 personal MacbookAir/MBPs since 2006 (and the previous i5 Mba is perfectly functional after a battery replacement and a HDD upgrade - sitting next to me running Mint Linux, that I plan to hand off to my 10yo.)

In the meantime, I've also had 4 other MBPs and 3 windows laptops through work.

In no way and form, the intel laptops were/are better than the macbooks on average.

Re:Uv format: Code Formatting Comes to uv (experimentally) on Friday August 22, 2025 @09:19AM (#44984325)
The new `uv format` is just a shortcut for `uv run --with ruff ruff`.
Re:Why LinkedIn Rewards Mediocrity on Sunday August 17, 2025 @11:48AM (#44932445)
For many years I went without looking at LinkedIn at all. I even deleted my LinkedIn account for couple of years in mid '10s.

I have found a lot of value in LinkedIn recently after I started interacting with news, posts, and people that have something interesting to say. It is as if you tell the algorithm what you like, it will show more things like that.

I also proactively flag things I don't like to see. That also helps a lot in improving my feed, I assume.

Th "updates" feed with all the opentowork, hiring, promotions doesn't bother me much. it has it's uses, and its easy to just eyeball and move on.

What I don't understand is the grandstanding about how LinkedIn and its users are all dumb. You can always timebox your interactions with LinkedIn and ignore it rest of the time if you cannot afford to NOT have a LinkedIn account.

Oh! and learn to use the notification settings. Turn off email alerts etc.,

Re:PHP 8.5 Adds Pipe Operator: What it means on Tuesday August 05, 2025 @08:50AM (#44797377)
It is called Uniform [Function] Call Syntax.

D has had this for decade(s): https://tour.dlang.org/tour/en/gems/uniform-function-call-sy...

Nim too has it: https://nim-by-example.github.io/oop/

Re:Astro is a return to the fundamentals of the web on Wednesday July 09, 2025 @06:29AM (#44508253)
The number of web projects that fall into these categories vastly outnumber “complex” projects. For complex there is always WASM.
Re:Ask HN: Should we bring software dev in-house? on Friday August 09, 2024 @03:14PM (#41204566)
If you want to talk to someone who has been in the industry (both non-tech industry, to tech industry, to tech industry giants) for 20+, you can reach out to me. I'm happy to hop on a zoom/teams call. Contact info in bio.
Here's an implementation using plain javascript and a JSON file to store short-codes and target URLs: https://www.btbytes.com/posts/url-shortener.html
You don't have to override the template in the lua code to include the mvp.css file. use --css argument to set the location of the css file. it can even take multiple arguments (one for mvp.css and one for chartss.css).

In the current state, your "function Doc(" block upsets existing pandoc workflows.

Edit: didn't want to sound harsh with only the criticism :) Thank you for showing how to use lua-filters to do really cool stuff. I've playing with lua-filters, but your code is a clear example of how to extend markdown with a mini-DSL.

Edit 2: Sent you a PR on github with what I was suggesting here.

As user dvt mentioned, this is built using bookdown[1], an R library (with the help of Pandoc). You can see that the example chapter of this book looks exactly like the bookdown output[2]. The bookdown PDF explains in detail how to use Rmd+RStudio+R+Pandoc+Markdown to publish this.

[1]: https://bookdown.org/yihui/bookdown/ [2]: https://bookdown.org/yihui/bookdown/bookdown.pdf

Re:My Vision of D’s Future on Tuesday October 15, 2019 @08:36PM (#21265797)
D's default package manager already allows you to write code like this which 1. runs the code like a script 2. downloads dependencies if they are required.

    #!/usr/bin/env dub
    /+ dub.sdl:
        name "allthepythons"
        dependency "d-glob" version="~>0.3.0"
    +/

    import std.stdio : stdout;
    import glob : glob;
    
    void main () {
        foreach (entry ; glob("/usr/local/bin/python*")) {
            stdout.writefln("%s", entry);
        }
    }
Re:A Love Letter to Personal Websites on Tuesday September 17, 2019 @06:35PM (#21000774)
This is good advice. I'm collecting websites like this ("handmade") here - https://www.btbytes.com/websites.html

My own website is compiled together with a python script, but aesthetically close to what you describe.

Re:Weighted blankets might ease insomnia and anxiety on Thursday September 05, 2019 @09:27AM (#20886419)
There is a whole book on the ill effects of too much light in modern times -- Lights Out (https://www.simonandschuster.com/books/Lights-Out/T-S-Wiley/...)
Re:Interesting Programming Languages on Saturday July 20, 2019 @10:07PM (#20489535)
nim/zig/red.

* I already use nim and I'm very productive in it. * Would like to use Zig for "system programming" when and if something like Nim (and D) are inadequate. * Red because its a REBOL and it can be a mind blowing experience to read some clever REBOL/Red code.

Re:Interesting Programming Languages on Monday July 15, 2019 @06:21AM (#20439435)
I have a whole page on nim here - https://www.btbytes.com/nim.html

Edit:typo

Re:Interesting Programming Languages on Sunday July 14, 2019 @10:34PM (#20437706)
I'm the author. You are right. I think the above are all "mainstream" enough for me.

At the least, I've installed and played with them all at one time.

Re:Base-4 fractions in Telugu on Monday July 03, 2017 @06:17PM (#14691868)
My comment was about the presence of culturally rich languages in India, including Tamil. You and the original commenters have made this about Tamil's antiquity. Why the low self-esteem and victim complex? This is not forum/thread for that discussion..
Re:Base-4 fractions in Telugu on Sunday July 02, 2017 @03:35PM (#14683967)
Same with Tamil, Kannada, Bengali, Malayalam etc.,
Re:Faster Command Line Tools in D on Wednesday May 24, 2017 @07:06PM (#14414138)
So can you with D.

With D, in addition, you can link against C shared libraries (dynamic linking) AND you can write standalone libraries in D that even C can link against (see Mir/betterC).

AFAIK, you can do neither of these in Go.

I have an OpenShift account and now I'm shown an "additional action needed" page on login. When i complete it and hit submit, it tells me that email already exists.

Not at all pleasant :(

Re:Kotlin doesn’t need an LLVM backend (2016) on Monday May 01, 2017 @03:53PM (#14240899)
Excelsior JET -- https://www.excelsiorjet.com/ AOT compiler producing native binaries.
What does "cooked-in" mean in this context. Never heard of this expression before ;)
Re:Programming a Problem-Oriented Language (1970) on Tuesday September 30, 2014 @08:12AM (#8387722)
This is a better typeset version (without the bold font-face and using monospace for code):

https://github.com/btbytes/pol/raw/master/POL.pdf

Re:PHP: The Right Way on Saturday July 07, 2012 @05:44PM (#4212827)
I suggest that you open up the doc source on github so that you can attract contributions from people while still maintaining editorial control.

A good example is: python-guide.org -- http://docs.python-guide.org/en/latest/index.html

Re:Introducing Google Command line Tool on Friday June 18, 2010 @04:15PM (#1443449)
Quick recipe to make a blog post from the command line.

    $ cat - > newblogpost.txt
    type in what you have to say
    ^D
Use pandoc to convert the text bits to html bits

    $ pandoc newblogpost.txt -f markdown -t html -o newblogpost.html --no-wrap
Upload the transformed bits to blogger using the Google Command Line tool.

    $ google blogger post --title "Hello, world!" newblogpost.html
And you are done!

You can see the result here: http://btbytes.blogspot.com/2010/06/how-to-make-quick-blogpo...

Re:Ask HN: Lightweight Programmer's CMS? on Sunday July 12, 2009 @09:22AM (#700137)
Try http://github.com/btbytes/webgen.py . This is a static site generator written in Python.

It's a single Python file, with support to mardown, textile etc. The template is one single file too which is based on YUI.

I wrote one http://teh.appspot.com/ many months back. The source is here: http://github.com/btbytes/teh/tree/master
Thanks.

The feed is in Atom format. It works in Safari, but not in Firefox.

Feedvalidator tells me that the date does not follow RFC-3339. I'll fix that.

Older »