HackerTrans
TopNewTrendsCommentsPastAskShowJobs

rantouan

no profile record

Submissions

Compbolt: A lib with a hard to misuse API (based on Matt Godbolt)

github.com
2 points·by rantouan·в прошлом году·0 comments

[untitled]

2 points·by rantouan·2 года назад·0 comments

Badgermole is a library for creating an SSH App server for OTP

github.com
3 points·by rantouan·2 года назад·1 comments

Dear software engineer: please be flexible

blog.simplecode.gr
1 points·by rantouan·2 года назад·1 comments

comments

rantouan
·в прошлом году·discuss
overflow problems, which I try to avoid, start only if its bigger than int.

So I had assumed that in my case I'm alright. Do you see any change needed that I can't see ?

---

Maybe a good idea would had been to go by platform or architecture and use some macros to do the check only if it's really needed. What do you think of it ? How would you implement it ?

You can make a pull request as well.
rantouan
·в прошлом году·discuss
not bad, check my suggestion for pull request, above
rantouan
·в прошлом году·discuss
For the restoring part, could you make a pull request please ? Open source strength is that we work together on things.
rantouan
·в прошлом году·discuss
hello, errno is set to 0 first thing.

I added now a "/** * * */" separator to make it even more clear.

I don't know, but I like separating things like that, I think it's handy for cases like now that setting the errno was kind of mixed with vars initialization.

```

    errno = 0;

    char *strtolEndptr;
    ...

```

->

```

    errno = 0;

    /*** * * ***/

    char *strtolEndptr;
    ...
```
rantouan
·в прошлом году·discuss
https://www.gnu.org/savannah-checkouts/gnu/libc/index.html : The project website can be found here: https://sourceware.org/glibc

->

https://sourceware.org/ Links table on the left -> "GLIBC" button

->

https://sourceware.org/glibc/ Top menu -> "sources"

->

https://sourceware.org/glibc/sources.html "gitweb" link

->

https://sourceware.org/git/?p=glibc.git Top menu -> "tree" link

->

https://sourceware.org/git/?p=glibc.git;a=tree Tree -> "stdlib" link

->

https://sourceware.org/git/?p=glibc.git;a=tree;f=stdlib;h=93... Tree -> "atoi.c" row -> "raw" link

->

https://sourceware.org/git/?p=glibc.git;a=blob_plain;f=stdli...

``` /* Convert a string to an int. / int atoi (const char nptr) { return (int) strtol (nptr, (char *) NULL, 10); } libc_hidden_def (atoi) ```
rantouan
·2 года назад·discuss
very good !
rantouan
·2 года назад·discuss
voting up because I don't care if the API may be down, it's the idea that matters and the idea is good ! Keep working on it
rantouan
·2 года назад·discuss
Badgermole is a library for creating an SSH App server for OTP (One-Time Passwords) for authenticating requests to HTTP server. This library exists because usernames and passwords are unsafe in this day and age, while other OTP mechanics have become complicated.
rantouan
·2 года назад·discuss
While coding tends to be rigid, software engineering strives to be flexible. This flexibility is crucial because software engineering acts as the intermediary layer between code and the dynamic real world. In the real world, adaptability is key, and flexible software is more likely to align with the ever-changing demands, unlike rigid counterparts that may quickly become outdated.