Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
orangeduck
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
17 Line Markov Chain
(theorangeduck.com)
1 points
by
orangeduck
10y ago
|
0 comments
2.
▲
14 Character Random Number Generator in C
(theorangeduck.com)
61 points
by
orangeduck
10y ago
|
17 comments
3.
▲
Generating Icons with Pixel Sorting
(theorangeduck.com)
72 points
by
orangeduck
10y ago
|
5 comments
4.
▲
/code --poetry
(code-poetry.com)
9 points
by
orangeduck
10y ago
|
1 comments
5.
▲
by
orangeduck
10y ago
Yeah split stacks will be a problem. Essentially `tgc` just scans between the address recorded as the "bottom" and the one recorded as the "top". Both of theses can be manually adjusted if you have some better idea of th
6.
▲
by
orangeduck
10y ago
The registers are flushed to the stack before the mark is performed (using `setjmp`) so unless the behaviour of the platform is particularly odd in this case it shouldn't be an issue.
7.
▲
by
orangeduck
10y ago
For anyone curious, I built a project in C called tgc ( https://github.com/orangeduck/tgc ) which has some similarities. It's essentially a stand alone version of the Cello Garbage Collector ( http://libce
8.
▲
by
orangeduck
11y ago
I really like this idea, but bezier curves are quite computationally difficult to use. There are many representations of these kind of continuous shapes which are much easier for this kind of processing. For example I would try converting t
9.
▲
by
orangeduck
11y ago
Lua has an alternative to Regex which is an extension of the C patterns (used in printf etc). http://lua-users.org/wiki/PatternsTutorial At first I found it a bit confusion but they're actually pretty great. For m
10.
▲
by
orangeduck
12y ago
It uses raw pointers (void*) and something a little like a vtable: http://libcello.org/documentation/hacking
11.
▲
by
orangeduck
12y ago
Author here. I always get asked two questions about libCello. 1. Why? 2. Is anyone using it for anything serious? The second one is easiest to answer: no. And most people are suprised to hear that I probably wouldn't use it for anythin
12.
▲
by
orangeduck
12y ago
Thanks for the support, and congratuations to yourself on publishing. It looks like you've done a really great job and totally nailed the process and the print version! > How did it end up working out? I assume it's process, no
13.
▲
by
orangeduck
12y ago
I've also recently self published my book http://www.buildyourownlisp.com/ via createspace, having first converted it to an ebook and then to a print book, so I was really interested to see this article to read what wa
14.
▲
by
orangeduck
12y ago
I'm a big advocate of "worse is better" - in fact I put it in my bio even at the risk of scaring off potential colleagues or employers. The real meaning of "worse is better" is of course subjective and complicated.
15.
▲
Show HN: Convert JSON to C data literals
(github.com)
1 points
by
orangeduck
12y ago
|
0 comments
16.
▲
by
orangeduck
12y ago
I think this demonstraights a real weakness of Haskell. Several times I've started a new project only to spend several hours trying to work out the correct way to structure what I want. Often it is hours before I even get my first succ
17.
▲
Counting Syllables and Detecting Rhyme in PHP (2012)
(cdmckay.org)
11 points
by
orangeduck
12y ago
|
2 comments
18.
▲
by
orangeduck
12y ago
Macros in C can sometimes be nasty, but "min" is a pathological case for a macro because it isn't what macros were meant for. In reality "min" should just be a function, and you should write a separate function for
19.
▲
by
orangeduck
12y ago
So I get it, and it makes a good point, but this could be more of a symptom than a disease. When I first started programming C I also tended to just exit the program on getting a bad return code, because I'd never been taught how to pr
20.
▲
by
orangeduck
12y ago
Anyone who likes this idea but wants to do it in C might enjoy this http://www.buildyourownlisp.com/
21.
▲
by
orangeduck
12y ago
Hi crnxion. The source can be found here: https://github.com/orangeduck/BuildYourOwnLisp I welcome corrections/edits.
22.
▲
by
orangeduck
12y ago
Thanks. I've fixed the link.
23.
▲
by
orangeduck
12y ago
Author here. A parser combinator library is used to do the parsing.
24.
▲
by
orangeduck
12y ago
Thanks for the suggestion. I'll open this option up if possible.
25.
▲
by
orangeduck
12y ago
I wrote this book over several months. It took a few days to get the courage to share it online. It probably took you about 20 seconds to not read my book, dismiss it, and post a comment telling other to do the same. If you think an alterna
26.
▲
by
orangeduck
12y ago
Author here. Actually a parser combinator library is used for the parsing. As you mention, I think there should be some interesting things inside for people with any experience in C.
27.
▲
Clive Wearing, a man with a memory of only seconds.
(newyorker.com)
2 points
by
orangeduck
12y ago
|
0 comments
28.
▲
Mpc – Parser Combinators for C
(github.com)
2 points
by
orangeduck
13y ago
|
0 comments
29.
▲
by
orangeduck
13y ago
If you understand the difference between snprintf and sprintf, what trouble it can cause, and where to use it, it sounds like you're already doing great. What would be bad was if you had the blind notion that "snprintf is good&quo
30.
▲
by
orangeduck
13y ago
Half the people in this thread seem to have missed the point. This article is not supporting 100% abstinence of these functions. It is doing exactly the opposite - and showing up people who say "never do this" or "that is alw
More ›