HNHacker News
TopNewBestAskShowJobs

schemescape

2,278 karma · joined February 16, 2020

-
submissionscomments
schemescape··on Unix shells and the current directory
Opening cmd.exe or PowerShell (or something else)?
schemescape··on Unix shells and the current directory
What should I be using instead?

I don’t mind cmd.exe and it launches instantly (same reason I frequently use notepad.exe for quick edits). That latter quality is very hard to find :)

Edit: but if you meant for scripting, yeah, batch files are terrible.

schemescape··on Writing a Debugger from Scratch: Stacks
Interesting to read that frame pointer omission may not be worth it:

> You'd think that saving a whole register would mean a performance improvement, right? Especially on 32-bit x86 code where registers are at a premium. But it turns out that the cost savings are really pretty neglible. A Microsoft research paper from 2009 talks about measurements that were made in the performance of Windows with and without frame pointers. They found that there was no statistically provable benefit of FPO, and it was decided to disable FPO in Windows XP SP2! A similar investigation was done by Fedora and it was found that performance was typically only 2% different. When Meta enabled frame pointers sometime around 2017, they compared performance between a comparable set of hosts with and without FPO and found no difference.

> So why do we continue using FPO? Probably to make life more difficult for people who write debuggers.

schemescape··on Sam Altman, Greg Brockman and others to join Microsoft
Don't forget Microsoft buying aQuantive for $6 billion in 2007 and then taking a $6.2 billion dollar writedown 5 years later.
schemescape··on Awesome Engineering Games
Note that it’s a very short game.
schemescape··on Flathub – The Linux App Store
Which calculator app is multiple gigabytes in size? How is that even possible!?
schemescape··on Lightweight Linux Distributions for Older PCs
> The best part is that Peppermint OS is free to download and try.

An odd comment. Isn’t that the case for all these distributions?

Edit to add: I would say a more interesting factor is being able to test drive from a USB drive without having to install anything.

schemescape··on I skipped to the ending
Not affiliated with the blog, but apparently Hugo generates an index.xml feed by default, so try this:

https://danangell.com/blog/index.xml

(I had the same question with a different site two days ago.)

schemescape··on No Man's Sky just keeps getting better
After fairly lonely exploration initially, seeing all the bases at the center of the galaxy (nearly 100 hours later) was a unique experience. Kind of like thinking you’re the last person on Earth and then stumbling upon other people.

It’s a fun game, but definitely much more breadth than depth. Still greatly enjoyed the exploration, especially when playing coop.

schemescape··on A standalone zero-dependency Lisp for Linux
The dumped images are not portable, right? I thought I read they can only reliably be run by the exact same build of SBCL.
schemescape··on A standalone zero-dependency Lisp for Linux
What’s the minimum kernel version required? (No need for an exact answer, I just want to know if it’s “in the last 3 years” vs “in the last 10 years” etc.)

And is it possible to resolve network names or do anything network related? (Or is it planned?)

I’m always looking for some way to create portable Linux binaries, and I happen to like Lisps. Right now, my best bets are Janet compiled against musl libc or maybe ECL… or just use Python (distributed as source)…

Edit to add: I love the idea. Great work!

schemescape··on Bubble sort in pure CSS
Despite the pressure to constantly hustle, it’s still ok to take a job just because it sounds fun*.

*Obviously, abusing CSS isn’t everyone’s idea of fun.

schemescape··on LispyWeb – modern front end language we deserve
Sounds interesting, but I didn’t see any actual code. Is this for Clojure?

Related: I was able to get pure s-expression pages using Parenscript, Spinneret, and cl-css in Common Lisp.

schemescape··on Why You Should Write Your Own Static Site Generator
I also did this, except the XML file itself was generated from a file system tree.

XSL did eventually add multiple outputs, but yeah: do not attempt :)

schemescape··on Why You Should Write Your Own Static Site Generator
The most commonly missing SSG feature for me is being able to transform relative links between Markdown files (which VS Code happily auto-completes for me) into relative links between the resulting HTML files.

Similarly hard to find is tagging posts based on file system metadata (e.g. everything in “posts/linux/“ should be tagged with “linux”).

schemescape··on Why You Should Write Your Own Static Site Generator
I created md2blog[1] specifically for this reason: it prevents you from making design decisions, so you’re forced to focus on writing posts instead.

I’m well aware of the irony of building yet another SSG to help people avoid doing the same. But I’m addicted to building SSGs—this one was my fifth, and I’m considering making another one (insert facepalm here).

[1] https://jaredkrinke.github.io/md2blog/

