Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
akling
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
20 ms
·
181.
▲
by
akling
7y ago
Kudos to Tadeu Zagallo and the JSC team for landing this awesome patch! I've worked on WebKit memory performance in the past, so I'm well aware that these aren't low hanging fruits we're talking about. The type safety bo
182.
▲
by
akling
7y ago
Hmm, IMO Badge has two main advantages over your approach: 1. Aesthetics. (This is down to personal taste of course, but I much prefer how Badge gets the job done without needing multiple lines of code at every declaration.) 2. What if I ne
183.
▲
by
akling
7y ago
Code/API scalability: Over a long enough time, every API will be called in every possible way. If an API misbehaves, some code somewhere will begin to rely on the specific kind of misbehavior. This is just the reality of publishing API
184.
▲
by
akling
7y ago
This style of development obviously will not scale to large, long-term C++ projects with many developers, as anyone who has worked on such projects knows all too well. No disrespect to you, QuadrupleA, do whatever makes you the most product
185.
▲
by
akling
7y ago
Yeah, polluting the signatures is a shame. I've only just decided that I enjoy using this pattern so my internal standards committee hadn't progressed to the proposal stage yet. :) Your syntax makes perfect sense to me, and I thin
186.
▲
by
akling
7y ago
I’m sure you’re very familiar with the patterns used in the codebase(s) you spend your time in. In this case, once you know what a Badge<T> is, it’s obvious what it communicates about a function that takes one.
187.
▲
by
akling
7y ago
Oh wow, that's so similar! So similar in fact, that I must have seen this blog post at some point and internalized the idea :) The improvement that Badge<T> makes is the <T> part; you don't need to look up the PassKey
188.
▲
by
akling
7y ago
Hello friends! Author here, nice to see so much discussion :) I've spent most of my adult life working on large C++ codebases with public API's (most notably Qt and WebKit), which has led me to cultivate a defensive programming mi
189.
▲
by
akling
7y ago
If an argument is nameless, the compiler won't complain about it being unused. No warning: void VFS::register_device(Badge<Device>, Device& device) { ... } Warning: void VFS::register_device(Badge<Device>
190.
▲
by
akling
7y ago
Oh man, I got really excited when I saw this suggestion and got out of bed early to try it out. Unfortunately it seems like default arguments can't use private constructors. Both GCC and Clang immediately fail at the declaration. Not f
191.
▲
Comfort Noise
(en.wikipedia.org)
2 points
by
akling
7y ago
|
0 comments
192.
▲
Serenity C++ Patterns: The Badge
(awesomekling.github.io)
4 points
by
akling
7y ago
|
0 comments
193.
▲
by
akling
7y ago
Hi pcdoodle. I am also very fond of that style of programming, and it's something I'd like to explore down the line. In the immediate future though, the visual builder tool is limited to generating C++ that you then glue together
194.
▲
by
akling
7y ago
Yeah, I visit /dpt/ regularly. "You can check out any time you like, but you can never leave."
195.
▲
by
akling
7y ago
Yeah, so far the form designer is just to help you create layouts which are then turned into C++ code. There's a bit of smoke & mirrors here though, I haven't even started on the tool that converts a saved form into C++.. but
196.
▲
by
akling
7y ago
There’s so much more to operating systems than what people usually think of as “OS dev”. Wanna write a Tetris game for an obscure new OS? Here’s your chance! How about a bitmap editor (like MS Paint)? Maybe some cool graphical effect demos?
197.
▲
by
akling
7y ago
I was not aware of the Oberon system. It looks interesting, I will read more about it, thank you :) The inspiration for this system comes from using Visual Basic as a kid and just having fun trying to mimic the Microsoft Office look&fee
198.
▲
by
akling
7y ago
Aiming for 100x.
199.
▲
by
akling
7y ago
Sure, I don't mind. I've been living off of savings for a while, trying to figure out what to do with myself. Savings don't last forever though, so I'm actually starting a programming job next week. I originally thought
200.
▲
by
akling
7y ago
Sure, the GUI library could definitely be ported to anywhere POSIX-y. The IPC messaging is already based on AF_LOCAL sockets so that should "just work" The bitmap sharing between WindowServer and clients is using a custom Serenity
201.
▲
by
akling
7y ago
Thanks hardbop200! Partly it's because I'm the kind of person who just loves hacking on tall stacks. Before this, I was doing browsers for many years, which has many traits in common with operating systems. Speaking more emotional
202.
▲
by
akling
7y ago
RIP King Terry
203.
▲
by
akling
7y ago
Thank you for shouting out my Patreon![1] I'm never going to ask anyone for money, but I'm extremely grateful that some people have chosen to support this project financially. The only "goal" I have set up on Patreon is
204.
▲
by
akling
7y ago
This entire project is about implementing already-existing functionality in its own way, with minimal dependencies, for fun. Its use of the C++ language strives to be modern. There is no attempt to use modern 3rd-party C++ frameworks.
205.
▲
by
akling
7y ago
Anything is possible! It would take quite a lot of work to bring up a Qt port, so it's not really a priority right now as there are many other important things that need attention. But some day.
206.
▲
by
akling
7y ago
That's not a bad idea! I spend a lot of time hacking at night, with my monitor in "night mode" (warmer colors), so I didn't think much about how cold they look in the daylight. I should eventually add color theming so th
207.
▲
by
akling
7y ago
It's currently ending up in kmalloc(). The compiler handles the new[]/delete[] element count and I don't ask any questions about how.
208.
▲
by
akling
7y ago
Anything that ever ran on Serenity must continue running, otherwise I've failed. :P There are some parts of the code where I don't want to depend on anything other than the C++ language. Some folks are working on porting parts of
209.
▲
by
akling
7y ago
Correct! It's fun to control the whole stack. And while I've been programming on POSIX systems for over 10 years, I've learned more about POSIX programming in the last year than in all the preceding years. There's no bet
210.
▲
by
akling
7y ago
I haven't tried running it on real hardware yet, I'm too comfortable with my VM-based workflow at the moment. It'll eventually get there though, but I'm not in a hurry. :) The answer is basically the same for 64-bit and
More ›