News for hackers. Stuff that matters.

sunfmin

Re:Maud: A Rust macro for writing HTML on Tuesday June 07, 2022 @07:10AM (#31652436)
Re:Show HN: A Full-Stack Web Framework for Go on Saturday May 14, 2022 @01:36AM (#31375354)
People interested in this might also find my project interesting: https://docs.goplaid.dev, https://github.com/goplaid/
Re:I fell in love with low-JS on Wednesday May 04, 2022 @11:28PM (#31269063)
https://docs.goplaid.dev completely embrace low-JS in the Go world, you can write pretty complex UI interactions without write a single line of JavaScript, but only Go code.

It also integrate heavy duty UI component library like Vuetify, So you can use it easily in Go code.

It even go further to have presets that help you easily build Admin UI with much flexibility. https://docs.goplaid.dev/samples/presets-detail-page-cards/c...

Re:Go package: fanout – make writing parallel code even easier on Saturday January 10, 2015 @04:29AM (#8866383)
Bookmarked and Stared!
Re:Go package: fanout – make writing parallel code even easier on Saturday January 10, 2015 @03:56AM (#8866345)
Thanks, but there will be I/O waiting stuff right? For that whois command example, I find the CPU usage is zero if I am not running it parallel.
Re:Go package: fanout – make writing parallel code even easier on Saturday January 10, 2015 @03:54AM (#8866342)
Yes, I often find myself lost in this trivial channels + goroutines + WaitGroup combination. For my self I'd prefer cast interface{}, :-)
Re:Go package: fanout – make writing parallel code even easier on Saturday January 10, 2015 @03:20AM (#8866302)
I guess it is a parallel queue, It saves the trouble to worry about goroutines and channels and synchronizations, encapsulated the logic that talked in http://blog.golang.org/pipelines last part. To make use of that pattern easier.

I have quite a few use cases myself:

1. Say there is a article on the web, that contains dozens of images embed in the html. Which I want to crawl the article, and Also the images, and put the image into S3 for faster serve. I can use the fanout concurrency pattern to put upload all the images simultaneously to S3 to make it faster.

2. Say I have 20 mysql node sharded data, I want to fetch top 50 latest created data from all of them, and sort it to and show it to user after.

Re:Hood: A transactional, database-agnostic ORM for Go on Monday December 17, 2012 @04:23AM (#4931522)
I actually want to see this:

    hd.Where("name = ?", name).Where("category = ?", category)

So that you can do conditional where easily, for example:

    hd = hd.Where("name = ?", name)
    if category != "" {
        hd = hd.Where("category = ?", category)
    }
But It doesn't seem to support this?
Re:Basecamp Next on Tuesday December 06, 2011 @10:32AM (#3319593)
In early 2012, 37signals will introduce Basecamp Next , And you'll see why 2012 won't be like "2012"