Hacker Newsnew | past | comments | ask | show | jobs | submit | keithnoizu's commentslogin

I came across a nice little solution in copilot X and copilot 365/pro for including and referencing custom instructions to add behavior/formatting support to copilot (e.g. edit mode, article writing mode, documentation writting mode etc.)


Neat!

How do you get copilot to use these instructions? Can you define a “default include” somewhere?


I feel like the explicitly go out of their away to avoid building in custom instructions/increased prompt context to lower their costs so this is a bit of a work around.


copilot scans open files so I mention the file name in my prompt or reference the file explicitly using the reference file option in the chat window in the intellij copilot chat beta.

``` Follow the instructions for preparing responses from the COPILOT.md file in how you answer and format your answer to the following prompt.

<whatever my request was> ```


Thank you


and I felt like a rebel just using vga x mode.


Square pixel 360×240 was sane, but 360×480 always felt dirty.

IIRC, Mode X video mode set routines boiled down to an exhaustive table of VGA register control values. (See SDL or older FreeBSD for examples.) Then, the fun was pixel addressing, bitblting, and page flipping.


> Square pixel 360×240

Did you mean 320×240?


Yes, Google. ;@P Thanks.

360x270 wouldn't be possible with VGA.

4:3 pixel aspect ratios of mode X-like VGA modes

    256×256: 1.0     (Stretched)

    320×200: 1.6     (Mode 13h - slightly squished)
    320×224: 1.428.. (Imperceptibly squished) 
    320×240: 1.333.. (Square)
    320×350: 0.914.. (Stretched)
    320×400: 0.8     (Stretched)
    320×480: 0.666.. (Extremely stretched)

    360×200: 1.8     (Very squished) 
    360×240: 1.5     (Imperceptibly squished except when drawing circles)
    (360×270 is impossible)
    360×350: 1.029.. (Slightly stretched)
    360×400: 0.9     (Stretched)
    360×480: 0.75    (Extremely stretched)

    400×300: 1.333.. (Square)


360x240 and 360x480 are both real modes.

But it was 320x240 that had the square pixels.


I felt like an unknown genius using 256x256 unchained VGA : marginally faster sprites ! Sprite clipping using a 4 pixels out of screen border !


Which is fundamentally different from how our brain chains together thoughts when not actively engaging in meta thinking how? Especially once chain of thought etc. is applied.


You can tell GPT to output sentiment analysis and mind reading of user intent, what it believes the user's underlying goal is. It becomes less responsive if it finds the user to not be friendly or perceives them as trying to achieve a restricted outcome.


Yes, I have a similar solution.


Not my stuff but maybe in a few weeks as there's some additional concepts involved.

https://github.com/noizu-labs-ml/noizu-ops

https://github.com/noizu-labs/noizu-collab


Whats up with this typo?

https://i.imgur.com/VltYM3q.png

How could it mangle an input such as shown on the git?


I was really blown away by how well erlang/chicago boss handled throughput when I first gave it a spin. A webpage I converted over handled multiple orders of magnitude more incoming requests before failing than the php version it replaced.

CB would get frustrating when wanting to extend certain functionality however, which phoenix isn't quite as bad about.


DNS is back, looks like systems are still coming online.


Yep, I always make it a point to cache cache-misses in my code.


So then when I'm on some kind of blocked WiFi and nothing resolves, and I switch to a properly working WiFi your code will continue to fail?

It's not so simple to cache misses - you don't know if it's a real miss or some kind of error.

For example if Facebook cached the miss, then even when they are back up nothing would connect.


Yes. I handle around a million requests per minute. I exponentially increase the cache period after subsequent misses to avoid an outage ddos the whole system.

This tends to be beneficial regardless of the root cause.

edit this is especially useful for handling search/query misses as a query with no results is going to scan any relevant indexes etc. until it is clear no match exists meaning a no results query may take up more cycles than a hit.


It's remarkable the effect even short TTL caching can have given enough traffic. I recall once caching a value that was being accessed on every page load with a TTL of 1s resulting in a >99% reduction in query volume, and that's nowhere near Facebook/internet backbone scale.


yep, prepriming the cache rather than passively allowing it be rebuilt by request/queries can also result in some nice improvements and depending on replication delay across database servers avoid some unexpected query results reaching the end user.

In the past I was the architect of a top 2000 alexa ranked social networking site, data synchronization delays were insane under certain load patterns high single low double digit second write propagation delays.


I'm talking back-end not in app data caching. I would also cache misses there as well but with less aggressive ttl.


I came here to move fast and break things, and i'm all out of move fast.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: