News for hackers. Stuff that matters.

jimws

Re:Let’s Build a Compiler (1995) on Monday February 17, 2020 @01:00PM (#22349312)
This tutorial uses Pascal as the implementation language. Is there a similar tutorial done in a language that is mainstream today? Like Python? Go? Rust?
Re:Kernighan's Law: You are not smart enough to debug it on Monday February 17, 2020 @12:39PM (#22349179)
I am one of those who moved from Perl to Python. As a Perl coder I loved writing clever hacks. After a few months of Python I began appreciating simplicity and elegance in code.
Take a look at https://github.com/susam/texme. It does not introduce a new Markdown flavor. Just the regular Markdown + support for Latex.
> But there is a point where using a simple and elegant tool stops being simple and elegant - it can only be tortured so far outside its intended use-case before it stops being useful.

An alternative tool I've begun to like is TeXMe: https://github.com/susam/texme. It is like Markdeep but minimal--does not support any fancy features. Just plain Markdown and Latex. Very useful for note taking in a file that can publish itself. I don't think I can draw fancy diagrams while taking notes live so I don't need diagrams. So this simple tool serves me well.

Re:This Page is Designed to Last on Saturday December 21, 2019 @12:59AM (#21849877)
When a website disappears completely, there is no web server to respond with HTTP 300.
Problems like this can be easily caught by linters like eslint or standardjs.
Re:Win32 on macOS on Saturday December 14, 2019 @08:52AM (#21789485)
These open source groups could surely use a chatbot to log the chats to some place for archival and make the archive searchable, can't they?

By the way, I find IRC/Slack good for real-time support. By nature of being real-time support, some questions get repeated over and over again. The repeition is typically mitigated by adding trivia bots to the channel that can provide answers to frequently asked questions.

The best solution I have seen for archived solutions and to avoid repetition are Stack Overflow (encourage users to post questions on SO with relevant tag) and mailing list with a mailing list archive.

Re:What Happened to Software Development? on Saturday December 14, 2019 @06:29AM (#21788973)
Open space offices is another similar fad that I cannot stand. Who wants to be at the constant risk of being interrupted and be distracted by side-channel chatter!

The situation has become so bad that I cannot find many companies I can work for that has not succumbed to this fad. The only workplace that works for me now are the ones where I can work remotely.

Ask HN: Is there any programming language with a Physics-like dimensional types?

I am curious if there is a programming language with a type system that would cater to types in Physics?For example, I could say: deftype distancd from double; deftype time from double; deftype speed from distance/time; deftype acceleration from speed/time; distance d = 10.5; time t = 1.2; speed s = d/t; // okay acceleration a = d/t/t; // okay acceleration b = d/t; //...

( Read More... | 3 comments | 3 points | on HN )
Re:Tony Brooker, creator of Mark 1 Autocode, has died on Saturday December 14, 2019 @01:14AM (#21788125)
This is something that bothers me a lot. I have traveled to the UK a lot and oh, what a fine nation! I love being in the UK. Good weather, amazing people, great food and drinks!

The literary culture is still very strong in the UK. But what happened to its science and technology landscape? Merely a century ago, it was at the forefront of science and technology. Where did the UK lose its steam? Anyone with historical insights into the UK care to shed more light on this?

> Most people don't have side projects.

Do you have any citation to back this up?

My anecdata indicates otherwise. Most people I meet in IT do have side projects. They may not be popular or successful but they exist.

Re:Tony Brooker, creator of Mark 1 Autocode, has died on Friday December 13, 2019 @11:36PM (#21787841)
I think you can use ".intel_syntax noprefix" with GNU as to assemble Intel assembly.
Re:If this project is dead, just tell us on Friday December 13, 2019 @09:46AM (#21781992)
What are the advantages of pipenv compared to plain pip and python3 -m venv/virtualenv?

The latter works fine for me. What are good reasons to switch to pipenv?

Re:ABCL – Common Lisp on the JVM on Wednesday December 11, 2019 @05:57AM (#21761343)
There was a recent thread[1] that shows how to setup Lisp development environment in Vim.[2] If you know Vim already, then check it out.

[1] https://news.ycombinator.com/item?id=21735148

[2] https://susam.in/blog/lisp-in-vim-with-slimv-or-vlime/

Yes, the project is disingenuous. It claims there is a bug but really it is just functioning as designed.
Re:Asciinema – Record and share terminal sessions on Tuesday December 10, 2019 @05:23AM (#21751261)
Just provide the commands again as text. I don't have to wait for the entire asciinema to replay. I can ctrl+f what I need and copy-paste.
Re:Asciinema – Record and share terminal sessions on Tuesday December 10, 2019 @05:22AM (#21751252)
Thank you for making this point. Plain text is really underappreciated. When I visit a project README, I don't want to wait for the entire replay. I just to skip to the part of the documentation that is relevant to me.

A short asciinema replay can be useful for a quick demo buy don't let that substitute your text documentation. I may watch the replay only once but I will come back to a well written documentation again and again.

This did sound like a disclosure to me as well. A disclaimer would be something like, "Use it. Your mileaage may vary. I am not responsible for any troubles you encounter whilen using it."
Re:Show HN: Space Invaders in C on Friday December 06, 2019 @04:57AM (#21720424)
This is an awesome project with awesome write up. I miss the days of pixelated console games. The constrained environment led to so much creativity. Are there any new games like this being written anymore?

Ask HN: What hobby projects do you work on after your 8-hour workday?

I have recently begun to feel that my day job does not give me the satisfaction I once used to get. More and more stuff is moving to AWS. More and more stuff gets automated. Instead of using my computer science skills that I once used to love, I now spend my time figuring out and groking the idiosyncratic design decisions made in AWS, Kubernetes, etc. They are not pretty. They are not elegant....

( Read More... | 1 comment | on HN )
Re:Building a language server for Muon on Tuesday November 26, 2019 @09:01AM (#21638293)
Lisp had this kind of interactive programming support for a long time using SLIME and Emacs. Why isn't this a more common feature in the more recent languages?
> Looks just like PDF.

It's better than PDF. Text in PDF is not reflowable. This demo is by virtue of being HTML under the hood. Looks good even after resizing the browser.

I wish PDFs had a reflowable mode. What would it take to add such a mode to the PDF spec without breaking backward compatibility?

PDF's fixed layout is a real problem when we try to convert PDF books containing math to EPUB or MOBI with Calibre. It really messes up the beautifully typeset math in the PDF during the conversion. What's a good solution for this?

Re:Debian reconsiders init-system diversity on Tuesday November 12, 2019 @01:19AM (#21511933)
I have seen this in CentOS. Also see https://unix.stackexchange.com/a/159390
Re:Debian reconsiders init-system diversity on Tuesday November 12, 2019 @01:15AM (#21511918)
> Is there any persuasive reason for a college student today to try desktop Linux?

I think not if we look at Ubuntu, Red Hat, etc. But maybe small ones like Alpine Linux?

This brings up a good question: What good free and open source operating system is out there that would be persuasive for a college student or someone who wants to learn an operating system as opposed to merely using it?

Re:Debian reconsiders init-system diversity on Tuesday November 12, 2019 @12:51AM (#21511834)
Who else here dislikes Systemd? I do. There is so much hidden magic in terms of configuration that when things go wrong, they really go wrong. One of the things that burnt me initially was that journalctl logs are not persistent. They disappear on restart. It needs to be configured for persistent storage.
Re:An Unnamed Source Who Shouldn’t Be Anonymous on Tuesday November 05, 2019 @09:14PM (#21459068)
> Most non-trivial theorems about TMs are un-provable[0]

Did you mean "conjectures"? Theorems need to be provable by definition, don't they?

Re:Darktable 3.0 Approaching with Many New Features on Monday November 04, 2019 @06:52AM (#21440789)
After Picasa (the desktop tool) was sunset, Darktable became my tool of choice. It is free and open source and understands real life photo related editing better than GIMP.
Re:Clang Solves the Collatz Conjecture? on Monday November 04, 2019 @06:09AM (#21440540)
The interesting question is: Has someone "harcoded" a clever optimisation specifically for Collatz conjecture? Or did the general optimisation techniques figure this out of their own?
Re:Lack of cdnjs activity on Friday November 01, 2019 @02:54AM (#21416713)
That's the reality of a lot of open source based services. Did you know that the entire PyPI was run and probably still is being run by just two guys?

Older »