schemescape··on Why You Should Write Your Own Static Site Generator
There are a few that take that approach, but people usually want one in their preferred programming language/runtime. Examples:

Metalsmith (Node/JS): https://metalsmith.io/

Haunt (Guile Scheme): https://dthompson.us/projects/haunt.html

I’m sure there are many more.

schemescape··on Sam Bankman-Fried Convicted
From member banks:

https://www.federalreserve.gov/newsevents/pressreleases/mone...

> No losses associated with the resolution of Silicon Valley Bank will be borne by the taxpayer.

> Any losses to the Deposit Insurance Fund to support uninsured depositors will be recovered by a special assessment on banks, as required by law.

Edit: apologies, I should have included this link and blurb in my original comment.

schemescape··on Sam Bankman-Fried Convicted
Member banks made depositors whole, not tax payers…
schemescape··on Microsoft is removing Maps and Movies and TV from Windows 11
Agreed that it appears WebView2-based (at least on Windows). I apparently have the new Outlook already on my computer (how? Not sure!) and I see WebView2Loader.dll but not LICENSES.chromium.html.
schemescape··on Microsoft is removing Maps and Movies and TV from Windows 11
Electron or WebView2?
schemescape··on Middles: A Daily Word Game
Fun concept, but the input scheme is confusing.

I actually guessed the word correctly, but I lost a point because it added my letter to the end of the word instead of the beginning. Then it prompted me for another letter at the end (which I didn’t expect), and I gave up. Turned out, my original guess was correct and the game apparently lets you add extraneous letters to the end.

schemescape··on Building Stuart, a blazingly-fast static site generator
Random unsolicited thoughts on SSGs (from someone unaffiliated with Stuart or Hugo):

Not sure if I’ll ever get to it since things are generally fast enough without it, but I’d like to build an SSG that supports accurate incremental rebuilds.

Lower hanging fruits for my current SSG were: caching syntax highlighting results and deferring link-checking.

For the record: my issue with Hugo wasn’t performance, but its rigid data model and ugly template language.

schemescape··on (learn 'scheme)
That one seems better!

Edit: wow, it even predates my attempt: https://news.ycombinator.com/item?id=4860370

schemescape··on (learn 'scheme)
I can’t decide if I liked XSLT or just the out-of-the-box thinking its convoluted solutions demanded.

XPath was a joy to use, and I thought XHTML made more sense than HTML. But I was naive to think the “more logical” technology would take over!

schemescape··on (learn 'scheme)
Yes, and I even confirmed it with MIT Press prior to publishing the project (many years ago):

https://mitp-content-server.mit.edu/books/content/sectbyfn/b...

> Structure and Interpretation of Computer Programs by Harold Abelson and Gerald Jay Sussman with Julie Sussman is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License by the MIT Press.

schemescape··on (learn 'scheme)
I switched over to Common Lisp, so I don't really have any personal recommendations for Scheme, but this site was useful for learning CL and it also has a section on Scheme: https://www.linuxlinks.com/excellent-free-books-learn-scheme...
schemescape··on (learn 'scheme)
Pleasantly surprised to see this on HN! This is an old (and incomplete) project of mine to reformat Structure and Interpretation of Computer Programs into a browser-friendly format, with a built-in code editor and interpreter [1].

I think today, you can use Racket in its special SICP mode to get a much better experience. But maybe the HTML (Bootstrap) formatting is a little nicer to read (and with the bonus that it probably works on phones).

The interpreter was incomplete and written from scratch, as a learning project [2]. This was done in the pre-WebAssembly days, so I couldn't just recompile, say, a Scheme written in C for use in the browser.

If I recall correctly, I took the SICP source files, ran a bunch of regular expressions on them to convert the content into XML [3], and then used XSLT to generate the web pages [1]. I was really into XSLT at the time :)

Anyway, hope people find this useful! It's outdated and incomplete, and the interpreter has an odd implementation, but it was a fun project.

Source code links:

[1] HTML generator: https://github.com/jaredkrinke/learn-scheme

[2] Interpreter: https://github.com/jaredkrinke/jslisp

[3] SICP-to-XML converter: https://github.com/jaredkrinke/sicp-reformatter

schemescape··on Disposable browser for FreeBSD 13.2 with pot
Is the browser truly isolated if X11 forwarding is being used?

Edit to clarify that this is an actual question and I don’t know the answer.

schemescape··on No federal privacy law? After the 23andMe hack, it's time to take action
If there are genetic factors that predispose certain behaviors/traits, those would almost certainly be used for targeting marketing/manipulation campaigns.
← PreviousPage 3 of 30Next →