HackerTrans
TopNewTrendsCommentsPastAskShowJobs

nandalism

no profile record

Submissions

[untitled]

1 points·by nandalism·3 yıl önce·0 comments

[untitled]

1 points·by nandalism·3 yıl önce·0 comments

[untitled]

1 points·by nandalism·3 yıl önce·0 comments

Ask HN: Can Google Play store no longer be disabled?

2 points·by nandalism·3 yıl önce·4 comments

[untitled]

1 points·by nandalism·3 yıl önce·0 comments

[untitled]

1 points·by nandalism·3 yıl önce·0 comments

Zig Meta-Programming

blog.deckc.hair
5 points·by nandalism·3 yıl önce·1 comments

Nim Meta-Programming – A Killer Feature

blog.deckc.hair
24 points·by nandalism·3 yıl önce·1 comments

Stop Building on Corporate-Controlled Languages

blog.deckc.hair
199 points·by nandalism·3 yıl önce·313 comments

Honk Avatars Are Perfect

blog.deckc.hair
1 points·by nandalism·4 yıl önce·1 comments

comments

nandalism
·3 yıl önce·discuss
There is also the [units] command from UNIX. I think the original was by Ken Thompson (AFAICR).

https://www.unix.com/man-page/v7/1/units/

$ units You have: 1 foot candle You want: lumens meter * 0.310896 / 3.2165097
nandalism
·3 yıl önce·discuss
Inspired by nullprogram's recent post on his alternative, libc-less, thread api.

I decided to see if I could replicated it in zig. I could, with caveats.
nandalism
·3 yıl önce·discuss
We need to bring ChatGPT into the modern age.

Plain ascii text output is a relic of previous century; the domain of the neckbeard!
nandalism
·3 yıl önce·discuss
I write a clone of the unix cmp utility.

(spoiler) I use zig SIMD features to make it faster than GNU cmp.
nandalism
·3 yıl önce·discuss
It's an interesting idea. If I had 2 phones I would probably install LineageOS on one of them and use that as my daily driver.

Keeping the other phone for banking only.
nandalism
·3 yıl önce·discuss
Many banks have gone this route.

Either no online access thru a website or requiring an app on your phone as part of the login process (which amounts to the same thing, no phone app, no banking).
nandalism
·3 yıl önce·discuss
I noticed a void in zig space. A wrapper for the pcre2 (perl regex) library (or any regex library). So I wrote one.

I briefly describe how wrapping C libraries works in zig and provide a complete (single file) zig wrapper for pcre2.
nandalism
·3 yıl önce·discuss
Inspired by a recent post on a D macro which generates an unrolled binary search, I wanted to see whether I could do the same thing in zig.

I could. Here it is...
nandalism
·3 yıl önce·discuss
Programmers need to stop working for free and stop aiding the normalization of free work.

No other profession works for free. On the rare occasions they do, they expect and receive massive social status boosts.
nandalism
·3 yıl önce·discuss
Is meta-programming possible in zig?

What can be done with comptime and how does it compare to Lisp and Nim?
nandalism
·3 yıl önce·discuss
I have recently started using the Nim programming language.

It has a killer feature: meta-programming.

Here I describe how I implemented a html templating system using Nim meta-programming.
nandalism
·3 yıl önce·discuss
Thank you, that was very informative.

> Any open source language could do the same without massive investment (many have). What I meant by this was wrapping other open source libraries like libsodium etc. rather than implementing crypto libraries from scratch. I, wrongly, assumed golang might also be doing that.

It is true I have no experience implementing cryptographic libraries.
nandalism
·3 yıl önce·discuss
(The one and only WalterBright! What an honour.)

Terribly sorry about that. I've moved you into the list. It's been a long time now but I really did like D and its meta-programming features.
nandalism
·3 yıl önce·discuss
Is that the same Anders Hejlsberg who developed Turbo Pascal and Delphi for Borland, another company which microsoft successfully crushed in the 80's and 90's? (Hint: It is).

We could have C# 30 years before we did if it weren't for microsoft.
nandalism
·3 yıl önce·discuss
Richard Stallman once said he'd rather use software that was slightly less good over non-free software.

If you think this is insane or don't understand the viewpoint, I refer you to the fable of the wolf and the dog. https://fablesofaesop.com/the-dog-and-the-wolf.html
nandalism
·3 yıl önce·discuss
I find myself only replying to people who disagree with me. That is sad.

I've added Vale to my blog post. It looks very interesting.

Congratulations on taking a stand for what you believe in.
nandalism
·3 yıl önce·discuss
I constantly hear that "we can't do it without corporations" and yet there are so many counter examples.

Most of the corporations were built on free languages and ecosystems which existed before they did.
nandalism
·3 yıl önce·discuss
Pip is separate from python itself. With a given language can I download packages with curl and install them myself? I think I can trust curl.

The problem is not only that the tool connects to the networks, but who is behind the tool. Google is a company whose business is collecting all the information on people it can. I don't think those in control of python/pip have the same incentives.
nandalism
·3 yıl önce·discuss
As I said I love golang. I invested a lot of my own time into learning it and its ecosystem. The time developers spend learning a language and its libraries should not be discounted.

Maybe we overestimate how much corporate backing is required to make a language a success. After all we had successful languages and ecosystems long before any corporations became interested in funding such things.

You mention golang's crypto. Is it true that all that code is native to the go project or are they mostly just wrapping other open source libraries which have been created by 3rd parties? Any open source language could do the same without massive investment (many have).
nandalism
·3 yıl önce·discuss
Remember when programming languages were free?

When your compiler/editor didn't call back to some corporation every time you compiled code?

When our package managers weren't linked to data aggregators watching our every move?

When we used free tools to build free software.