Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
andoma
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
16 ms
·
61.
▲
by
andoma
5y ago
This would be superior of course. Ideally being able to limit maximum runtime down to one hours.
62.
▲
by
andoma
5y ago
I run a small CI system which starts relatively beefy preemptible instances for jobs. Normally those instances are terminated by the job scheduler as soon as there's nothing more to do. But it's a great peace of mind knowing they
63.
▲
by
andoma
5y ago
Loled at this.
64.
▲
by
andoma
5y ago
> * Badges on Issue tracking on the issues created by backers This can be a slippery slope. It could easily be mis-interpreted as "Hey, I payed $3 last month so I want you to prioritize my bugs". Generally I think for these kin
65.
▲
by
andoma
6y ago
This is the correct answer
66.
▲
by
andoma
6y ago
Alternatively "There is no such thing as bad weather, only bad kleather" https://youtu.be/ua1FAlHt_Ys?t=232
67.
▲
by
andoma
6y ago
gcc have -Og which turns on optimization steps that can be enabled without sacrificing debugability.
68.
▲
by
andoma
6y ago
In theory yes. However, in practice static linking with glibc pulls in a lot of dead weight, musl comes to the rescue though: test.c: int main(int argc, char **argv) { printf("hello world\n"); return 0; } Dynamic
69.
▲
by
andoma
6y ago
> The benefits you'd get from going to a weaker memory model are by not having that extra coherency in the critical path in the first place. Adding extra muxes in front of it to make it optional would be worse than just having it on
70.
▲
by
andoma
6y ago
> 3) Some stricter memory model in hardware? Seems like that'd go against most of the stated reason for switching to ARM in the first place. I would assume that a more strict memory model would be enabled only for processes that nee
71.
▲
by
andoma
6y ago
I wonder how it handles the stricter memory ordering from x86? For example, this code: void store_value_and_unlock(int *p, int *l, int v) { *p = v; __sync_lock_release(l, 0); } on x86_64 compiles to: mov dword pt
72.
▲
by
andoma
6y ago
https://goteam.video/ (Disclaimer/Plug: I work for the company that built this). It's WebRTC based but should work fine in Chrome, Safari, Firefox and latest Edge (ie the Chrome variant). We've just added opt
73.
▲
by
andoma
6y ago
My dad bought a DX7 when I was a kid. This sure bring back some good memories!
74.
▲
by
andoma
6y ago
Features vs page load time is very impressive.
75.
▲
by
andoma
6y ago
Sorry no, I've only done this for Android yet.
76.
▲
by
andoma
6y ago
io_uring requires userspace to access it using a well-defined load/store memory ordering. Care must be taken to make sure the compiler does not reorder instructions but also to use the correct load/store instructions so hardware d
77.
▲
by
andoma
6y ago
So it's a Windows and MacOS bug then? Ie, no shadow should fall on io_uring really? That said, nice dig figuring this out. These type of bugs can be really frustrating to round up.
78.
▲
by
andoma
6y ago
I've been building a native-only Android app for testing various aspects of a cross-platform (ie, Android and iOS) library we use at dayjob. Building and running with Makefile feels so liberating and is so d*mn fast compared to the And
79.
▲
by
andoma
6y ago
Here's a good presentation from Nvidia on the topic (Cuda specific): https://developer.download.nvidia.com/assets/cuda/files/redu...
80.
▲
by
andoma
6y ago
> 3. Learn how to use emacs in a tight code and test loop. Came here to say this. Having a build delay for an average incremental change (edit a single file / compilation unit) be less than 2 seconds is extremely important for my pr
81.
▲
by
andoma
7y ago
Yup, Amiga's Autoconf [0] was ahead of its time. [0] https://en.wikipedia.org/wiki/Autoconfig
82.
▲
by
andoma
7y ago
TCL have an interesting feature where user defined functions (or commands as it's called) can return TCL_RETURN, TCL_BREAK, or TCL_CONTINUE (in addition to TCL_OK and TCL_ERROR as you would expect) which directly affects control flow i
83.
▲
by
andoma
7y ago
Related: https://www.youtube.com/watch?v=wVphFkaX1gg (Restoration of a C64 left outdoors for over a decade)
84.
▲
by
andoma
7y ago
As others have mentioned, also using SSM Parameter Store (if you're in AWS) + KMS. Running most of our micro services using ECS (Fargate) which can populate environment variables directly from secrets in SSM Parameter Store.
85.
▲
by
andoma
7y ago
Got pretty much the same setup. Works very well.
86.
▲
by
andoma
7y ago
Yes, this. An example: I remember a few years (?) ago someone complained on Twitter to Elon about people leaving their cars hooked up to super chargers all day (basically just using the super chargers as parking lots). In less then a week (
87.
▲
by
andoma
7y ago
I almost always use mutexes and condition variables. Almost never semaphores. I wholeheartedly agree with the post about recursive mutexes being bad. I find it always a indication of bad design and/or ”lets make this code multi-thread
88.
▲
by
andoma
7y ago
Huh? I think it's one of the major upsides with an EV. Your "tank" is always full in the morning. No "Dang it, need to go and fuel up" first thing when leaving.
89.
▲
by
andoma
7y ago
In my experience (having embedded both spidermonkey and duktape) is that if embedding is not a primary use case for the engine it can get messy and complicated to update (lots of api breakage etc). This was the reason I switched from spide
90.
▲
by
andoma
7y ago
Can recommend https://buildroot.org/ for building complete Linux system images. Been using it on multiple embedded projects, both personal and professional. Somewhat related, I've also used buildroot in both AWS and GC
More ›