News for hackers. Stuff that matters.

afraca

Re:A visual demo of Ruby's lazy enumerator on Saturday January 11, 2025 @05:10PM (#42669332)
When I learned Haskell in college I was blown away by how laziness enables cool things like dealing with infinite lists or more performance even though the UX is exactly the same. (Apparently with Ruby there is the slight hint of adding the lazy method in between)

Later I found out laziness in the whole system by default leads to some difficult issues, which quite a few people seem to agree with. Simon Peyton Jones (Haskell co-creator) apparently has said "The next Haskell will be strict". (https://news.ycombinator.com/item?id=14011943)

Re:I Love Laravel (2022) on Tuesday May 21, 2024 @02:59AM (#40425028)
I have about 7 years of professional Laravel experience. I think it's quite slick! There is one aspect I haven't seen mentioned here that frustrates me: the community is quite eager to make new shiny things and forget about existing things. I feel the core framework doesn't get a lot of love anymore, and the same for some other packages. Something like Homestead got introduced as a huge thing, but got relatively quickly replaced with Sail and Valet it kind of seems. (Yes, they have a bit different corners, but I would say it doesn't justify a complete package) For authentication you have multiple packages that were introduced as the holy grail but now sit in an awkward spot with each other, and similar for frontend things packages.

Another small frustration for me is all the huge adjectives being used: - "Laravel Horizon provides a beautiful dashboard ... "

  - "Laravel Jetstream is a beautifully designed application... "

  - "Laravel Octane supercharges your application's performance..."

  - "Laravel Prompts is a PHP package for adding beautiful and user-friendly forms  ... "

  - "Laravel Reverb brings blazing-fast and scalable real-time WebSocket ..."

  - "Laravel Sanctum provides a featherweight authentication system ... "

  - "Laravel Telescope makes a wonderful companion ..."

  - "In other words, Valet is a blazing fast Laravel development environment ..."
I think it would we wise to do a bit of a cleanup and merging of official packages, and to not forget about the core framework. I think Symfony shows you can still do great additions even after many years like Targeted Value Resolvers [0]

You can see all the official packages clicking the "Ecosystem" button in the header of laravel.com

[0] https://symfony.com/blog/new-in-symfony-6-3-targeted-value-r...

Re:Doom Running on a Toothbrush on Thursday February 29, 2024 @07:52AM (#39548671)
I'm wondering: IS there a way to get to that video from the linked tweet without being logged in? I could not figure it out.

Thank you for your service of providing the video.

Re:How many IP addresses can a DNS query return? (2015) on Monday February 05, 2024 @03:14AM (#39258533)
Maybe it's the monday morning blues (can't seem to think), but how does this work for DOH/DOT?
Re:Making Rust binaries smaller by default on Wednesday January 24, 2024 @03:30AM (#39115009)
I was curious about how an implementation for this would work and browsed the PR. Cool stuff, thanks for putting the effort in!

I noticed a very tiny typo which doesn't affect behaviour I think. https://github.com/rust-lang/cargo/pull/13257/files#r1464506...

In Europe there are a few options which let you pay with your bank account without a credit card. I tried to look up all the things Wise supports, found part of the list:

Trustly, Sofort, IDEAL

IDEAL is huge in the Netherlands for example.

Re:Keep Stuff Linkable on Monday April 17, 2023 @07:09PM (#35607845)
I find it quite odd and funny that the author specifically mentions Google, and his script has a function `def google_it(query):` but then in the function he uses DuckDuckGo. Is the author ashamed, or does he expect people to not trust DDG?
Re:Htmx 1.9.0 has been released on Tuesday April 11, 2023 @07:00PM (#35532857)
I was curious about Mozilla's stance on the API. They have a GH issue for it: https://github.com/mozilla/standards-positions/issues/677

but it's not finalized yet. View the very interesting dashboard here: https://mozilla.github.io/standards-positions/

Re:Wat [video] (2012) on Wednesday March 29, 2023 @11:17PM (#35367472)
I agree with my sibling comments, but want to add that nowhere does TS imply it has it's own stdlib or anything. If you type map, you know fully it's the JS map that's going to be executed. I don't think TS ever wants or could replace the JS stdlib.
Re:Wat [video] (2012) on Wednesday March 29, 2023 @08:28PM (#35366017)
Some people might not know this yet, the common idiom is to have the default value be None, and then start your function with checking if it's None and initializing to empty list.
Re:Setting up a Pi Hole made my home network faster on Sunday May 29, 2022 @09:00PM (#31554480)
This is very very similar to something developed by SIDN labs called "DNS Resolution Required", you can read the blog post here:

https://www.sidnlabs.nl/en/news-and-blogs/dns-resolution-req...

Re:A framework that makes things worse on purpose on Friday January 29, 2021 @03:08AM (#25955165)
I thought it was from the React codebase, but it's differently named there: https://github.com/facebook/react/blob/b2ca3349c27b57b1e9462...
> WSL 2 will be available on all SKUs where WSL is currently available, including Windows 10 Home. > The newest version of WSL uses Hyper-V architecture to enable its virtualization. This architecture will be available in the 'Virtual Machine Platform' optional component. This optional component will be available on all SKUs.

I don't really grok this, does this mean Hyper-V will be available on Windows 10 Home? That's the only reason I am considering buying a pro license.

Re:Unverified.email on Wednesday April 08, 2020 @02:32AM (#22810546)
> we can create a mailbox via HTTP GET request to https://api.unverified.email/create

Shouldn't GETs be idempotent? (Sorry for not having feedback on the idea, skimming it it seems nice, though there is fierce competition as others have shown here)

Re:Why Svelte is our choice for a large web project on Tuesday March 10, 2020 @05:08PM (#22539709)
Slightly offtopic: Why a git repo for a blog post? I guess there are some pro's: public history, PR's , but a blog has comments directly under the article for example. Forking is not expected. Ah well, extensive information anyway, good work :)
Re:Apollo 11 Guidance Computer vs. USB-C Chargers on Friday February 07, 2020 @04:49AM (#22264518)
I remember there being a guy who reviewed a lot of usb-c cables for compliance (NathanK) having a video on how non-compliant cables can wreck devices:

https://www.youtube.com/watch?v=SjeZB12985c

Maybe that's an example of what you mean?

These days Haskell proponents aren't as proud anymore on laziness. Simon Peyton Jones has actually admitted it was a mistake for it to be the default : https://news.ycombinator.com/item?id=1924061

Nevertheless, it has its use cases.

Re:Run an Internet Speed Test from the Command Line on Wednesday November 20, 2019 @05:34AM (#21582673)
To get a list of all the other locations go to the DO page (strip the filename): http://speedtest-ams2.digitalocean.com/

It's not https, for performance? ... (My download|upload: 33Mb/s | 8Mb/s)

Re:GNU Compiler Collection Internals [pdf] on Tuesday November 12, 2019 @06:09AM (#21513215)
In case you're worried this is outdated, note this is for version 10 of gcc (pdf is a pre-release) as stated on the frontpage of the document. I am curious how they plan to keep this updated, I could not easily find the repository for this.
Re:Volatile – A key-value pair API on Tuesday November 12, 2019 @03:03AM (#21512372)
My initial response to your comment was "but then the page requires JS", which of course is not true, since a simple inline form could POST and then a redirect could get you back.

I'm no webdev, I think JS has been hyped so much around me I forgot plain html can actually do things...

Sorry for nitpicking: "emperor's cut"
Re:TypeScript 3.6 on Thursday August 29, 2019 @03:20AM (#20827442)
I applaud Microsoft for popularizing gradual typing , bringing types to the js world is an enormous task, both technical and (js-)societal.

Regarding your syntax criticism: I quite agree. I really really like the path chosen by Haskell. Types are obviously a major part of Haskell, but there you just separate the type signature from the implementation.

  emap :: (DynGraph gr) => (b -> c) -> gr a b -> gr a c
  emap f = gmap (\(p,v,l,s)->(map1 f p,v,l,map1 f s))
    where
      map1 g = map (first g)
(Of course there are other helping things like type synonyms, which TS also supports)

  type UPath   = [UNode]
Re:Lessons we learned when debugging a scaling problem on Tuesday August 27, 2019 @01:55PM (#20812572)
Bravo to the people that can navigate such a complex (not an insult) architecture and pull useful information from it! I expect it to be quite tricky to get in between the production environment(s) and capture packets or change logging etc.

I did wonder though: the authors seemed a bit unsure about the relation between MaxStartups and resource usage, wouldn't it be wise to just send an email to the openSSH mailing list or something to not be surprised by possible future problems?

Re:Python Is Eating the World on Monday August 12, 2019 @03:50AM (#20673375)
For those unaware: Haskell has a REPL (ghci), and you can make files more script-like with the (currently most popular) build tool stack[0] if you include:

  #!/usr/bin/env stack
  -- stack --resolver lts-6.25 script --package turtle
(as you see it includes easy dependency management :) )

0: https://docs.haskellstack.org/en/stable/README/

Re:Show HN: JSON Pizza – Beautify your JSON quickly on Thursday August 08, 2019 @01:47PM (#20646749)
Looks nice and simple :)

I think a strong example would really help your case, the landing page now has already formatted json, and I can't figure out where to get a messy example from quickly.

Re:Blender 2.80 on Tuesday July 30, 2019 @03:38PM (#20568355)
I enjoy removing technical debt, I can't image the satisfaction one would get from a commit like this:

https://developer.blender.org/rB159806140fd33e6ddab951c0f6f1... Showing 876 changed files with 228 additions and 193,524 deletions.

Another large cleanup was done on the "internal and legacy viewport" (I'm not familiar with the lingo, sorry), also so satisfying:

https://github.com/sobotka/blender/commit/51b796ff1528c52cc8... (only have the git mirror link, sorry) Showing 309 changed files with 1,687 additions and 84,075 deletions.

Re:Writing a Technical Book for Manning on Saturday April 20, 2019 @03:13PM (#19708340)
Meta: I would appreciate it if quotes are accompanied by some explanation of why you chose it.
Re:LHCb experiment discovers a new pentaquark on Wednesday March 27, 2019 @08:11AM (#19500057)
This is both entertainment and information, so to justify it I'll ask a question about this: https://www.youtube.com/watch?v=j50ZssEojtM (Large Hadron Rap)

Are these goals still accurate or has new knowledge and engineering changed the goals of the detectors?

Re:The C-- Language Specification (2005) [pdf] on Tuesday March 19, 2019 @08:18AM (#19430078)
A prominent project where I have encountered this is GHC, the Haskell compiler. The route there goes: Haskell --> Core --> STG --> C--

(It then goes to one of: - Machine code generation - into C for feeding to gcc - into LLVM's intermediate representation. )

Re:RPCS3 PS3 Emulator – January 2019 Progress Report on Sunday March 17, 2019 @03:25PM (#19415934)
These reports are amazing, even though it's hardly understandable if you're not on the project.

I recommend the Dolphin emulator blog as well. The last one: https://dolphin-emu.org/blog/2019/02/01/dolphin-progress-rep...

I remember vaguely something about them using a visual difference tool as a regression test, really cool!

Older »