HNHacker News
TopNewBestAskShowJobs

jingweno

316 karma · joined November 8, 2010

submissionscomments
jingweno··on Show HN: Build a coding agent in 500 lines (Pure Python, No Vector DBs)
OP here. Just to be clear—the book is the guide, but the agent itself is open source.

You can check out the full code (the 500-line nanocode.py) here: https://github.com/owenthereal/build-your-own-coding-agent

I'm happy to answer questions about the 'Zero Magic' architecture or the decision to drop vector DBs.

jingweno··on GuardLlama – The Ultimate Open-Source Privacy and Security Gateway
It's a coincidence. One is a cybersecurity product that allows browsing the web securely. The other is a ML model :)
jingweno··on Show HN: Spotctl - A CLI to Spotify written in Go
LGTM
jingweno··on Godzilla: Go running JavaScript
Thanks!
jingweno··on Show HN: Hacker News desktop app made with Electron and Node
Good call! We fixed it at https://github.com/jingweno/hacker-menu/pull/15.
jingweno··on Show HN: Hacker News desktop app made with Electron and Node
That's exactly the idea of Hacker Menu. You could check the news anytime by just clicking it, but it's not distracting
jingweno··on Show HN: Hacker News desktop app made with Electron and Node
Glad you like we open source it :)
jingweno··on Show HN: Hacker News desktop app made with Electron and Node
We're working on the Windows and Linux builds. Or if you can't wait, just clone the repo and run `npm start`: https://github.com/jingweno/hacker-menu#development
jingweno··on Show HN: Hacker News desktop app made with Electron and Node
Yeah, unfortunately the app bundled with a Chrome. But, the upside is it's implemented in HTML/CSS/JavaScript and it's hackable :)
jingweno··on GitHub's “hub” tool rewritten in Golang
I have a blog post talking about the intention of building gh which ends up being hub 2.2.0: http://owenou.com/2013/12/22/fast-github-command-line-client...
jingweno··on A playground for the command line JSON processor jq
I feel the same here! +1
jingweno··on Travis Archive: record and archive Travis CI build results for further analysis
It archive every travis builds are generated every day. The intention is to apply analysis on the data so that you could ask question like which build has the longest build time etc.
jingweno··on Write Build Tasks in Go with Gotask
Fix the link in https://news.ycombinator.com/item?id=6809527
jingweno··on Write Build Tasks in Go with Gotask
I created another item here: https://news.ycombinator.com/item?id=6810671
jingweno··on Write Build Tasks in Go with Gotask
I don't see any edit link. Do you know how I do that?
jingweno··on Write Build Tasks in Go with Gotask
I don't know...I did paste the right link. Thanks for posting the right link here again.
jingweno··on A GitHub command line client written in Go
`clone` is on the way :) https://github.com/jingweno/gh#roadmap
jingweno··on A GitHub command line client written in Go
Ya, I borrow some of the ideas from that gem :)
jingweno··on A GitHub command line client written in Go
haha thanks :)
jingweno··on Simple Go wrapper for the GitHub API
Btw, the library is implemented by referring to the official Ruby wrapper: https://github.com/octokit/octokit.rb
jingweno··on Simple Go wrapper for the GitHub API
Can you give more details by supporting https? It's calling GitHub's API through https
jingweno··on Gh: fast GitHub command line client in Go
There're more benchmark available on the README now: https://github.com/jingweno/gh/blob/master/README.md
jingweno··on Gh: fast GitHub command line client in Go
I am trying to port hub (https://github.com/defunkt/hub) to Go
jingweno··on Things Git And GitHub Can Do
The title should be "Ten Things You Didn't Know Git And GitHub Could Do"
jingweno··on PoEAA on Rails
The book Patterns of Enterprise Application Architecture (PoEAA) laid the blueprints for Rails’ architecture. However, as applications growing more and more complex, developers are starting to realize these default architectural patterns come with Rails may not scale very well. In the post PoEAA on Rails, I walk you through some enterprise patterns from the same book that Rails’ architecture heavily base upon, and provide suggestions on scaling your Rails codebase.
jingweno··on Twitter: From Ruby on Rails to the JVM [video]
The point is you probably never need that performance gain on the VM level (YAGNI) at all. Things are changing very fast in software development, your project could die or fail long before you really think about performance optimization on the VM level. But when you start a project and think that my project will fail because I use Rails and Rails doesn’t scale, you are doing it all wrong! What you really need is a tool that helps you iterate faster. Rails falls into this category. And that’s the productivity gain that I am thinking when starting a company.

As a pragmatic approach, a half century of software engineering says that you should write the code first and worry about making it faster only if it is too slow. Donald Knuth is right: Premature optimization is the root of all evil. Don’t merely let the VM performance metric blind you to this fundamental truth. If you are chasing for a performing language, Java/Scala is not your ultimate solution, C/C++ is, even Erlang.

I actually don’t see a problem with “performance” emerging as the requirement in the Ruby world sooner than others, say Java/Scala, because this “sooner” is very contextual and depends a lot on the implementation. To give you more info, GitHub is on RoR since it started, and till now they haven’t hit the so-called “Rails does not scale” point ( http://teachmetocode.com/podca... ). So are many other projects. Besides, think about Twitter, they only recently try to port everything to the JVM, after Rails has served them a couple years. All these facts tell you, this “sooner” may never happen to your own app, and most importantly, Rails can scale, although it may not scale as well as others! But once you hit the point where Rails, or Ruby in general, doesn't meet your performance requirement (assuming you are lucky enough to build another Twitter), do what Twitter suggests you to do in the video. Is that too late? Not at all. Because by then, you have the resources to do whatever you want, even inventing a VM that is more performing than JVM.

To summarize, the Ruby VM was fast yesterday, is still fast today, and will be faster tomorrow. In 90% of the cases, it's just fast enough. Do I need the performance gain by switching to JVM? Don't know yet. It'd be better to let the market drive you. Does Rails provide the agility I want to start a project? 100% hell yeah!

jingweno··on Twitter: From Ruby on Rails to the JVM [video]
I think most people misunderstand the point made by Raffi...yes, JVM has awesome performance, but never try to solve performance issue up front by sacrificing the agility offered by RoR. Not everyone is building Twitter, you don't even know whether you will hit the point where the VM is blocking your way. If you blame all the performance issue to the VM level, you are simply doing it wrong...In 90% of the cases, MRI is fast enough and meet your requirement (GitHub, Groupon, Living Social and many others are using RoR BTW). Twitter is very pragmatic at this respect, they have tried all the means to scale the app on RoR before they move to the JVM. Never ever try to solve a requirement that doesn't even exist in your own app...
jingweno··on Testing REST Web Services with Rails
Testing REST web services has never been easy. It requires a running web server, multiple threads, network conection and complex transaction management.

Ideally, REST web service client test should have the following characteristics:

    The experience of testing web service API is similar to that of testing a ActiveRecord model
    Start up and shut down the web server for the purpose of running REST web services
    Rollback test data after each test
    Control fixture creation for REST web services
In this article, I demonstrate solutions to each of those mentioned with ActiveResource and Distributed Ruby.
jingweno··on Cook up presentations with Git
The things is you wanna minimize your toolset of making your presentation, such as just using Git and Textile. Of course other sort of presentation has their places
jingweno··on Cook up presentations with Git
Showoff is pretty cool too! But the shiniest point of jekyll_and_hyde that I would like to mention is its tight integration with jekyll, which is the GitHub Pages rendering engine. That means you can publish your slides just by simply pushing it up to GitHub :).
Page 1 of 2Next →