HNHacker News
TopNewBestAskShowJobs

sjamaan

564 karma · joined November 8, 2018

CHICKEN core maintainer

Personal blog: https://www.more-magic.net

submissionscomments
sjamaan··on A downtick is coming for online advertising
Paying for the content is what Apple TV is doing, isn't it? You can "rent" (one-time view) a video for a lower price, or "buy" the video at a higher price (which isn't the same as owning it, of course. It just allows you to watch it more than once). But you're still paying per individual movie.
sjamaan··on It’s Still Stupidly, Difficult to Buy a ‘Dumb’ TV
> But why would you want TV without speaker

Many people hook up their TV (or media box) to their home audio system which often has much better sound quality. The built-in speakers of TVs are a bit pointless in that context.

sjamaan··on We lost 54k GitHub stars
Number of forks, maybe? Or pull requests? Although those wouldn't disappear of course...
sjamaan··on New(ish) command line tools
A very nice use of direnv is automatically calling virtualenv's `activate` on directory entry, so you don't need to do that yourself.
sjamaan··on Due to failure in the IT system, it is not possible to run any trains today
> My gut tells me that big names like SAP and Sales Force are easier to sell to executives.

I've heard it said that SAP is sold on the golf course, not in the IT boardroom.

sjamaan··on Ralph Ammer – Make Me Think
Not having to think about how to use a certain tool or software application means you free up time to think about more important matters. It's not about not thinking, it's about not needing to think about needless trivialities. Also, in some cases, you might be in a hurry or an emergency and your brain isn't thinking right. In those situations, an interface that requires one to think might result in dangerous accidents.
sjamaan··on It could be years until we see a normal housing market
I've done the same (bought a house, kept the old one for rental) and used an agency as a middle man. They take care of collecting rent, and the day to day business if, say, a plumber needs to be called (I just have to sign off on it). This at a 6% fee of the monthly rent is quite worth it to avoid any hassle. The rent income also fully covers the mortgage of the new house so basically my living costs are for free.
sjamaan··on Opening http://../foo on Android Chrome crashes the browser (Warning: or worse)
The government of Lithuania actually did an investigation and found that Xiaomi phones spy on their users and contain a (disabled, probably intended for Chinese market) content filter system in their default browser.

Edit: source (in Dutch): https://www.security.nl/posting/721810/Litouwse+overheid%3A+... Source in Lithuanian: https://kam.lt/lt/naujienos_874/aktualijos_875/ka_daro_isman...

sjamaan··on We Need Software Updates Forever
I think one problem is that the device that's cheaper isn't exactly advertising the fact that it will die in a year. In fact, when it is a brand new one that just hit the market, who even knows when it will die? This is the kind of thing that requires some historical knowledge which only a good salesman will be able to tell you, but if you're just buying online by five star reviews of happy customers who also bought it the last year, how are you going to know it'll die next year?

And next year, there will be a new model, so all those one-star review updates to last year's model will not be seen by someone in the market for a new one.

sjamaan··on Clojure from a Schemer's Perspective
Because Clojure relies so heavily on namespaces, almost all identifiers in a macro's output are going to be fully namespaced already, especially because syntax-quote does this expansion already. Therefore, unintended variable capture is highly unlikely.
sjamaan··on Clojure from a Schemer's Perspective
> As a clojure fan, I think this is a really well balanced and fair assessment of clojure.

Thanks for the kind words. I tried to keep my biases out of it as much as possible and tried to avoid making it too ranty. And on the whole, I like Clojure; it's just not really my first choice as far as Lisps go.

> It's a bit surprising they didn't get into the whole "hygenic macro" business, which seems like the most obvious differentiator between the two languages to me.

I debated including a bit about macros, but in the end decided that this would be a bit too in-depth. Clojure uses namespaces in a somewhat clever way to work around the bulk of the hygiene issues you get in CL with defmacro, but the macro system itself is rather uninteresting. I think their custom syntax for gensym is a nice touch, even though it's yet more syntax.

Scheme's macro system is very advanced and relatively complicated indeed, and the R5RS/R7RS standard system is only pattern matching/rewriting based.

Maybe I'll do a separate piece on the macro system if people are really interested.

sjamaan··on Me and ADHD
Do you have a link to this article? Asking for a friend (no, really)
sjamaan··on Stop the Earn IT Bill Before It Breaks Encryption
The US govt will just convince their Nine Eyes friends to adopt the same legislation and that's the end of that, as well.
sjamaan··on MIT 6.001 Structure and Interpretation (1986) [video]
And, oh yeah, grokking continuations makes it a lot clearer how generators, iterators, exceptions and coroutines work. One concept which subsumes all the others. And if you want to get into compiler construction, understanding CPS conversion makes it much easier to do code transformations.

There's just tons of research which went into Lisps, because it's such a nice vehicle for language experimentation. There's half a century of research going into Lisps. Other languages haven't been around for that long, so I suppose there's something to find in Lisp history for everyone, but it might not be the same thing for everyone!

sjamaan··on MIT 6.001 Structure and Interpretation (1986) [video]
I suppose it's a bit of 1 or 2 or 3. But there's also the issue that emergent properties which fall out of the overall design are quite hard to explain, and even advanced students of the subject don't fully grok yet.

For example, "code is data" is true in the most trivial sense for machine code, yet having code as structured data makes it much easier to manipulate. Having easy to manipulate code gives you the power to manipulate code at compile-time. Having code run at compile time inside the compiler, which is also an interpreter running the same language that you are compiling is kind of magical and mind-bending.

