Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Snaipe
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
A cool text justification tool using dynamic programming
(github.com)
13 points
by
Snaipe
6y ago
|
0 comments
2.
▲
Lightweight containers in Go with bst and btrfs
(snai.pe)
2 points
by
Snaipe
6y ago
|
0 comments
3.
▲
Show HN: Bst: a one-stop shop Linux namespace utility
(github.com)
5 points
by
Snaipe
6y ago
|
0 comments
4.
▲
Dot-Git: Dotfiles the Git Way
(github.com)
2 points
by
Snaipe
9y ago
|
0 comments
5.
▲
Dot-Git: Managing Your Dotfiles the Git Way
(github.com)
1 points
by
Snaipe
10y ago
|
0 comments
6.
▲
by
Snaipe
10y ago
This means that if you distribute your dissector, you have to make your sources available. This is nothing new though: all wireshark plugins must be GPL, since the API itself they rely on is GPL.
7.
▲
by
Snaipe
10y ago
This is because wssdl is still within the boundaries of the lua grammar: the file you provide is still lua, so you have to abide by its rule. I experimented with a key/value approach on the syntax itself (something like `{ src_port = u
8.
▲
Wssdl – WireShark-Specific Dissector Language
(github.com)
76 points
by
Snaipe
10y ago
|
13 comments
9.
▲
by
Snaipe
11y ago
I originally made this for an interactive index where you can query some document parts, and these parts are written in rst -- in essence, it's almost the same: rendering an arbitrary document into a string, that you may or may not man
10.
▲
by
Snaipe
11y ago
Man pages are their own thing -- although the end result could be the same with some aesthetic differences (man pages does not support colors per-se, though with a config you could style your titles or emphasis). rst2ansi is a more generic
11.
▲
by
Snaipe
11y ago
Author here. This software is still in alpha, and lacks in both handling some reST features and style extensibility, but is still pretty much functional. I made this for another project of mine where I needed to render some document parts o
12.
▲
Show HN: Rst2ansi – a rst document renderer for your terminal
(github.com)
1 points
by
Snaipe
11y ago
|
5 comments
13.
▲
by
Snaipe
11y ago
Author here. This was fun to make, although I'm sure this algorithm is absolutely nothing new. An implementation of this for rendering tables as rst-style ascii is available here: https://github.com/Snaipe/table2as
14.
▲
Show HN: A simple algorithm for drawing complex tables
(snai.pe)
25 points
by
Snaipe
11y ago
|
6 comments
15.
▲
by
Snaipe
11y ago
Because C hasn't been a subset of C++ since C99, there are plenty of case where trying to do C in C++ is awkward or just not possible with standard C++: First, you'd have to wrap your header inclusions in `extern "C"` to
16.
▲
by
Snaipe
11y ago
Macros are used to handle platform specific details, for the most part. I don't think it's that opaque, but then again I might be biased.
17.
▲
by
Snaipe
11y ago
Google Test requires you to write your tests in C++ rather than C; so there was times I just could not use it.
18.
▲
by
Snaipe
11y ago
By default, if the test raises any signal or exits with anything other than 0, the test fails. Otherwise, you can't (yet!) test if the code exits with a specific value nor simply redirect input/output, but I'll be sure to tak
19.
▲
by
Snaipe
11y ago
Actually, I didn't know about it until now! The project uses a similar approach to mine, by parsing the DIE tree produced by dwarf, which means that it won't work if you're not compiling with -g. It also uses some very platfo
20.
▲
by
Snaipe
11y ago
Developer here. I made this unit testing framework out of frustrations I had (and still have) with other C frameworks like CUnit or Check. I wanted to make something much more simple, yet as powerful, and I think (and hope) I nailed it pret
21.
▲
Show HN: Writing modern C unit tests with Criterion
(github.com)
34 points
by
Snaipe
11y ago
|
13 comments
22.
▲
by
Snaipe
11y ago
Developer here. If you have any suggestion/criticism on the project, I'd be happy to know. What this brings on the table compared to other frameworks is a very simple way to write tests, while giving the programmer enough liberty
23.
▲
by
Snaipe
12y ago
Developer here. I'll be happy to answer or listen to any question/criticism. The library is currently supported on Linux and Mac OS X.
24.
▲
by
Snaipe
12y ago
Developer here, I would be happy to answer any question that you have. If you have any suggestions/criticism, I would gladly hear it!
25.
▲
Show HN: Criterion – A new C unit testing framework
(github.com)
2 points
by
Snaipe
12y ago
|
1 comments
26.
▲
by
Snaipe
12y ago
Developer here, if anyone has suggestions/criticism, I would be glad to listen. AMA.
27.
▲
Show HN: A new unit testing framework for C
(github.com)
2 points
by
Snaipe
12y ago
|
1 comments
28.
▲
by
Snaipe
12y ago
If a function may or may not return, and it is not marked for inlining, even gcc cannot infer whenever the variable exits the scope, so no. You have to be extra careful anyways when using context switches.
29.
▲
by
Snaipe
12y ago
Not tested, but since longjmp has __attribute__ ((noreturn)), it should.
30.
▲
by
Snaipe
12y ago
I pretty much explain all that in the article[1], but here is the gist of it: * I implemented smalloc and sfree to respectively allocate and deallocate a memory block with prepended metadata * I use a GNU variable attribute called cleanup t
More ›