News for hackers. Stuff that matters.

gcao

Show HN: Gene – a Lisp-like language built around a generic "Gene" data type

https://github.com/gene-lang/gene

Hi HN — I’ve been working on Gene, a general-purpose, homoiconic language with a Lisp-like surface syntax, but with a core data model that’s intentionally not just “lists all the way down”.What’s unique: the Gene data typeGene’s central idea is a single unified structure that always carries (1) a type, (2) key/value properties, and (3) positional children:(type ^prop1 value1 ^prop2 value2...

( Read More... | no comments | on HN )
The other suggestions are all very good. I’ll work on them when I get a chance.

About the first, I think the focus page is already very minimal. Not sure what can be moved out.

Show HN: fffocus – a simple tool that helps you clear your mind before work

The url can be found in the first comment.To scratch my own itch, I created a simple tool that should be helpful to many of us who are under constant distractions. If anyone uses this and finds it effective or ineffective, please kindly share your experience.Below are some ways I think it can be put in use:1. Before we start a work day, we can use it to clear up random thoughts and...

( Read More... | 3 comments | 7 points | on HN )
Re:Spacemacs 0.105.0 released on Monday January 04, 2016 @05:26PM (#10839206)
How well does Spacemacs work in a terminal (e.g. iTerm)? I've been using iTerm+Tmux+vim and don't want to give up iTerm+tmux just yet.
I've not done any research. It's just an idea suddenly popped into my mind :-P Any comments or suggestions are welcome.

The waiting time between numbers is what requires attention.

Re:Show HN: GHFS – GitHub repos in your filesystem on Thursday September 17, 2015 @10:59PM (#10237281)
Seems it does not handle repos or folders with "."
Re:Nim Programming Language 0.11.0 released on Thursday April 30, 2015 @03:30PM (#9467121)
Why not just recommend one way of naming things and do it in all standard APIs? If someone obviates in his custom library, that's his problem. I think below are pretty much a standard in many languages now.

THIS_IS_A_CONSTANT SomeClass someVariable someMethod()

Great work! This is very intriguing!
Re:Two Simple Steps Helped Me Learn Vim on Wednesday December 10, 2014 @09:41PM (#8732909)
I'm using the same setup (plus spf13.vim, powerline and Oh My Zsh). It looks beautiful and works very well. Here is a screenshot of my setup: http://postimg.org/image/9jqokq0ll/full/
Re:“Did you mean?” Experience in Ruby on Thursday October 23, 2014 @11:21AM (#8498591)
In pry is it possible to return something when I exit the REPL? Like this:

  def do_something
    return binding.pry

    do_something_but_does_not_work
  end

  result = do_something
  process result
It might be very convenient if I put 'return binging.pry' just before the broken code. I can interactively fix the broken code and continue run outside of current method.
Re:OS X 10.10 Yosemite: The Ars Technica Review on Thursday October 16, 2014 @05:07PM (#8467733)
Mine crashes a lot. Usually after I send it to sleep when I go home. Next time when I wake it up, it starts up from crashed state. It might have something to do with some app I installed but I didn't spend time to figure that out yet.
Re:Neovim's Next Feature Poll on Wednesday April 30, 2014 @08:38AM (#7672845)
Has anyone created mapping to jump AFTER a character? I did it and think it is great.
Re:A simple form builder application written with AngularJS on Thursday February 13, 2014 @03:12PM (#7233946)
Thank you for sharing this. However, IMHO form builder is the last thing that could be reused in different projects. How a form is presented and submitted and navigation is handled vary a lot from one project to another project.
Re:Ask HN: Who is hiring? (February 2014) on Saturday February 08, 2014 @09:11AM (#7201216)
Jon, do you mind if I send my resume and cover letter to you? If you find it a good fit to your team or any other team, please forward to the right person. I really appreciate you taking the time to review it.

My email is gcao99 at gmail.com

Re:Cloact: Minimalistic React for ClojureScript on Friday January 10, 2014 @05:27PM (#7040039)
React is nice. I've created a simple library that shares same core concept - map DOM to Javascript objects. The difference is my lib uses Javascript standard data type, array, to represent tag, and hash(or object) to represent attributes, and strings for text contents. With a few tricks, I got a very powerful library - http://github.com/gcao/T.js. You can see an example written in CoffeeScript here

https://gist.github.com/gcao/8363743

Re:Ask HN: What do you want to see in Rails 4.1? on Monday August 12, 2013 @11:24AM (#6199692)
IMHO, built-in support of api-only application is very good. Here are the reasons I can think of right now:

1. unify people who are looking for a standard approach to create api in Rails

2. clear separation between lower level http support and higher level html/js/css processing

3. performance improvement against using regular Rails for api

4. easier upgrade for app developers

Interesting project. I feel it is similar to https://github.com/gcao/T.js - my little Javascript template engine. However IMHO, json2html is too verbose for large document, and T.js is concise and provides some nice features(e.g. layout, attributes as hash etc).

Below is a T.js template written in Coffeescript. <code> tournamentResultTemplate = (data) -> return unless data.result

  [ "div.detail"
    [ "table"
      [ "tr"
        ["td", "Result"]
        ["td", data.result]
      ]
      if data.defeated
        [ "tr"
          ["td", "Defeated"]
          ["td", data.defeated]
        ]
      if data.lost_to
        [ "tr"
          ["td", "Lost to"]
          ["td", data.lost_to]
        ]
    ]
  ]
</code>
Re:Go: The game to beat all games on Monday May 20, 2013 @04:31PM (#5739844)
Go is never popular among ordinary people in China. I guess one reason is it takes a lot of time to finish a game. However, most chineses know how to play Xiangqi, the chinese counterpart of Chess.
Re:"Getting started with Ember.Js is easy." - No it isn't on Wednesday March 20, 2013 @10:02PM (#5412287)
With my due respect to guys behind Ember, I don't understand why Ember gets so much attention. It has been in works for 4~5 years now but has not reached its 1.0 status. I've seen many complaints about its learning curve, documentation etc. However, when people talk about Javascript web frameworks to learn, it is often brought up as a candidate. Maybe someone can tell me why people think it will be a serious contender in this fast moving area.
Re:Non-framework approach to JavaScript apps - hexagonal.js on Friday February 22, 2013 @04:08PM (#5266826)
It's probably a design pattern, or a flavor of AOP (Aspect Oriented Programming).

DCI, or should it be RIC(Role/Interaction/Context)?

I've read a few articles about DCI and think it is a good exploration on software design. However some questions arise when I try to wrap my mind around it.Compared to MVC which has been hugely popular and successful, I feel DCI has an inherent issue - Context and Interaction are too tightly related to each other and can not exist as standalone components like each of MVC does. From this...

( Read More... | no comments | on HN )
Re:Phusion Passenger 4.0 beta 1 is here on Wednesday October 24, 2012 @11:43AM (#4693412)
Great work!

Node.js and python support will be nice.

Re:Better than Ack on Thursday September 13, 2012 @11:29AM (#4516636)
This is great!

Even ack is fast, it still takes a few seconds when I search something inside my rails project. I hate waiting. If Ag can work with same options as ack, and with ack.vim by simply creating symbol link, it'll be great.

Btw, I noticed the output of ag does not highlight matches and include line numbers. Maybe those are what make it a lot faster?

Re:Introducing a Minimalist Html5 Game Template on Wednesday May 23, 2012 @09:59AM (#4013061)
Interesting project. It'll be good to have coffeescript support.
Re:AWS Marketplace on Thursday April 19, 2012 @09:46AM (#3862936)
It's good to see this coming. However I don't understand the price structure some vendors are offering. Take Zend Server(below is the link) as an example, why should they charge a lot more on high-memory/high-cpu instance? Is it because the incurred traffic or usage is much higher? How does this compare to setup your own server but buy server license from them.

https://aws.amazon.com/marketplace/pp/B0078UB5X6/ref=gtw_msl...

Older »