Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. An Empirical Study of Harness Design for Coding Agents(arxiv.org ↗)
    14comments
  2. I Vibed a Proof of Conway's Conjecture(overreacted.io ↗)
    10comments
  3. Bend 2 and the Vibe-Coding Trap(liampwll.com ↗)
    174comments
  4. I don't like passkeys(hawksley.dev ↗)
    290comments
  5. OpenJev(openjev.com ↗)
    182comments
  6. The Shadows Lurking in the Equations – Underwater Islands(gods.art ↗)
    3comments
  7. Subnormal floating-point numbers are expensive on Intel processors(lemire.me ↗)
    33comments
  8. Jemalloc 5.4.0(github.com/jemalloc ↗)
    61comments
  9. Warren Buffett Steps Down as Berkshire Chairman, Names Son to Replace Him(nytimes.com ↗)
    103comments
  10. The scourge of x86 emulation(fex-emu.com ↗)
    57comments
  11. Bonsai 2 27B: Near-Lossless Compression in a 9x Smaller Footprint(prismml.com ↗)
    167comments
  12. Cekura (YC F24) Is Hiring(ycombinator.com ↗)
    discuss
  13. Astra for Law(openai.com ↗)
    644comments
  14. Microsoft exec called AI scraping 'the largest theft of labor in human history'(techcrunch.com ↗)
    474comments
  15. NATS publishes preliminary report on technical incident of 8 September(nats.aero ↗)
    2comments
  16. Bend – A language that blocks AI mistakes via proof, on CPU and GPU(bend-lang.com ↗)
    271comments
  17. Second Circuit Allows Government to Search Electronic Devices at the Border(knightcolumbia.org ↗)
    6comments
  18. Hister: A private search engine for the pages you visit and the files you keep(github.com/asciimoo ↗)
    178comments
  19. Replacing Pull Requests with Delta(zed.dev ↗)
    49comments
  20. C++26: Trivial infinite loops are no longer undefined behaviour(sandordargo.com ↗)
    1comments
  21. Qwen 3.8 Omni Flash(qwen.ai ↗)
    101comments
  22. ZCode, the GLM coding agent, silently uploads your Git history(tokenstead.ai ↗)
    46comments
  23. Wax motor(wikipedia.org ↗)
    89comments
  24. Rabbit Hole: Minimum L-seams(fractalkitty.com ↗)
    discuss
  25. When the fractional part of a float fixes your shader(crocidb.com ↗)
    12comments
  26. Fujitsu launches made-in-Japan next-generation CPU FUJITSU-MONAKA(global.fujitsu ↗)
    242comments
  27. Pre-Greek: The lost language hidden within Ancient Greek(linguisticdiscovery.com ↗)
    57comments
  28. How to Write with an LLM(sockpuppet.org ↗)
    168comments
  29. Show HN: Navier-Stokes Visualized as 1kB i386 demos(juandecos.github.io ↗)
    4comments
  30. New wild cat species discovered – with only one known living member(bbc.com ↗)
    4comments

Show HN: SoundCloud Instant

37 pointsby 12y agokaran.github.io
33 comments
12y agoHN ↗

I made this small app last Saturday solely because I wanted to. Any feedback is welcome.

Oh, and the source code is open: https://github.com/karan/scInstant

EDIT: Right now, it's meant to be used only on desktop. I'm starting to get into frontend stuff, so don't really know how to touch optimize the app. Again, suggestions welcome.

12y agoHN ↗

It's loading very fast! Cool project. An "add to playlist" button would be cool I think (unless I'm not seeing it).

I'm not sure if this is your type of thing but if you are looking for more ideas I was very impressed by the juketube angular/polymer demos[0]. It'd be very cool to see those projects ported to soundcloud instead of YouTube.

[0]http://jt.ms/juketube/

12y agoHN ↗

That would need soundcloud auth. I wanted to make a dead simple, click/type and be done app. Thanks though! :)

12y agoHN ↗

This is great. It would be nice to see the next couple of songs that are going to play and maybe a delete button next to them. A Youtube version would also be useful.

12y agoHN ↗

I thought about showing next songs, but I want to keep the UI minimal, and not showing the app keeps a bit of surprise factor in there.

12y agoHN ↗

I like the idea but search on YouTube seems to be so inaccurate I'm not sure if it would work nearly as well.

I'm having trouble thinking of how to improve scInstant as it is--it's so pared down and fast and just works! Great job!

12y agoHN ↗

I'm glad you like it. Feel free to send any PRs. As long as the UI isn't bloated, I'm happy to merge. :)

12y agoHN ↗

Great! I guess it is searching little bit too fast so that using browser's back button showing some other results for each key stroke.

12y agoHN ↗

It only allows me to search once, if I try to search for something else, I have to refresh.

12y agoHN ↗

I also see that your API key is there in clear. I hope no one can do any bad stuff in your name.

To OP: The way to fix this is to have the JS make a request to your own server, have your own server make the request to Soundcloud and proxy it back to you. That way you don't have to put your key in the JS, you can keep it on your server.

12y agoHN ↗

Is there any way where it does not use a server? I really do not want to use a server here.

12y agoHN ↗

Unfortunately not. Since all JS is going to be transferred to the client, if the key is in the JS the client has access to it.

12y agoHN ↗

Well the URLs are provided by SoundCloud and jQuery so there's nothing that I can do (other than hosting it myself).

Yeah I just hope no one misuses it.

Yes.

12y agoHN ↗

Apparently SC doesn't like it and for some reason the app is very slow after dropping the scheme.

12y agoHN ↗

Nice work. I'm personally not a huge fan of autoplay, since there's a ton of stuff on SC and the search results aren't always accurate enough.

Volume control would also be ace. Not sure how easy that would be to implement - now that I think about it, I've never seen it on any of their widgets.

12y agoHN ↗

Done with volume control.

    shift up/down - volume
12y agoHN ↗

Small bug: it reloads the track when I press the volume up / down keys on my keyboard. Using a samsung 7-series notebook.

12y agoHN ↗

Well volume control keys don't have a keyCode (or vary from keyboard to keyboard) so I don't think it can be fixed ATM.

FWIW, I just added keyboard shortcuts for volume control though: `shift up/down - volume`

12y agoHN ↗

SC doesn't mention a hard limit (it's vague). And yes, 200ms.

12y agoHN ↗

i love it but it would be cooler with a full screen UI, there was a soundcloud api hack that would play people's loved/favorited tracks that kind of did that..

12y agoHN ↗

I don't think it would be very hard to do that. I implemented the streaming in <audio> tag, which means I'm free to implement the UI myself.

It's on the "audio" branch of my code.

12y agoHN ↗

Ah nice. Sorry but I don't have so much moneyz.

12y agoHN ↗

Chiming in with shameless me too self promotion...

I have a similar feature on http://tuned.io/ - it's a soundcloud search with autocomplete; you can play any of the search results instantly, etc.

The music makes for good coding background.