HNHacker News
TopNewBestAskShowJobs

JoelMcCracken

2,777 karma · joined February 27, 2009

Pittsburgh dev. Haskell mostly.

Contact me at mccracken.joel@gmail.com

If your reply to me seems unnecessarily combative, pedantic, or uncharitable, I will probably not reply. Its not worth talking with someone who appears to be intentionally misconstruing my words. Ain't nobody got time for that.

submissionscomments
JoelMcCracken··on Ask HN: What brought back the joy of programming for you?
I developed my love of programming originally from learning PHP, C, C++. I lost it at uni trying to solve problems in Java, which was mutable state hell and made solving the most boring stuff infuriatingly boring/full of stupid busywork. I almost quit CS.

What reinvigorated it first was learning FP/Lisp and especially Scheme (this was approx 2009).

I began to lose it slowly over time when experiencing the difficulty of just writing good, reusable code in the context of OOP style larger-scale components that invoke pure functions - I used to call this "OOP in the large, FP in the small" - it began to be clear to me that I couldn't make this work in a sane way, details are out of scope of this comment.

I recently (beginning circa 2018) began to re-rediscover this passion through learning haskell and really experiencing how well a simple impure/pure breakdown between code works out. In hindsight, it seems obvious, but I couldn't see it until really learning haskell and how all that works itself out.

JoelMcCracken··on Continuations by Example
I’m not super well versed in continuations, is right-now/go-when analogous to reset and shift, or are these different ideas?
JoelMcCracken··on R.A. Lafferty: "The Greatest Catholic Novelist You Never Heard of" (2018)
I read his “The Reefs of Earth” a few years back and it blew my mind. Such an interesting book.
JoelMcCracken··on Daylight Computer – New 60fps e-paper tablet
I haven't done a ton of usage outdoors, but my boox max lumi works for this. IIUC the android it runs is "unlocked" so I think you could use it as a computer if you wanted. I use it as a tablet and a monitor.
JoelMcCracken··on The Cult of the Haskell Programmer
shoot me an email, which is on my profile. I can help. I honestly was where you were a few years ago, and worked through it.

A few direct observations based upon what you said:

- working with monads takes some practice and understanding. There are several things that need to be learned to work with them, none of which really are directly addressed by educational materials. My advice here is to find someone who is willing to help you work through direct, concrete problems you're having, and/or work though a well-designed resource, such as haskellbook.com. You will still likely need another resource to talk to about issues tho.

- re: entire program understood before writing any code: I am not sure specifically what you mean here, but I think you're talking about how making a change in haskell can necessitate quite a large refactoring, where in another language it might be a trivial change. This is... indeed sad at times, but otoh, this is intractably linked with _other_ notions in haskell: functions should be total, side effects should be isolated, etc. So you _will_ need to do a refactor if you need to introduce side effects to a new part of your program. This is how you get the benefit of having isolated effects.

- re understanding the entire standard library: yeah, this is part of the unfortunate reality. Haskell is an active research language, and that research has borne fruit. So, practices have changed, which means that there is a lot of legacy gotchas around. Not only that, but things that you might do trivially in another language may require using a seemingly esoteric functionality in haskell (traversable imo is the canonical exemplar). Overall this means that learning haskell is a much larger effort than it could otherwise be.

Thus, I think there is certainly room for a haskell successor that addresses these issues, however, this doesn't exist yet, and haskell is still the best option we have at this point.

JoelMcCracken··on Linux When?
Kinda wild to me that people who frequent a website that bills itself as a site for news for "hackers" show such a nil-level of ability to comprehend anything themselves.
JoelMcCracken··on Cognition: A new antisyntax language redefining metaprogramming
Yeah it seemed clear to me it was a research project/demonstration of possibilities. Very cool.
JoelMcCracken··on The Shen Programming Language
Yeah imo the way this would be handled ideally is that some other program would generate a source file from the csv. That source file can then be included normally and work with existing caching infrastructure etc.

But ya know back when make was the way of doing things this would be easy to set up. Now in the age of each tool having its own build system it is different.

JoelMcCracken··on The Shen Programming Language
check out https://shenlanguage.org/learn.html, especially

"Coding a Lisp Interpreter in Shen by Mark Tarver", "Shen Tutorial: Sequent Calculus by Neal Alexander", and " Defining Types in Shen by Chris Double" - these all illustrate what is going on in different ways.

JoelMcCracken··on The Shen Programming Language
Well, first off, I don't think those things in haskell are good, really. They are/were necessary because of various _other_ issues, but they are not "good" features. And e.g. template haskell doing arbitrary IO at compile time is famously a cause of a variety of unintended problems (e.g. can't cache correctly if you never know what things a TH-module depends upon, very hard to cross compile if you can't be sure the arbitarary TH logic isn't depending upon the compilation host architecture to make some decision for compilation target, etc)

Specifically though for Shen, what causes me pause is how frequently this kind of "call an arbitrary term-level function in the type system" is done; it is quite frequent, and thus all my mental alarm bells sound. Debugging issues that arise in things like this can be quite challenging.

Sharp/dangerous tools are often necessary, but what I find unfortunate is that you need to use those sharp tools constantly, when a safer tool could do just as well!

JoelMcCracken··on The Shen Programming Language
Note: this is all of extremely interesting, extremely powerful, and extremely cursed! But I think it is certainly interesting food for thought
JoelMcCracken··on Show HN: Text Lambda, a versatile notebook for your personal data
I don't have a direct answer here, but let me just elaborate upon what I _wish_ existed.

