Better HN
topnewbestaskshowjobs
Log inSign up

btbytes

71 karma · joined Aug 16, 2007 (19y ago) · 40 submissions

https://www.btbytes.com/

email: pradeep@ above

Submissions

comment 10mo ago · link · parent

Not surprisingly, it is J [1], an APL dialect.

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

comment 11mo ago · link · parent

have you read about Erlang supervision trees? https://adoptingerlang.org/docs/development/supervision_tree...

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

The new `uv format` is just a shortcut for `uv run --with ruff ruff`.

comment 1y ago · link · parent

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.,

comment 1y ago · link · parent

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/

comment 1y ago · link · parent

The number of web projects that fall into these categories vastly outnumber “complex” projects. For complex there is always WASM.

comment 2y ago · link · parent

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.

comment 6y ago · link · parent

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

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

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

comment 7y ago · link · parent

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);
        }
    }

comment 7y ago · link · parent

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.

comment 7y ago · link · parent

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/...)

comment 7y ago · link · parent

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.

comment 7y ago · link · parent

I have a whole page on nim here - https://www.btbytes.com/nim.html

Edit:typo

comment 7y ago · link · parent

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.

comment 9y ago · link · parent

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..

comment 9y ago · link · parent

Same with Tamil, Kannada, Bengali, Malayalam etc.,

comment 9y ago · link · parent

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.

comment 9y ago · link · parent

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 :(

comment 9y ago · link · parent

Excelsior JET -- https://www.excelsiorjet.com/ AOT compiler producing native binaries.

comment 9y ago · link · parent

What does "cooked-in" mean in this context. Never heard of this expression before ;)

comment 12y ago · link · parent

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

12