Better HN
topnewbestaskshowjobs
Log inSign up

topce

4 karma · joined Jun 23, 2023 (3y ago) · 17 submissions

Submissions

comment 2mo ago · link · parent

TLDR Because they trained them to do it ;-)

comment 5mo ago · link · parent

my experimental looping build on top of pi and zx mostly pi deep seek and some skills ;-) https://github.com/topce/pizx

3.

Pizx – zx and Pi AI = shell scripting with 15 AI agent patterns(github.com ↗)

2 points · by topce · 5mo ago · discuss

comment 5mo ago · link · parent

Programers get replace by huge matrix multiplications ;-)

comment 7mo ago · link · parent

I used both copilot and kiro copilot sonet 1 copilot opus 3

kiro sonet 1.3 kiro opus 2.2

IMHO lot of people will switch to kiro and or deep seek it look like AWS done best inference google is another big player , has model and also cloud byt my 2 cents form Cents on AWS

comment 7mo ago · link · parent

I went in other direction ;-) https://topce.github.io/chess960x32/

7.

Chess960x32 Experimental chess platform with 30720 unique opening configurations(topce.github.io ↗)

1 points · by topce · 7mo ago · discuss

8.

Auto Translate JSON Library – JSON and Google to Multi-Format and 8 Providers(github.com ↗)

2 points · by topce · 8mo ago · discuss

comment 8mo ago · link · parent

Very Interesting...

I have similar idea to train LLM in Serbian, create even new encoding https://github.com/topce/YUTF-8 inspired by YUSCII. Did not have time and money ;-) Great that you succeed. Idea if train in Serbian text encoded in YUTF-8 (not UTF-8) it will have less token when prompt in Serbian then English, also Serbian Cyrillic characters are 1 byte in YUTF-8 instead of 2 in UTF.Serbian language is phonetic we never ask how you spell it.Have Latin and Cyrillic letters.

comment 8mo ago · link · parent

nice work I see https://chatwall.io/?lang=en Where is Open Source ?

comment 3y ago · link · parent

No problem so basically you can fix errors : add parameters with that are not used for example _index, _array or override callback type definition wrap it in JavascriptCallback

comment 3y ago · link · parent

Not for a long just few days. It could be too strict , probably that why they rejected PR , but it depends of callback definition. I proposed it as a flag because it is breaking change by default turn it off. But as they rejected PR in my fork I remove flag and in latest version is always on.No flag. I change one my repo to use it and need to patch some lib definition of callback to be more strict also build with typescript "skipLibCheck": true,

If I do not want to change existing code to add parameters for each callback I use trick bellow : type JavaScriptCallback< T extends (...args: any) => any, P = Parameters<T> > = P extends [...infer Rest, infer _Last] ? ((...args: Rest) => ReturnType<T>) | JavaScriptCallback<T, Rest> : T;

interface Array<T> { forEach( callbackfn: JavaScriptCallback<(value: T, index: number, array: T[]) => void>, thisArg?: any ): void;

  map<U>(
    callbackfn: JavaScriptCallback<(value: T, index: number, array: T[]) => U>,
    thisArg?: any
  ): U[];
} and then is more like standard TypeScript would not complain about parseInt because I redefined typedef of map to accept 0 or 1 or 2 or 3 parameters . But I am in control. Only edge cases in some callbacks I notice tsc complains that type is any with strict option turn on then I add a type . It is experimental, would prefer if they add it as option. Change is just in checker emitted JavaScript is still same. As always there are some trades of. But for me it works so far so good ;-)

comment 3y ago · link · parent

he he I tried to fix this in Typescript but look like they do not care So I made and use (for my projects) my own version of typescript ;-) https://www.npmjs.com/package/@topce/typescript/v/5.1.6 There indeed you would have compile time error

error TS2345: Argument of type '(string: string, radix?: number) => number' is not assignable to parameter of type '(value: string, index: number, array: string[]) => number'. Target signature provides too few arguments. Expected 3 , but got 2.

console.log(["1","2","3"].map(parseInt));