I use org mode for notes. extensively. I am not interested in moving to something else (well, I would for the _right_ something else, but that's a big aside; it would need to do what org mode does right, but also fix the things that it lacks. Basically none of the solutions I know of get anywhere within this realm. This is an entirely other topic)

The main issue is that emacs is basically desktop only. Yes, there are other clients for mobile etc for org mode that exist, but no, they don't satisfy. They usually only support the minimum of features, and/or have various limitations which aren't inherent to org mode.

What I _want_ is basically a web based frontend to emacs/org-mode that I can interact with, search easily, etc. something that reimplemented this functionality would be OK, but the downside there is that it isn't

I personally have a long term plan to hack on something that would work for me ideally: use a web based ssh system (some of these exist) and then add some support for buttons etc somehow where I can click/edit/interact with the notes db. This seems like the shortest path to a solution that would work somewhat OK, although it is not perfect (offline support, etc).

These are all giant problems, and are sadly orthogonal to what you're talking about.

Today, how I handle my notes: - git repo, private on gitlab. Would like it if it were encrypted, but this works for now. - clone on private digitalocean machine. I ssh into it, use emacs on there. (mainly when I need to do something with notes on work computer, as I don't keep a clone of anything personal on work tech) - local clones on personal computers, slightly nicer interface.

This... works, but is not great.

a question for your solution: how would I use emacs tools to search across notes if the notes are encrypted? the most straightforward way I can imagine this working would be by keeping a copy of all notes in a local directory; does this represent an acceptable tradeoff? seamless integration with vim and emacs (at least them; i can't speak for vs-code) means also being able to work with a variety of CLI tools, such as find, grep, etc.

JoelMcCracken··on The Shen Programming Language
Shen is a very unique language, and one of the ways in which it is unique is that so much of its marketing, information, etc is non-obvious, and less accessible than you might want.

I think the main thing that I find compelling about shen is its type system, especially its sequent calculus system (for defining types in a way that would not be possible for most languages).

The other thing about it that is compelling is how portable it is. the main language is implemented in a simple kernel language; someone who wanted to port the language to a new environment would need to implement a small (relatively) set of primitives, and then you can run the entire shen environment on top of it.

Its worth looking into, however I do caution that it has plenty of rough edges etc.

For me personally I think of it as an inspiration for programming languages I wish to develop someday. Additionally, if you ever worked in a certain environment and really dislike that the language is a bit weak, shen might be something you could port to that language and use. For example, I recently updated https://github.com/deech/shen-elisp so that some of its rough edges were a bit smoothed down and should be more usable; I haven't actually written any shen yet that runs in emacs. That's still a ways away.

JoelMcCracken··on Show HN: Text Lambda, a versatile notebook for your personal data
this certainly could be useful for me personally, but it would need more functionality. I think the _full_ project could be very useful though. however i would ask, how is this different from e.g. https://standardnotes.com/ and other note systems available ?
JoelMcCracken··on The Loneliness of the Mid-Level Vimmer
Yeah, you really don't _have_ to be insufferable. I use emacs and evil/vim mode, have done for years, and it's not like I bring it up all the time or whatever, or shame people for using vscode.

It is just a tradeoff, like anything else. Using a niche tool means that those not in the niche are alienated, but those in the niche are drawn to you/familiar.

Any time someone brings it up, I basically say "yeah, I use this tool, but it really is just a tool that I personally choose, and can see how someone would pick another one. Not everyone wants to fuss with their environment all the time to get their job done." etc. I both genuinely believe this and think its a disarming POV.

Really, at this point in my career, I have a massive quantity of legacy knowledge that informs my choices. Since I know emacs lisp, and have already expended the effort to learn and use it, it continues to be worth my while to work in this environment. For someone who doesn't have this legacy knowledge, their value calculations won't work out in the same way.

JoelMcCracken··on The whale fact chapters in Moby-Dick are among the most memorable
This is why abridged versions exist.

It’s a shame for them though, as often so much is lost by omitting digressions. When I was younger, and Walden’s was the only source of books for me, I would sometimes buy one, only to later notice the “abridged” label in ultra fine print

JoelMcCracken··on The whale fact chapters in Moby-Dick are among the most memorable
Did you mean les mis? It had a lot of sewer system exposition (such praise for night soil!), but I don’t remember any such discussion in hunchback.

Of course, it’s very possible I’m forgetting something.

JoelMcCracken··on Lobsters – Hacker News
https://news.ycombinator.com/item?id=38546904
JoelMcCracken··on Lobsters – Hacker News
I can invite you if you email me and. I need to know a bit about you first. Email in profile.
JoelMcCracken··on “Make” as a static site generator (2022)
Please write more to this story
JoelMcCracken··on Why Fantasy Avoids Gunpowder
Cf https://en.wikipedia.org/wiki/Small_Arms_Protective_Insert
JoelMcCracken··on MS Teams channels cannot contain MS-DOS device names
I admit, I stopped using linux on desktop approx 2007. Since then, its just been macos and servers.

I've been considering going back to it though, but I know that I need to do it in measured steps.

Care to share any more about your slackware experience?

JoelMcCracken··on MS Teams channels cannot contain MS-DOS device names
I used to love slackware, by far the best linux experience. It just worked well.
JoelMcCracken··on Sharpscript: Lisp for Scripting
Or https://docs.racket-lang.org/rash/index.html , racket ecosystem is great
JoelMcCracken··on City officials attempt to doxx Wikipedians
I mean, nobody forced them to use their birth year in their username
JoelMcCracken··on Medieval Table Manners: The Messiest Myth?
Huh, curious, I don't remember them ever dining with the king in the musketeer books.
JoelMcCracken··on Ask HN: When is pure functional programming beneficial?
Or you can write the tail-recursive version which starts from 1 and builds to n; no need to memoize.
JoelMcCracken··on To Understand the Past, Pick Up an Old Magazine
I’ve been pondering the possibility of an app that could archive magazines over the eras, make them searchable, etc. something like this could be very neat to browse all magazines in public domain.
JoelMcCracken··on Anything can be a message queue if you use it wrongly enough
This is the first hn headline that I can remember actually making me laugh out loud. Bravo.
JoelMcCracken··on Ask HN: Why is web development such a daunting task?
It is because there is just a lot to know:

- HTML

- CSS

- JS

- Backend language

- HTTP protocol

- DBMS

- Ops/Deployment/troubleshooting

... and that's just the high-level needs.

My advice:

- start with tech you know (I guess Go or Java)

- make a dead simple html-only site first. use forms.

- once you're comfortable, add css/JS as needed.

- increment, learning bit n bobs as you go.

← PreviousPage 4 of 24Next →