In fact, more recent research into this has gone down the rabbit hole even deeper, and it turns out you can have an entire tower of meta-levels (see for example http://www.phyast.pitt.edu/~micheles/scheme/scheme22.html). This is all continuing on the same basic ideas which were present in early Lisps, just crystallized and refined further and further.

Also, as research into macros has gone on over the years, hygienic macros were discovered, which Rust has adopted as well (and there are other languages which have them as an add-on, like Sweet.js). Deeply understanding how this stuff works gives you a better grip on the issues with macros in older languages (notably C).

And that's just macros (and homoiconicity). There's also lexical versus dynamic scoping. This is a lot less "magical" now than it was 10 years ago, when almost no mainstream language even had closures.

sjamaan··on Simple Personal Finance Tracking with GnuCash
It supports imports from QIF and OFX/QFX files, CSV files, MT940 and MT942 files and DTAUS files. It also has an "online banking" integration thing, but I have no idea what kind of bank has username/password logins that would work with this.

Personally, I don't mind manually entering the stuff, because you'll need to classify everything into the correct accounts anyway.

sjamaan··on Defold game engine source now available and free to use for commercial games
That's not how it works. These terms have a specific meaning and using them for something that's not covered by the definition dilutes their effectiveness.

On top of that, they even use "free and open source", which refers to certain moral freedoms rather than license mechanics.

sjamaan··on Ask HN: How to rediscover the joy of programming?
Scheme is the same. If you type a number with a dot in it, you'll get an "inexact" number, which is floating point. If you prefix it with #e, you'll get an exact representation of the entered number (so, e.g. #e0.1 gives you 1/10)

The output of inexact numbers is typically truncated. In CHICKEN, you can use flonum-print-precision to tweak that. In an example, straight from the manual:

    > (flonum-print-precision 17)
    > 0.1
    0.10000000000000001
sjamaan··on Ask HN: What change in your programming technique has been most transformative?
I would say: Automated testing and a functional programming mindset.

Even for legacy projects, starting with adding regression tests for every bug you find is a great way to introduce testing. And when you add new features, you can write tests for that as well.

I find that a FP mindset is helpful mostly because it tends to reduce the amount of global or spread-around state. This in turn makes testing and quickly iterating in a REPL a lot easier. Also when later the time comes to debug, it's much simpler if you don't have a huge amount of state to set up first.

And even if a lot of state is required, having it be an explicit input to a procedure is helpful because it makes it much clearer what you need to set up when doing manual testing.

sjamaan··on Simple Tiny Compiler in C
Maybe it would make more sense if you used only .c files; people typically expect only prototypes, type definitions, macros and so on in .h files.

Including one .c file in another is a bit odd, but less surprising. But then having include guards makes the entire thing a bit weird :)

sjamaan··on Why ElementaryOS Left Medium
It's not like Youtube is not annoying and filled with crap (ads).
sjamaan··on Why ElementaryOS Left Medium
Also by setting good examples and not using this shit ourselves, even if it's the expedient option.
sjamaan··on We Made Amiga, They Fucked It Up (2015)
Especially on those machines: You could simply press the reset button and it would go back to a pristine state. There was no hard drive or other state that persisted across reboots.

The worst you could possibly do was destroy a program stored on disk or a cassette.

sjamaan··on Devilution – A web port of the original Diablo game
That was a great feature. The Command & Conquer series by Westwood allowed something similar, since either disc (GDI/NOD or Allies/Soviets) contained the full installer and executable. This allowed both players in a head to head network game to run from the CDs.

You could even both play half the game in single player and then swap discs, but I'm not sure that really was the intention.

sjamaan··on Show HN: A star map creation tool with Common Lisp
This is awesomely inspiring. Such a simple yet cool idea!
sjamaan··on How Stoicism can help us
I think this is a great point. Stoicism can be comforting and helpful in becoming mentally stronger. We may be very strong in our intelligence, but our emotional resilience tends to be less strong, because we're not used to hardships.

People who have to work hard physically may be more naturally inclined to understand how to live in a more balanced way: work hard, then relax in your off hours. Us tech folks tend to live in the same "mode" much of the time.

I personally found Stoicism helpful in becoming more self-sufficient and less whiny about things that befall me. Your example of the mug is great and can be generalised: complaining helps nobody and makes you feel worse and you get "stuck" in this emotion. Instead, move on and fix or replace it. And even if it can't be replaced (maybe it was a hand-made mug by a loved one you lost), being sad about it still does not serve your well-being in any way.

sjamaan··on Ask HN: A Good Alternative for ReCaptcha?
> those services will use what they know about you

This is inherently user-hostile, as it presupposes tracking and identification. I don't want them to know anything about me!

sjamaan··on Leonardo Da Vinci’s “Codex Atlanticus” Now Online
Some of these are awesome, cool enough to put up on my wall on canvas or so. But for that something a bit more high-res than 2000x2000 would be nice. Does anyone know of a higher res version?
sjamaan··on TeX Live 2019
There used to be teTeX (https://www.tug.org/tetex/) which allowed installing packages separately, but that's no longer maintained.

I think KerTeX (http://www.kergis.com/en/kertex.html) now allows a similar style of pick-and-choose package installation, but it doesn't support a lot of packages (yet?).

sjamaan··on I Miss Rails
Django has this type of lazy loading as well: https://docs.djangoproject.com/en/2.1/ref/models/querysets/#...
← PreviousPage 5 of 6Next →