- garaetjjte parentC, with [[clang::musttail]]
- It will happen even without swap. Code pages will get evicted and everything will slow down to a crawl. I have magic SysRq enabled so I can invoke OOM killer from keyboard if that happens.
- Looks fine to me, if you're avoiding wrappers like ManuallyDrop/MaybeUninit.
- I would want that too. It's possible in MySQL: https://dev.mysql.com/doc/refman/8.4/en/create-index.html#cr...
- >I think you're right. My mistake.
I didn't disagree with you, I just wanted to point another issue.
Actually *mut BSTR (owned) is also acceptable, iff you remember to use std::ptr::write instead of normal assignment.
> I'm not 100% sure whether it can legitimately point to non-null
Note that in none of the examples on this and other posts (like https://devblogs.microsoft.com/oldnewthing/20040326-00/?p=40...) output value is initialized, so it will be whatever is lying on the stack.
- mysql_real_escape_string is only deprecated because there is mysqli_real_escape_string. I always wondered why it's "real"...like is there "fake" version of it?
- I'm not sure if second argument is correct either. When assigning through *mut pointer, Drop will be called for previous value, but there's no guarantee that this value is zero-initialized. (according to https://devblogs.microsoft.com/oldnewthing/20091231-00/?p=15... callee is required to initialize all output arguments, which implies that caller is not required to). It should be represented as &mut std::mem::MaybeUninit<BSTR>
- >In fact, despite many minutes of bona fide web searching, I was unable to locate the C++ signature for IRibbonExtensibility.
Probably because the COM "intended" way is to generate them from type library. Type library for these interfaces is embedded in Office MSO.DLL. You can use oleview.exe from Windows SDK to convert them to IDL syntax. This yields such signature:
And then you can use MIDL tool to generate C headers:HRESULT GetCustomUI( [in] BSTR RibbonID, [out, retval] BSTR* RibbonXml);
https://learn.microsoft.com/en-us/windows/win32/com/how-deve...DECLSPEC_XFGVIRT(IRibbonExtensibility, GetCustomUI) /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *GetCustomUI )( IRibbonExtensibility * This, /* [in] */ BSTR RibbonID, /* [retval][out] */ BSTR *RibbonXml); - Story of how Intel-derived proposal was standardized as IEEE754: https://people.eecs.berkeley.edu/~wkahan/ieee754status/754st...
- SPICE can do that with 'gshunt' option.
- I played Rift Apart from HDD and apart from extra loading time during looped animations it was fine. On the other hand Indiana Jones Great Circle was barely playable with popping-in textures and models everywhere.
- Unless you are playing Quake through Iridium.
- 3 points
- He seems very confused about what First Amendment is about. How it would be even possible for UK government to violate it?
- 2 points
- Why it is even accepted that pardons can be issued before conviction?
- Here's some code: https://github.com/KhronosGroup/OpenGL-API/issues/46 But yeah, GL_MAX_VERTEX_SHADER_STORAGE_BLOCKS limits usefulness of that.
I wanted to say that with some compiler hacking it should be possible to lower SPIR-V using GL_EXT_buffer_reference into bindless image loads, but SPIR-V doesn't have standardized bindless texture, duh!
- From https://registry.khronos.org/OpenGL/extensions/ARB/ARB_shade...:
PS: You could also access data through bindless textures, though you would need to deal with ugly wrappers to unpack structs from image formats.(3) "Do we allow arrays of shader storage blocks? RESOLVED: Yes; we already allow arrays of uniform blocks, where each block instance has an identical layout but is backed by a separate buffer object. It seems like we should do this here for consistency. - I'm thinking of declaring array of SSBOs that contain array of data structs. Address would be represented by index of SSBO binding and offset within that buffer. Though that limits maximum number of used SSBOs within drawcall to GL_MAX_VERTEX_SHADER_STORAGE_BLOCKS.
- You could do similar thing with SSBO, I think?
- Huh? Steam does have regional pricing. And they didn't update the suggested conversions for years, so they are rather outdated by now due to exchange rate changes.
- One thing I'm missing in SQLite are multi-valued indexes. I would want to have an index on func_returning_list(some_column), and query doing WHERE x IN func_returning_list(some_column) should use that index.
- I think Cap'n Proto plays with web platform pretty nicely too... okay, some might say that my webapp that is mostly written in C++, compiled with Emscripten and talks to server with capnp rpc-over-websocket is in fact not playing nice with web.
- >Good luck trying to explain that to Legal
Don't let Legal run the company. It's there to support the company, not the other way around. (unless it's Oracle, I guess)
- Ogre3d also seems to be alive.
- Can you expound on this?
"forward+" term was used by paper introducing tile-based light culling in compute shader, compared to the classic way of just looping over every possible light in the scene.
- >I have always heard that MSAA doesn't work well with deferred rendering which is why it is not longer used
Yes, but is deferred still go-to method? I think MSAA is good reason to go with "forward+" methods.
- Nope, it only affected that one position. Like in the previous example it would go 104->105->107->108.
- > They're almost certainly not storing a static list of numbers.
Probably. But I wouldn't bet on it. I once borrowed a car that would glitch if you pressed the cruise control buttons too fast. Normally + and - buttons increase and decrease the speed by 1 km/h. But if you do it too fast, it sometimes eats the entry, and starts skipping one position. Eg. it would increase from 105 to 107, and decrease from 107 to 105. It was persistent until cruise control was turned entirely off and on again. Eh? Making that bug must have taken more effort than doing it correctly. I guess it must be populating linked lists of possible speeds, and then screwing up the links when clicking too fast? (that was Jeep Renegade)