News for hackers. Stuff that matters.

tpetricek

Re:RFC 3092 – Etymology of "Foo" (2001) on Sunday February 08, 2026 @10:17AM (#46934972)
There is an entire paper looking at the history, meaning and cultural significance of the foo, bar, baz words: https://link.springer.com/article/10.1007/s13347-019-00387-2
Re:The Exciting History of Carbon Paper! (1995) on Saturday January 13, 2024 @05:04PM (#38985082)
Carbon paper was also a key part of Samizdat production in the Eastern bloc: https://en.wikipedia.org/wiki/Samizdat (which is why my family still has piles of it in the attic somewhere...)
Re:Course using F#: Write your own tiny programming system(s) on Friday November 03, 2023 @06:09AM (#38126582)
Should be fixed now!
Re:Course using F#: Write your own tiny programming system(s) on Friday November 03, 2023 @06:09AM (#38126581)
The videos are now up again.
Re:Course using F#: Write your own tiny programming system(s) on Friday November 03, 2023 @06:08AM (#38126579)
Fixed now!
Re:Course using F#: Write your own tiny programming system(s) on Friday November 03, 2023 @06:08AM (#38126576)
For anyone interested in the slides & videos, those are now accessible again! Sorry for the technical issues (it was not the HN effect, but a migration to a new disk...).
Re:Course using F#: Write your own tiny programming system(s) on Friday November 03, 2023 @05:33AM (#38126362)
Yes, this is fully open - I'm posting all the materials and videos as the course goes (but the server is down at the moment - should be back up soon).
Re:Course using F#: Write your own tiny programming system(s) on Friday November 03, 2023 @05:32AM (#38126356)
Seems like someone needs to restart some server somewhere. I'll investigate. Videos should be back up soon :)
Re:IKEA’s Crimes Against Cartography on Thursday October 13, 2022 @03:49AM (#33188381)
The article uses TfL signage from Kings Cross as an example of clear and crisp direction. This is a bit funny, because Kings Cross signate (specifically) sometimes directs you to take a longer path (hoping to avoid overcrowding in peak times). In some cases, you're better off going in the very opposite direction.
Re:Pop-up from Hell: On the growing opacity of web programs on Sunday October 10, 2021 @07:35PM (#28822947)
Thanks for a nice comment!
Re:The Unparalleled Genius of John von Neumann (2019) on Wednesday April 07, 2021 @06:44AM (#26722970)
I was looking through the comments to see if someone mentioned Jean Bartik already! Just to add to this comment, she also wrote an autobiographical book, which is worth reading: https://www.amazon.co.uk/Pioneer-Programmer-Jennings-Compute...

It is clearly a very personal and biased account, but I think there are good reasons to believe many of the things she is saying, even when they go against the commonly accepted history "written by the winners".

Re:There Should Be No Computer Art (1971) [pdf] on Saturday March 13, 2021 @05:35PM (#26450762)
For those who want to compare this 1971 article with a 2018 talk by the very same person (and see that his arguments remain relevant): https://www.youtube.com/watch?v=x-qAPvYdXgM
Re:Ask HN: How do you work through large ideas? on Friday November 27, 2020 @10:38AM (#25229480)
I think a useful reference here is the idea of "wicked problems", which is a kind of problem where the structure of the problem makes it hard to solve - because you cannot even know what a solution is until you make your problem statement more precise (but by that point, you have already determined a solution). This is not the case for all "large" problems, but it's definitely a case for organizing a liberal democracy: https://en.wikipedia.org/wiki/Wicked_problem
Re:The Lost Ways of Programming: Commodore 64 Basic on Saturday November 07, 2020 @04:00PM (#25019297)
Author here - there are better emulators (I used this one myself for testing things out: https://www.retrodevops.com/c64.html).

You are absolutely right that my POKE is not like the real one - because for that, you actually need to emulate quite accurately the C64 memory. So, anything related to POKE is not accurate - and this misses the experience you get as a hacker discovering tricks you can do.

However, my point was more about the interaction that combines text editor and REPL into one - and I think for that, it works well enough.

Re:The Lost Ways of Programming: Commodore 64 Basic on Saturday November 07, 2020 @03:57PM (#25019242)
This is very odd! I handle the input myself (so that it can look like C64 console), but this is done via pretty simple "window.onkeypress" and "window.onkeydown" - so if it receives random inputs, it's either odd events or some glitch elsewhere (I'm using Firefox myself, but on Windows). I'm not sure how to debug this - but if you have any insights, let me know!
Re:The Lost Ways of Programming: Commodore 64 Basic on Saturday November 07, 2020 @03:54PM (#25019217)
Thanks for pointing this out. I'll get it fixed :-).
Re:The Lost Ways of Programming: Commodore 64 Basic on Saturday November 07, 2020 @03:53PM (#25019202)
Author here - thanks for the nice words about the article!
Re:College Notebook of Isaac Newton on Saturday August 22, 2020 @04:20PM (#24246964)
It's not just that alchemy was not "scientifically disproven" in Newton's time. There was no such thing as "scientific" and "pseudo-scientific". Reading about Newton's thinking about alchemy is a fascinating look at a way of thinking that we can hardly imagine today. I also thought that it is a nice reminder of the (certain but unimaginable) limitations of our present thinking. There is a fascinating (but pretty academic) book about Newton's Alchemy: https://www.amazon.co.uk/Foundations-Newtons-Alchemy-Cambrid...
I'm a lecturer (assistant professor) in computer science at University of Kent in the UK. I did my undergraduate degree and Masters at Charles University in Czechia and later a PhD in Cambridge. Most of my work has been on programming languages.

How did I choose? Mostly by accident and I definitely did not plan this much in advance. I enjoyed web programming during my undergrad. I got interested in how to make web programming easier (and if you could write both client-side and server-side code in the same language - in the pre-Node.js and pre-transpiler days :-)) and I stared working on a project to translate .NET code to JavaScript. Through a few random lucky accidents, I ended up working with F# and met Don Syme from Microsoft Research. This got me the idea that I could actually do PhD! Through working with Don, I got interested in functional programming and PL research more generally and then applied for PhD with some ideas about reactive programming.

I have no idea how to choose a field or plan a career (I only have one data point!) In my case, it was a mix of doing things I found interesting (without thinking about why this might be useful) and meeting a fantastic mentor at the right moment.

In any case, good luck, no matter what field you end up choosing!

There is a link to the answer right on the page under "Editorial Expression of Concern". This answers how it bypassed an ethics council: https://www.pnas.org/content/111/29/10779.1
Another person to talk to would be Brooks Paige, who recently joined UCL: https://tbrx.github.io/ This is totally not my area of research (I'm a PL person), but I know Brooks from the Alan Turing Institute and I think he'd be a great advisor for this kind of work.
Re:F# Pipeline Operator in JavaScript with Babel on Tuesday February 04, 2020 @05:01PM (#22241506)
The history of how the pipe operator got into F# is documented here: https://blogs.msdn.microsoft.com/dsyme/2011/05/17/archeologi...
Re:Write your own Excel in F# (2018) on Sunday August 25, 2019 @12:03PM (#20793669)
I'm this case, there is virtual-dom dependency, one more file with some code to simplify the creation of UI and whatever Fable (F# to JS) provides. So it's not 100 lines, but there is a lot less dependencies than you'd expect.
Re:Write your own Excel in F# (2018) on Sunday August 25, 2019 @05:06AM (#20792058)
I don't have much experience with Elm or Purescript, but one nice thing about F# with Fable is that it's a pretty flexible language that let's you do things in many ways and integrates well with libraries that use different styles.

For example, the Excel blog post is using virtual-dom directly (without higher level libraries like React) and getting that to work was a few lines of simple code with one mutable variable, but that's all you need to get a nice declarative Elm-style architecture.

Haha, thanks for linking to this thread! This was definitely an idea that I've been thinking about for some time and this thread is a part of it. As pointed out in a comment elsewhere in the discussion, I think most of these do not quite do the same thing I'm interested in...
Author here. I'm aware of work in this area (though certainly not all of it) and I had the pleasure of attending last two PPIGs!

The idea I outlined in the blog post is absolutely inspired by all of this, but I think there is one fundamental difference (which perhaps is not as clearly explained as it should have been).

People in the HCI world study interactions that happen in programming and use that as a source of ideas for how to design languages. However, what I'm proposing is to make those "interactions" a part of the language definition. (HCI is a great source of ideas for understanding what those interactions are, but you can then study the resulting things in many ways, including formal methods - which is what I find interesting).

As far as I know, the related work that actually does what I'm describing is two things already mentioned in the blog post (Subtext, Inferential Programming) and one idea someone mentioned on Twitter is Programming by Example, which I think is close too.

tldr; I'm not talking about studying programming via the perspective of human computer interaction, but about making those first-class language constructs.

Re:Fable: F# to JavaScript compiler on Monday October 30, 2017 @08:14AM (#15584418)
Yes, that's what I meant, thanks :-). The idea is that you can just write `unbox<MyType>(jsonParse("{whatever:42}"))`.
Re:Fable: F# to JavaScript compiler on Sunday October 29, 2017 @07:02PM (#15582035)
Fable pretty much replaced FunScript - all the activity around F# to JavaScript translation moved from FunScript to Fable nowadays!
Re:Fable: F# to JavaScript compiler on Sunday October 29, 2017 @06:29PM (#15581861)
Sssh. Speaking as one of the two people who know F#, I'd be very sad if others learned about it. It's my secret weapon that lets me solve problems that would otherwise take me weeks in a matter of days.
Re:Fable: F# to JavaScript compiler on Sunday October 29, 2017 @06:27PM (#15581848)
The fact that the best parts of C# are its few functional bits might be a good hint that if you had a language that was designed around those good bits, it would be so much better ;-).

I don't expect to convince anyone in a HN discussion, because that's not how arguments about programming languages work, but have a look at testimonials (http://fsharp.org/testimonials). You'll see that many people who started using F#, are very happy with it because it lets them solve problems faster with fewer bugs and they enjoy it more.

Older »