News for hackers. Stuff that matters.

agbell

Re:What is ‘elite overproduction’? on Friday August 20, 2021 @06:05AM (#28244447)
When the typical economist tells me about his latest research, my standard reaction is 'Eh, maybe.' Then I forget about it. When Robin Hanson tells me about his latest research, my standard reaction is 'No way! Impossible!' Then I think about it for years - Bryan Caplan
This. Also try contacting a lawyer who knows this area and asking to pay for a legal opinion brief so that you can post it online to be debated by legions of software developers.

Lawyers I know would politely decline that.

Re:Elm at Rakuten on Wednesday August 18, 2021 @01:58PM (#28224816)
For those want to learn Elm, or to learn strongly typed functional programming in very well thought out order @rtfeldman's book "Elm In Action" is super good.

His experience working at a teaching company made his book very well structured for new comers.

Re:Will the rich world’s worker deficit last? on Tuesday August 17, 2021 @08:41PM (#28216486)
This book was ahead of its time. Millionaires who live like college kids. Overworked and stressed out devs working for a faceless corporation. I read it a long time ago, but I recall it was super good.
Re:Looking into Zig on Saturday August 07, 2021 @10:13AM (#28098729)
Yeah, functions returning types based on computations in Zig can look a lot like Idris if you squint
Re:Looking into Zig on Saturday August 07, 2021 @09:12AM (#28098351)
I know very little Zig, but I agree with the post, that comptime seems simple, obvious and powerful.

It is interesting that it bears some surface level similarities to type constructors in languages with higher kinded types.

Re:Full-time open source with Andrew Kelley on Wednesday August 04, 2021 @08:46PM (#28068366)
Thanks!
Re:Full-time open source with Andrew Kelley on Wednesday August 04, 2021 @01:40PM (#28063898)
Thanks for reading. Interesting idea! I did have this thought myself at some point and went and checked on some other narrated podcasts and found they kept it all under one label, but I can see how that could be confusing. Maybe I'll try that for the next one.
Re:Full-time open source with Andrew Kelley on Wednesday August 04, 2021 @12:04PM (#28062623)
I tried machine translation but it just isn't there for technical content. I use rev.com, which is a human transcription service. I supply them with a thesaurus of terms used and then proof read it and correct it myself after. The headings and jump points I add manually.
Re:Full-time open source with Andrew Kelley on Wednesday August 04, 2021 @12:03PM (#28062611)
Thanks for listening and thanks for supporting me!

Yeah, the further you go back into the back catalog the more you are listening to my learning-to-podcast phase. Hopefully they aren't too bad... I am a slow but persistent learner.

Re:Full-time open source with Andrew Kelley on Wednesday August 04, 2021 @10:54AM (#28061709)
Podcast host here. I left this comment in a different submission but will repost here since front page and all.

Andrew shared the backstory behind why he created Zig, why he decided to leave his job to work on it full time and why he is confident he can build THE language to replace C.

Let me know what you think of the episode.

Re:Full-Time Open Source: How Andrew Kelly Built Zig on Wednesday August 04, 2021 @05:50AM (#28059120)
Podcast host here. Andrew Kelly, creator of Zig shares the back story behind the creation of Zig: Why he created it, how he created it, leaving his job to work on it full time and why he is confident he can build a language that is better and more popular than C. Let me know what you think of the episode.
Re:Interview with Andrew Kelley – Corecursive Podcast on Monday August 02, 2021 @11:25AM (#28037834)
Podcast host here. Andrew Kelly, creator of Zig shares the back story behind the creation of Zig: Why he created it, how he created it, leaving his job to work on it full time and why he is confident he can build a language that is better and more popular than C. Let me know what you think of the episode.
Re:Command line tools for productive programmers on Thursday July 29, 2021 @09:38AM (#27996377)
Oh, I've not seen ranger before. Looks pretty useful.
Re:The Birth of Unix with Brian Kernighan (2020) on Thursday July 29, 2021 @08:49AM (#27995849)
Are you a bot?
Re:The Birth of Unix with Brian Kernighan (2020) on Thursday July 29, 2021 @08:40AM (#27995729)
Hi, Interviewer here! Thanks for sharing!

Brian is super modest and claims to be a horrible programmer but he is comparing himself to Ken Thompson, who he thinks is just incredible.

One thing that was interesting to me about Unix at Bell Labs was the UNIX room. It was a shared room with the computer in it but also where the coffee machine was and where they would hang out. I'm not sure if we are missing something like this with our increasingly remote culture?

Re:Command line tools for productive programmers on Thursday July 29, 2021 @08:30AM (#27995647)
Very cool! I use zoxide as a alias for cd to do this. But it only really works if you have cded using the full path in the past. But usually I have.
Re:Command line tools for productive programmers on Thursday July 29, 2021 @07:10AM (#27995105)
Author here, thanks for reading. I totally agree that non-determinism is tricky. The big thing that got me to try McFly was the suggestions are path specific. I hear fish shell has this feature built in, but I havn't tried it out.

I may be unique in this regard but the types of actions I do in one path are very different from those I do in others: working on my blog is very different from the types of things I do when working on code and it was nice to have history aware of this.

I haven't actually used McFly a lot though, so I haven't quite seen if it going to become a permanent thing for me. The UI of using FZF for history is nicer, I just didn't like the suggested matches.

You are right though, I don't have my arrow keys setup like this. I'll try that out as well. Thanks for the tip!

Re:Command line tools for productive programmers on Thursday July 29, 2021 @06:59AM (#27995040)
Author here. Thanks for sharing!

Have you seen gron[1]? It can't do everything that jq can, but it is much more in the unix philosophy than jq. It simply flattens and unflattens json out into lines so you can use standard unix tools on it.

   ▶ gron 
   "https://api.github.com/repos/tomnomnom/gron/commits?per_page=1" | fgrep "commit.author"
   json[0].commit.author = {};
   json[0].commit.author.date = "2016-07-02T10:51:21Z";
   json[0].commit.author.email = "[email protected]";
   json[0].commit.author.name = "Tom Hudson";

    ▶ gron "https://api.github.com/repos/tomnomnom/gron/commits? 
   per_page=1" | fgrep "commit.author" | gron --ungron
    [
      {
        "commit": {
          "author": {
            "date": "2016-07-02T10:51:21Z",
            "email": "[email protected]",
            "name": "Tom Hudson"
          }
        }
      }
    ]
[1] https://github.com/tomnomnom/gron
Re:Command line tools for productive programmers on Thursday July 29, 2021 @06:37AM (#27994889)
Thanks for reading the article. broot does more than just piping tree to less, it gives you a TUI version of tree that you can navigate along around it. The fuzzy finder in it works like FZF but it keeps everything in a nice compact tree view. It might be overkill but I like it.
That is great! I think there is a lot of room for innovation with dual use keys like this.
Re:Faster sorted array unions by reducing branches on Thursday July 15, 2021 @06:56AM (#27843385)
I'm sure the answer is you need to check, but would the cost of checking if you can gallop hurt performance in other cases.

I'm wondering if this removing the branch idea and the galloping idea can coexist.

Re:Faster sorted array unions by reducing branches on Thursday July 15, 2021 @06:00AM (#27843051)
Would this benefit from the galloping optimization Tim Peter's was talking about on Hn recently?

If one side is bigger than the other, try to find how many elements you can add from that side and advance that far.

Re:Beating TimSort at Merging on Wednesday July 14, 2021 @06:55PM (#27839507)
I'd like to more about this. Can I use this?
I love this. One suggestion, instead of dedicated keys for ctrl, option and other modifier keys you can use 'permissive hold' in QMK to put modifier keys in your home row.

Hold down F or J for F Lock, D or K for Ctrl and so on. My fingers adjusted to it really fast. Your keys can act as modifiers when held, and normal keys when pressed and it is works super well.

https://beta.docs.qmk.fm/using-qmk/software-features/tap_hol...

Re:Beating TimSort at Merging on Tuesday July 13, 2021 @05:16PM (#27826436)
Yeah, good point. I think you are right about it being incorrect. Updating...
Re:Beating TimSort at Merging on Tuesday July 13, 2021 @03:46PM (#27825405)
You can check it, but I'm pretty sure the difference is negligible. But yeah, all benchmarks are using the code in perf and the pop code is just to demonstrate. It is not benched.

Edit: dropping the extra list() from the blog code examples.

Re:Beating TimSort at Merging on Tuesday July 13, 2021 @01:19PM (#27823553)
TimSort is cool. In it's worst case it looks no better than merge sort, but give it some partially order data, or small amounts of data, where it uses insertion sort, and it really shines.
Re:Show HN: Earthly – Better Builds on Monday July 12, 2021 @11:20AM (#27811153)
Here is a small monorepo example. We build a DAG of dependencies between parts of the monorepo and only rebuild what is needed.

This is different but similar to what Bazel does.

Older »