Better HN
topnewbestaskshowjobs
Log inSign up

ruste

374 karma · joined Jun 16, 2016 (10y ago) · 171 submissions

Submissions

comment 10y ago · link · parent

I was also completely unaware that Java had a macro system. I'll have to check that out.

comment 10y ago · link · parent

I probably should have presented more than one example in my post. A lot of people are focusing on the example I presented and not the general utility. Live and learn I guess. :/

comment 10y ago · link · parent

That does sound better. Build up the structure you want then convert to a string.

comment 10y ago · link · parent

I completely agree. This is actually better than a lot of cases because Java import statements are just lisp symbols delimited by periods. This is mostly only useful if you're transforming lisp statements into code. Transforming java to java or c to c is just a mess. Still, If I need to do some ugly code transformation, I'd rather it be in scheme than c. :)

Also, the example could and probably should be rewritten more cleanly. Hence the comment. That was the first thing I used the tool for and my scheme has improved since.

155.

Guile-lips: Scheme as a generic macro language(rbryan.github.io ↗)

40 points · by ruste · 10y ago · 32 comments

comment 10y ago · link · parent

The total estimate he made for the front was 1.2 billion tons. 2.5 million was just for one square mile given the metric.

comment 10y ago · link · parent

For what it's worth: https://tweetsave.com/nero

158.

Show HN: A program to solve and format homework problems(rbryan.github.io ↗)

1 points · by ruste · 10y ago · discuss

comment 10y ago · link · parent

Give her a linux install disk and maybe a few pointers on how to use it as well as a copy of K&R C. I was about her age when I started!

comment 10y ago · link · parent

From what I've seen, a lot of it is people getting used to a standard of living above their means and being totally okay with going into debt to maintain it. People get used to having a lot of things they really don't need and end up spending a considerable amount of money on them. Upgrading phones through their cell phone provider for instance. I know a lot of people that just think "oh yay! I'm due for an upgrade." I think many don't realize that the phone isn't free. They could buy the phone outright and it'd be cheaper. They just pay for the phone through a higher cell phone bill for several months. Things like that add up.

comment 10y ago · link · parent

My transfer credit was included in my GPA. :( It isn't too bad, but still.

comment 10y ago · link · parent

You're absolutely right. The drinking age is too high. 18 is perfectly reasonable.

comment 10y ago · link · parent

At least in my case it seems that the distribution of GPAs becoming more skew left and closely grouped has made it much easier to distinguish myself. Companies recognize that GPA is becoming a less useful metric and are quick to consider anyone who presents them with anything else to consider. I've had very little trouble finding work or getting interviews because I've mainly focused on personal projects and actual experience rather than school. Anyone could, in a month, do more to distinguish themselves from the pack by completing a personal project than by hunkering down and raising their GPA by a few points.

comment 10y ago · link · parent

If I had to pick any single example of C code to put the fear of god in young programmers and make sure that they never wanted to touch C in their life, the example on this page would be it. That is the single ugliest piece of C I have ever seen. C can be a beautiful language. This is not that. I take it this is Microsofts fancy new checked C?

comment 10y ago · link · parent

A pound of sugar a month is only 15ish grams per day. You get more than twice that in a can of coke.

comment 10y ago · link · parent

That's fantastic! Good for Maryland! Hopefully it catches on. I'm not normally one for government spending and programs like this, but this is a cause I can get behind. I think reducing unintended pregnancies is a significant step toward a better society.
123456