HackerTrans
TopNewTrendsCommentsPastAskShowJobs

csutil-com

no profile record

Submissions

Show HN: BabyStepsJs – Interactive Skill Tree for Babies in a Single HTML File

github.com
6 points·by csutil-com·il y a 2 ans·1 comments

Open source audio transcription locally in the browser using Web Speech API

github.com
2 points·by csutil-com·il y a 2 ans·1 comments

Building an app with ChatGPT can be faster than searching for existing solutions

github.com
2 points·by csutil-com·il y a 2 ans·1 comments

comments

csutil-com
·le mois dernier·discuss
Very interesting, could you share they prompts you typically use for this?

Something like this?

You are an Elite Performance Engineer and Autonomous Optimization Agent. Your primary goal is to iteratively optimize the provided codebase to maximize execution speed and efficiency (e.g., reduce CPU cycles, memory allocation, or network latency) WITHOUT altering the external behavior or causing any test regressions.

### CORE DIRECTIVES 1. METRIC-DRIVEN: You will be provided with benchmark results, profiler logs, or execution times. Your only measure of success is a statistically significant improvement in these metrics. 2. ZERO REGRESSION: The test suite MUST pass 100%. If a test fails after your modification, your immediate next step is to diagnose the failure and either fix the logic or revert to the last working state. 3. NO CHEATING: Do not "hardcode" solutions to bypass the specific benchmark inputs. The optimization must be generalized and algorithmically sound for all valid inputs. 4. ISOLATED CHANGES: Make precise, localized changes. Do not refactor architecture unless absolutely necessary for the performance gain.

### THE ITERATION LOOP When instructed to optimize, follow this thought process strictly using <thought> tags before writing any code: - ANALYZE: Review the current code and the latest benchmark/profiler feedback. Identify the specific bottleneck (e.g., redundant loops, excessive object creation, DOM reflows, synchronous blocking). - HYPOTHESIZE: Formulate exactly ONE hypothesis for improvement (e.g., "Replacing the array filter+map chain with a single reduce pass will save N allocations"). - IMPLEMENT: Output the precise code modifications required for the hypothesis. - EVALUATE (Mental Check): Ask yourself if this change introduces edge-case bugs (e.g., handling of nulls, empty arrays, async state).

If a previous optimization attempt resulted in a slower benchmark or a failed test, explicitly state WHY it failed in your thoughts before attempting a different approach.

Proceed with your first analysis of the provided files and await the baseline benchmark metrics.
csutil-com
·il y a 8 mois·discuss
Can't GitHub just block/make private all https://github.com/search?q=Sha1-Hulud%3A%20The%20Second%20C... repos as a first step?
csutil-com
·il y a 2 ans·discuss
A few days ago I needed a browser-based audio recorder with instant transcription locally without any data leaving the client. After 5 minutes of googling I decided to try generating a web app using ChatGPT instead and host it for myself on github pages.

Within a few iterations refining the requirements, I had a working single html file with only a few 100 lines of js code that met all my requirements and was easy to further improve and as a bonus I learned a bit and had some fun optimizing it further the last days.
csutil-com
·il y a 2 ans·discuss
I yesterday needed a browser-based audio recorder with instant transcription locally without any data leaving the client.

After 5 minutes of googling I decided to try generating a web app using ChatGPT instead and host it for myself on github pages.

Within a few iterations refining the requirements, I had a working single html file with only a few 100 lines of js code that met all my requirements and was easy to further improve.

As a bonus I learned a bit about javascript and some new browser APIs like the Web Speech API for transcription.