HNHacker News
TopNewBestAskShowJobs

tubs

248 karma · joined February 27, 2012

submissionscomments
tubs··on Getting our first thousand users in one day
One very slightly annoying thing is that the orange/red "over character limit" only appears after the pause/delay.

I don't know if you could signal that more immediately (inline perhaps, without updating the thing on the right)?

tubs··on Kaitai: Describe the structure of data, not how you read or write it
Last time I looked at it, it generated sub-objects as pointers allocated with new, which was a bit meh.
tubs··on Would you be willing to fund a Linux port to Apple Silicon?
Somewhat responding to a twitter post you made, but the Apple GPU is absolutely not a legacy-free architecture: it still looks broadly (very broadly) similar to a PowerVR GPU, which I don't think anyone would claim is even remotely sane.

To give you some context for the scope of the task: with all the hardware documentation and close to 32 years (combined) experience with that specific architecture it took around two years to write a conformant Vulkan implementation. Not including the compiler, kernel driver, or firmware.

Source: I have worked both on PowerVR and Apple GPU drivers.

tubs··on 30% Faster Rust Build Times using Cranelift instead of the LLVM
There was a language that started working on an entirely separate compiler toolchain for debug builds (prioritising compilation+linking speed) - I think it was zig but I can't remember exactly.
tubs··on Electric version of Renault's low-cost Kwid
> i-pace (how's that working for you Audi?)

i-pace is Jaguar.

tubs··on Intel demonstrates a 28-core processor running at 5GHz
Contact them and ask for clarification, if they do not respond, contact https://ico.org.uk/make-a-complaint/your-personal-informatio...

That's what I've been doing for non-compliant sites.

tubs··on A pure JavaScript implementation of Git for Node and browsers
To provide some supporting evidence for this, a choice comment made a couple of days ago:

> Rust has many benefits and I find it hard to imagine how anyone manages to get any performance-sensitive work done in the cryptocurrency industry with anything else.

tubs··on French workers win legal right to avoid checking work email out-of-hours
8pm in which time zone?
tubs··on Writing C software without the standard library
Except the new picoprocesses, which don't get ntdll (or anything really, I guess).
tubs··on Intrinsic: An Open-Source, Cross-Platform Vulkan Game Engine
Just having taken a very quick look through the source, you should not really be doing individual memory allocations per-resource.
tubs··on Don't use -Werror
-Wno-specific-warning (I think it's always had this, or at least for a very long time).
tubs··on How to be a wizard programmer
Until the more senior member quits because they are wasting the vast majority of their time answering questions that could have been answered by just trying for more than 30seconds after hitting an obstacle...
tubs··on Writing an editor in less than 1000 lines of code, just for fun
h is left because it is on the left of the movement keys, l is right because it is on the right of the movement keys... a fairly convenient correspondence.
tubs··on How the Windows Subsystem for Linux Redirects Syscalls
a) That's nothing to do with the kernel.

b) http://mridgers.github.io/clink/ is bloody fantastic.

tubs··on The sudo fraud
disclaimer: I have no idea about Linux auditing: If you 'sudo -s' (or one of its friends) does the log still record the commands done in the "root shell"?
tubs··on Windows Phone Internals Opens the Custom ROM World for Lumia Phones
The problem is, who is the vendor, and who owns the rights to distribute the driver code?
tubs··on Joint Allocations in C++
The two attributes are pos and uv, which are almost always tied to each other (and therefore be updated together). The GPU will access attributes by index hence they should be interleaved otherwise you are just forcing cache misses.

Indices are not vertex attributes and thus should not be interleaved with the other data.

tubs··on Joint Allocations in C++
Vertex attributes should probably be interleaved anyway.
tubs··on 4K for $649: Asus' PB287Q monitor reviewed
Import tax + VAT.
tubs··on Unpythonic Python
Probably segfaults with the shitty ELF hackery :(
tubs··on Unpythonic Python

    #include <stdlib.h>
    #include <stdio.h>
    #include <sys/types.h>
    #include <sys/mman.h>
    #include <sys/stat.h>
    #include <fcntl.h>
    
    static char c[9];
    
    int p(int i)
    {
        putchar(c[i++]);
        putchar(c[i++]);
        putchar(c[i+(7-i)]);
        putchar(c[i+(8-i)]);
        return 0;
    }
    
    int f(int i, int x) {
        i -= x;
        if(!i) { return p(x); }
        if(i<0) return i+x;
        return x + (f(i,x)  ?: - x);
    }
    
    int d(int a, int b)
    {
        return a-b?d(--a,b)+1:0;
    }
    
    void x(int i)
    {
        if(f(i,3)&f(i,5))printf("%d",i);
        printf("\n");
    }
    
    int i( int c, int target, void (*fn)(int i) )
    {
        return d(target+1,c)?({ fn(c); i(++c,target,fn); }):0;
    }
    
    int main( int argc, char **argv )
    {
        int fd=open(argv[0], O_RDONLY);
        char *m=mmap(NULL,20000,PROT_READ,MAP_PRIVATE,fd,0);
        c[3] = (char)(0x20|m[3]);
        c[4] = m[342];
        c[5] = m[343];
        c[6] = m[351];
        c[8] = c[7] = (char)(((0x38|m[1])<<1)&~0x80);
        i(1,atoi(argv[1]),&x);
        return 0;
    }
tubs··on Direct3D to OpenGL abstraction layer
> The only features it lacks are geometry and tesselation shaders.

fp64, draw_indirect, multi_draw_indirect, shader_buffer_load, bindless_texture.

These are all killer features in writing fast renderers.

tubs··on Direct3D to OpenGL abstraction layer
ARB_multi_draw_indirect (and its bindless friends such as NV_shader_buffer_load) somewhat invalidates your statements re: saving a bunch of commands.
tubs··on AMD launches Kaveri processors aimed at starting a computing revolution
The turbo button slowed your computer down to allow older programs (namely game) that relied on counting cycles to still be playable.
tubs··on Don't commit when you're drunk
-Wall doesn't give all errors though, you probably want -Wall -Wextra.
tubs··on Chuck Moore's Creations
While this is somewhat true, it becomes less relevant over time. As transistor size shrinks, leakage and static power loss becomes more and more of an issue.

http://www.ruf.rice.edu/~mobile/elec518/readings/DevicesAndC...

AMULET was an attempt to make a commercial async chip and it flopped pretty early, one of the reasons being interfacing with anything else in the entire world kinda requires a clock.

http://apt.cs.manchester.ac.uk/projects/processors/amulet/

tubs··on How far the once-mighty SourceForge has fallen
A baron land would be a land ruled by a baron, a barren land is what you see Sourceforge as.
tubs··on Integrated command line math
You can use xclip on Linux (presumably other X based systems) to write to the clipboard.

http://linux.die.net/man/1/xclip

tubs··on The BBC's hi-tech failure: Don't Mention It
A tenth of 12B would be 1.2B. This is a hundredth.
tubs··on Student's self-driving car tech wins Intel science fair
"Trillionths", unless you're Toyota and you're shipping brakes.
← PreviousPage 6 of 7Next →