Build your own GitHub Copilot with Salesforce CodeGen AI [video]
youtube.com
youtube.com
Salesforce is _explicitly_ geared towards vendor lock-in -- it's their bread and butter. It's why they have a vendor-specific clone of React (Lightning Web Components), a bad vendor-specific clone of Java (Apex), a bad vendor-specific clone of SQL, and a faux-development ecosystem that requires you to use their bespoke custom tools and their bespoke custom languages and frameworks. They talk about "the Salesforce economy", about how they "create jobs" for people who...build stuff in those Salesforce-specific DSLs.
Meanwhile, their entire sales department hard-sells people on "just put your data all into Salesforce and you can run your entire company through Salesforce!" Every piece of tech they build is part of something that resembles a cross between a marketing funnel and a sucking black hole.
Those proprietary "platform" components are not about extensibility so that you can "do more with your data" or whatever; it's about injecting the Salesforce parasite so deeply into all aspects of your company's operations that it's _darn near impossible_ to extricate any piece of it again.
They've even built a crappy clone of Jira that they force employees to use internally, because they apply that same philosophy internally.
People talk about Microsoft's "Embrace, Extend, Extinguish", but Salesforce has never bothered to at least put effort into the "Embrace" or "Extend" parts of that formula -- theirs is more along the lines of "Intertwine, Integrate, Incarcerate".
The last thing I'm ever gonna do is feed any of my source code into something they've built.
None of your data is going to Salesforce.
All this video is showing is how to download and use an already trained model by the Salesforce Research team...
These are open source AI models which can be downloaded and used without requiring your source code to interact with Salesforce the company in any way:
https://huggingface.co/Salesforce
Unlike GitHub Copilot which uses OpenAI’s proprietary model and can only be used through a private API.
It's much more rudimentary compared to Copilot, but it's fun to play around with, and it can be run completely locally (after the model is downloaded). Plus it runs using a simple Flask local server, so it can be easily extended to other text editors.
If I start coding in Haskell, C and Objective-c to hack my iPhone. Guess what. Copilot stops helping or just recommends the same arbitrary genetic ideas I can google myself.
For python and JavaScript? It seems to do really well at predicting the next function and ideas.
More advanced ideas obviously resulted in trash code or sometimes slightly broken one, but for simple stuff and boilerplate editing, it did well.
So even the AI struggles to learn it. :p
https://colab.research.google.com/drive/11YU00W-JLNXn-3YckJG...
This little hack will force tensor alloc on GPU instead of CPU mem.