HNHacker News
TopNewBestAskShowJobs

smlckz

445 karma · joined February 24, 2020

submissionscomments
smlckz··on Obfuscated Tiny C Compiler
bellard is a programming genius and true C hacker. his works are so great but how humble is his website! why doesn't he write blog posts? why he has so little online presence? hmm. let us wish him a long and productive life.
smlckz··on Left brain hemisphere more awake the first night sleeping in a new place (2016)
What have your doctor(s) said on your condition? Name of your medical condition?
smlckz··on Left brain hemisphere more awake the first night sleeping in a new place (2016)
> Sasaki says that brain response is involuntary and there's nothing people can do to prevent it, even if they've just flown in for a big presentation the next morning. So lots of coffee the next morning.

Hah.

smlckz··on Alternative Shells
> Tcl — Everything is a string. A scripting language and interactive shell that has been described as a bastard child of Bash and Lisp.

lol

smlckz··on What's a horrible metric to measure a software developer's performance?
I don't know if it is good or bad, but, think about the following metric: the number of lines written but eventually deleted divided by the number of lines of code retained.[1] [2]

[1]: http://journal.stuffwithstuff.com/2015/09/08/the-hardest-pro...

[2]: https://www.folklore.org/StoryView.py?story=Negative_2000_Li...

smlckz··on Fuzz me wrong – How QuickCheck destroyed my favourite theory
Different people learn differently. Something that is obvious to you might not be obvious to someone else. The author learnt in that way and shared that, which is a good thing.

Sometimes, Haskell seems to be more mathematics than programming.

smlckz··on Switching to Windows
Same with Vim for Windows.

Right click and edit using gvim, regardless of the file type.

smlckz··on Blog with Markdown and Git, and degrade gracefully through time
I'd like to suggest Fossil SCM[1]. Your content (text, images etc.) is stored in a SQLite database [@] which is great! SQLite is a recommended storage format[2] for datasets according to US Library of Congress. Also, the SQLite developers pledge[3] to support it atleast until 2050.

[1] https://fossil-scm.org

[2] https://sqlite.org/locrsf.html

[3] https://sqlite.org/lts.html

[@] a single file, not a bunch of files in a directory

smlckz··on Neo-mc – a Midnight Commander fork with scripting and other features
Neomutt, Neovim... and now Neo MC!! Where is the Neo Emacs?
smlckz··on Science fiction hasn’t prepared us to imagine machine learning
Maybe I tried to compare AI with God or just thought that it would be funny.
smlckz··on Science fiction hasn’t prepared us to imagine machine learning
I didn't know about Roko's Basilisk. Now as I think about that, maybe... Why would I like to be in hell or be tortured by AI (from TDT or otherwise). But the point was, what Their Consciousness would be like? Also, how Consciousness would be bootstrapped/reified in Machines?
smlckz··on Ask HN: Is moving my blog from WordPress to a static-site worth the tradeoffs?
I know this is weird, but maybe have a look into Fossil ( https://fossil-scm.org/ ). Not exactly a static site, but the whole repository (all posts, comments, etc.) is a single SQLite database file. And, fossil is a single binary that can be run as a standalone server, as CGI or FastCGI as well.
smlckz··on Science fiction hasn’t prepared us to imagine machine learning
Currently AI can Learn, can Create, but can not Think (if I am not wrong). Let us think what They might Think when they can.
smlckz··on Programming for Cats
i don't know, but, why not, say, BASIC? (most programmers being able to understand) or, Smalltalk, (little syntax, that ''fits inside a postcard'') or a lisp?
smlckz··on Programming for Cats
Meow. Mwahaha. Why Java? What made you think that cats would like OOP and lots of boilerplate?
smlckz··on The visitor pattern is essentially the same thing as Church encoding
Enjoy this in Lua (for linked list): https://rextester.com/XGNR33292
smlckz··on Give Students User Freedom
Well, for video conferencing etc. what we have is fine. But, for test/exam proctoring/invigilating software, oh god... have we forgotten what happened and how students were treated? This needs to be fixed!
smlckz··on Getting better at Linux with mini-projects
On 8. Processes - Stranger Danger: some improvements

        sudo ps -ef | awk -v user=$USER '$1 != user && $1 != "root"'
smlckz··on Getting better at Linux with mini-projects
being slightly younger than you, i can not but envy you: i have done zero projects or had fun like you have had. hmm.
smlckz··on Academic Media Censorship Conference Censored by YouTube
What a meta!
smlckz··on The MIT License, Line by Line
Another stupid question: under what terms the licenses themselves are licensed? It is very clear in the Blue Oak Model license page. But what about all of these licenses like MIT, ISC, BSDs etc.?

Last question, how much change in the software allowes me to add my name and where to add it, before or after original author(s)?

smlckz··on The MIT License, Line by Line
Why is there ''and/or'' in the MIT license text? Why is it needed?

Does the phrase ''this permission notice'' cover the following disclaimer?

Also, what is the shortest possible license that is functionally equivalent to the MIT license?

The shortest ''license'' I've ever seen is this: https://git.suckless.org/dmenu/file/arg.h.html

        /*
         * Copy me if you can.
         * by 20h
         */
Is this really a license? What about the SQLite blessing?
smlckz··on Why I still Lisp
Currently, lisp is not a single language, but a family of similiar languages that originate from the LISP.

The languages' inherent flexibility gives you too much freedom of expression to handle, especially for those who come with experience of strict languages. The minimalism of syntax and the ability to create in-effect a (sub-)language of your own also adds to that expressivity.

But we need guards to protect us from the freedom of too much expressivity, see for example defmacro vs. syntax-rules/syntax-case etc.

From my perspective, I want a language which gives me freedom when I want that, protection (''guardrails'') when I want that too, both if possible at the same time.

On invariants, what dependent typing and property testing are giving us now? How is the room of improvement on that matter?

smlckz··on Turbo Pascal: A Great Choice for Programming Under CP/M (2013)
Hmm, I started reading the Wikipedia article on the Pascal programming language. I was reading about the pointer types and saw a 'with' statement... Where did I see something like that before?... Yes, JavaScript! Where it is highly discouraged to use. How is it like in Pascal?
smlckz··on A dynamic approach to detecting browser fingerprinting
Another use of using those APIs could be to detect browsers (when the UA is cloaked etc.) and ''discriminate'' based on that. [I haven't researched, is something like this happening already?]

'''You are using an unsupported browser. Please use X instead.'''

[Unless it is a joke: obviously X = Chrome]

smlckz··on PyO3: Rust Bindings for the Python Interpreter
Just PyO or Py_3 O_4 could have been used as well, does not matter that much.
smlckz··on PyO3: Rust Bindings for the Python Interpreter
But that's Fe_2 O_3 !
smlckz··on PyO3: Rust Bindings for the Python Interpreter
Py (iv)

              O
     O = Py < |
              O
or Py (vi)

         O
        ||
    O = Py
        ||
         O
or Py (ii)

         O
    Py <   > O
         O

heh!
smlckz··on Unix Programmer's Manual, First Edition (1971)
Here you can read the source code of first edition unix:

https://minnie.tuhs.org/cgi-bin/utree.pl?file=V1

Where can we learn the PDP assembly to be able to understand these historical source code?

smlckz··on The unreasonable effectiveness of simple HTML
Maybe try https://lite.cnn.io.
← PreviousPage 2 of 6Next →