8 ms·
Ask HN: Know some Good C programming communities?
I'm on the journey of developing a web-browser from scratch in C and I keep coming across niche questions on how certain libraries function (Xlib). I did some searches, but I couldn't find any forum or community that was recently active.
Do you know of active communities that have Knowledge of C/Xlib?
- mc4ndr3 4y agoThe C++ Slack team has much C knowledge.
- leakbang 4y agoIt's a shame that they are on Slack, but thanks I will check them out!
- tus666 4y agoWhat is the background of this project? Is it a learning exercise or aiming for some functional benefit?
- leakbang 4y agoThe aim of the project is to create a useful, minimal, and fast web browser. But we all are learning as we are developing it :D
- 2143 4y agoIt's cool that you're doing this. Why not Rust?
- leakbang 4y agoI evaluated a lot of languages before settling down on C. I have 2 main reasons why I chose C. One is that I wanted to pay homage to many great programmers who wrote industry-pushing software in C. The other reason was that I wanted to start from 'scratch' and use as few pre-made libraries as possible. I think there is a lot of fun in starting a project like this from 0 and figuring out everything on the go :D
- 2143 4y agoRust is rather low level, yet it offers memory safety. > One is that I wanted to pay homage to many great programmers who wrote industry-pushing software in C. Some of those great programmers might probably have chosen other languages if they existed back then. Anyway, I think what you're doing is pretty cool and I wish you all the success in whatever language you choose to do this in.
- leakbang 4y agoThank you for the advice and the good wishes :)
- 0x20cowboy 4y agoWould love to contribute. Especially if it’s Javascript free. Any plans to open source?
- leakbang 4y agoYeah the browser is open source, but the project is very early in development. After the project has a stable basis, we will fully embrace the FOSS mindset and make contributions open.
- zzo38computer 4y agoIf it is FOSS, I think it will be necessary, since many modern web browsers have many problems. Will you be able to write extensions to the browser in C? Would have many feature assuming advanced users only? If so, that would be an improvement, I think.
- leakbang 4y agoThe project is still very early on in development so we haven't decided how to handle extensions/add-ons. But it would definitely be neat and unique if the browser extensions are also written in C. But the idea behind the browser is to create an unbloated, fast, and responsive browser that is also easy to use.
- sigstoat 4y agowhat conceivable use could you have for xlib? you’re going to have ten thousand hard problems related to just CSS. do yourself a favor and at least use a high level cross platform gui library.
- leakbang 4y agoThe high level GUI toolkits that I looked at (GTK+ and Qt) were very bloated with features that would not come in handy for my use case, and frankly, they were difficult to use. Doing simple tasks in Xlib was simpler. But I did quickly notice a lot of limitations with Xlib such as no transparent pixels which means no Anti aliasing and the lack of ability to load in True type and Open type fonts. I did come across the Xrender library (also by XOrg) but couldn't find any documentation for it. Also doesn't really help that pretty much any documentation for Xlib is dozens of years old. Which (C) GUI libraries do you have in mind?
- zzo38computer 4y agoI agree; I really dislike GTK+. However, you could use Xt and/or Xaw, which are OK in my opinion (although there are no transparent pixels, etc; but if you need them, then you might possibly draw your own stuff in the document area).
- leakbang 4y agoI'll look into Xt and Xaw. Thanks
- chadcmulligan 4y agoCairo may help - https://www.cairographics.org https://www.cairographics.org
- leakbang 4y agoThis looks promising. I'll look into it. Thanks +1
- 4y ago
- emmo 4y agoHandmade Network[1] is probably where you want to be. They have a semi-active forum, and a very active Discord. [1] http://handmade.network http://handmade.network
- leakbang 4y agoThis looks great! Thanks a lot!
- rurban 4y agoGitHub has some, but there are also gitlab, codeberg, srt, a.s.o. C folks prefer to talk in code.
- leakbang 4y agoThat's a good insight! I'll definitely try to look for them on Github and similar platforms. Thanks!
- janekg 4y agocomp.lang.c ;-)
- leakbang 4y agoThanks +1 I did't know Google Groups were still around!